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 >
|
|
|
|
<jl-main_menu id = "mainMenu"></jl-main_menu>
|
2021-04-13 10:46:15 +02:00
|
|
|
</header>
|
2021-04-13 10:07:16 +02:00
|
|
|
`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
customElements.define("jl-header", Header);
|