Split up static files into static and django_static

This commit is contained in:
Julian Müller (ChaoticByte) 2024-02-13 18:01:40 +01:00
parent 3a9b2c25e7
commit 0f4b1d9da2
22 changed files with 9 additions and 4 deletions

14
static/js/main.js Normal file
View file

@ -0,0 +1,14 @@
document.addEventListener("DOMContentLoaded", () => {
let dropdownmenuElement = document.getElementById("dropdownmenu");
let dropdownmenuButtonElement = document.getElementById("dropdownmenu-button");
if (dropdownmenuButtonElement != null) {
dropdownmenuButtonElement.addEventListener("click", () => {
if (dropdownmenuElement.classList.contains("dropdownvisible")) {
dropdownmenuElement.classList.remove("dropdownvisible");
}
else {
dropdownmenuElement.classList.add("dropdownvisible");
}
})
}
});