mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-31 19:50:55 +00:00
Switch to new website
This commit is contained in:
parent
c1720ee27a
commit
01f8e976e1
88 changed files with 3 additions and 8831 deletions
15
assets/narrow-menu.js
Normal file
15
assets/narrow-menu.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
window.addEventListener("load", function() {
|
||||
document.querySelector("button[data-name=nav-open]").addEventListener("click", function() {
|
||||
document.documentElement.classList.add("nav-opened");
|
||||
});
|
||||
document.querySelector("button[data-name=nav-close]").addEventListener("click", function() {
|
||||
document.documentElement.classList.remove("nav-opened");
|
||||
});
|
||||
for (let link of document.querySelectorAll("nav a")) {
|
||||
link.addEventListener("click", function() {
|
||||
if (link.parentElement.classList.contains("active") || link.parentElement.classList.contains("level4")) {
|
||||
document.documentElement.classList.remove("nav-opened");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue