2021-04-13 10:07:16 +02:00
|
|
|
class Header extends HTMLElement {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
let pageTitle = this.getAttribute("data-title");
|
|
|
|
this.innerHTML = `
|
|
|
|
<header >
|
|
|
|
<div class="header-wrapper" >
|
|
|
|
<div class="header-homepage">
|
|
|
|
<div class="align-holder" >
|
2021-09-26 00:30:52 +02:00
|
|
|
<h1 onclick="document.getElementById('content').scrollIntoView();">${pageTitle}</h1>
|
2021-04-13 10:07:16 +02:00
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
<div class="header-separator header-separator-bottom " >
|
2021-04-14 20:59:16 +02:00
|
|
|
<jl-svg data-name="banner"></jl-svg>
|
2021-04-13 10:07:16 +02:00
|
|
|
</div >
|
|
|
|
</div >
|
2021-11-09 11:54:50 +01:00
|
|
|
<jl-main_menu id = "mainMenu" data-title = "${pageTitle}"></jl-main_menu>
|
2021-04-13 10:46:15 +02:00
|
|
|
</header>
|
2021-04-13 10:07:16 +02:00
|
|
|
`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-09 11:54:50 +01:00
|
|
|
customElements.define("jl-header", Header);
|