responsive: wip navbar

This commit is contained in:
Agahnim 2026-03-20 16:30:01 +01:00
parent 55ac79f702
commit 3caa1f4e0e
3 changed files with 141 additions and 7 deletions

View file

@ -53,12 +53,18 @@
}
}
function closeMobileMenu() {
const checkbox = document.getElementById('nav-toggle-checkbox');
if (checkbox) checkbox.checked = false;
}
updateMiniplayerVisibility();
updateNavState();
document.body.addEventListener('htmx:afterSwap', () => {
updateMiniplayerVisibility();
updateNavState();
closeMobileMenu();
window.scrollTo(0, 0);
});
</script>