Molodetz blogrol volgens DPP-template

This commit is contained in:
2026-10-05 09:36:20 +02:00
commit f290a4c766
277 changed files with 15758 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// retoor <retoor@molodetz.nl>
export class MobileNav {
constructor() {
this.toggle = document.querySelector("[data-nav-toggle]");
this.panel = document.getElementById("nav-links");
if (!this.toggle || !this.panel) {
return;
}
this.toggle.addEventListener("click", () => {
const open = this.panel.classList.toggle("open");
this.toggle.setAttribute("aria-expanded", open ? "true" : "false");
});
}
}