Small overall fixes
This commit is contained in:
parent
cb16df5d13
commit
87ee22eab5
8 changed files with 152 additions and 328 deletions
|
|
@ -60,22 +60,4 @@ window.addEventListener("DOMContentLoaded", (evt) => {
|
|||
el.parentElement.insertBefore(child, el.nextSibling);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Add .active to clicked on menus
|
||||
document.querySelectorAll(".dropdown.item").forEach((dropdown) => {
|
||||
dropdown.addEventListener("click", () => {
|
||||
if (dropdown.classList.contains("active")) {
|
||||
dropdown.classList.remove("active");
|
||||
} else {
|
||||
dropdown.classList.add("active");
|
||||
}
|
||||
});
|
||||
|
||||
dropdown.addEventListener("mouseout", () => {
|
||||
if (dropdown.classList.contains("active")) {
|
||||
dropdown.classList.remove("active");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue