Refactored CSS and HTML templates and polished UI (#10), changed JavaScript variable names to camelCase, adjusted filenames and some url parameter names in urlpatterns, and more.
This commit is contained in:
parent
1e32e2b5dd
commit
8599f49857
30 changed files with 401 additions and 403 deletions
|
@ -1,17 +1,17 @@
|
|||
document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
let dropDownMenuElement = document.getElementById("dropDownMenu");
|
||||
let dropDownMenuButtonElement = document.getElementById("dropDownMenuButton");
|
||||
let dropdownmenuElement = document.getElementById("dropdownmenu");
|
||||
let dropdownmenuButtonElement = document.getElementById("dropdownmenu-button");
|
||||
|
||||
if (dropDownMenuButtonElement != null) {
|
||||
if (dropdownmenuButtonElement != null) {
|
||||
|
||||
dropDownMenuButtonElement.addEventListener("click", () => {
|
||||
dropdownmenuButtonElement.addEventListener("click", () => {
|
||||
|
||||
if (dropDownMenuElement.classList.contains("dropDownVisible")) {
|
||||
dropDownMenuElement.classList.remove("dropDownVisible");
|
||||
if (dropdownmenuElement.classList.contains("dropdownvisible")) {
|
||||
dropdownmenuElement.classList.remove("dropdownvisible");
|
||||
}
|
||||
else {
|
||||
dropDownMenuElement.classList.add("dropDownVisible");
|
||||
dropdownmenuElement.classList.add("dropdownvisible");
|
||||
}
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue