21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
|
class Header extends HTMLElement {
|
||
|
constructor() {
|
||
|
super();
|
||
|
}
|
||
|
|
||
|
connectedCallback() {
|
||
|
this.innerHTML = `
|
||
|
<header>
|
||
|
<div class="header-content">
|
||
|
<div><a href="index.html" class="project-name">FreeFTF</a></div>
|
||
|
<ul>
|
||
|
<li><a href="license.html">License</a></li>
|
||
|
<li><a href="download.html">Download</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</header>
|
||
|
`;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
customElements.define('header-component', Header);
|