diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-05 02:05:53 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-05 02:05:53 +0300 |
commit | 868dc4d375ffa0cdc16951da3cf3c71fd01511c8 (patch) | |
tree | 9af106f09348190182478af8b7bf62da3ace08f8 /src/js | |
parent | e25ed43998d0134c38985f3f80a3e193b1ebf9ee (diff) | |
download | arching-kaos-web-ui-868dc4d375ffa0cdc16951da3cf3c71fd01511c8.tar.gz arching-kaos-web-ui-868dc4d375ffa0cdc16951da3cf3c71fd01511c8.tar.bz2 arching-kaos-web-ui-868dc4d375ffa0cdc16951da3cf3c71fd01511c8.zip |
Made more clear what is what
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/menu-magic.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js/menu-magic.js b/src/js/menu-magic.js index 8ab1bb8..bc48a65 100644 --- a/src/js/menu-magic.js +++ b/src/js/menu-magic.js @@ -6,15 +6,17 @@ */ var upperFloor = document.querySelector('.upper-floor'); var lowerFloor = document.querySelector('.lower-floor'); -var modulesSubmenu = document.querySelector('#modules-submenu'); -modulesSubmenu.style.display = 'none'; upperFloor.style.display = 'flex'; lowerFloor.style.display = 'none'; + +var modulesSubmenu = document.querySelector('#modules-submenu'); +modulesSubmenu.style.display = 'none'; function modulesSubToggle(){ modulesSubmenu.style.display = modulesSubmenu.style.display === 'none' ? 'flex' : 'none'; upperFloor.style.display = upperFloor.style.display === 'none' ? 'flex' : 'none'; lowerFloor.style.display = lowerFloor.style.display === 'none' ? 'flex' : 'none'; } + var exploreSubmenu = document.querySelector('#explore-submenu'); exploreSubmenu.style.display = 'none'; function exploreSubToggle(){ @@ -22,6 +24,8 @@ function exploreSubToggle(){ upperFloor.style.display = upperFloor.style.display === 'none' ? 'flex' : 'none'; lowerFloor.style.display = lowerFloor.style.display === 'none' ? 'flex' : 'none'; } + + // Function to hide all the panes function menuinit(){ menuids.forEach(m=>document.querySelector(m).hidden=true); |