foss_alternatives/header.js

31 lines
1 KiB
JavaScript
Raw Normal View History

2024-06-20 07:53:43 +02:00
// @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0
2024-06-19 08:58:57 +02:00
class Header extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHTML = `
<style>
</style>
<header>
<div class="header-content">
<div class="project-name"><a href="index.html">FOSS alternative</a></div>
<button class="burger-menu" onclick="toggleMenu()"></button>
<ul class="menu">
2024-06-21 20:13:36 +02:00
<li><a href="games/index.html">Games</a></li>
<li><a href="general_purpose/index.html">General</a></li>
<li><a href="internet_tools/index.html>Tools</a></li>
<li><a href="multimedia/index.html">Multimedia</a></li>
<li><a href="operating_systems/index.html">OS</a></li>
<li><a href="social-platforms/index.html">Social media</a></li>
2024-06-19 08:58:57 +02:00
</ul>
</div>
</header>
`;
}
}
customElements.define('header-component', Header);
2024-06-20 07:53:43 +02:00
// @license-end