freeftf/header.js

21 lines
502 B
JavaScript
Raw Normal View History

2024-08-15 06:06:49 +02:00
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);