aboutsummaryrefslogtreecommitdiff
path: root/src/js/menu-magic.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-23 09:37:00 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-23 09:37:00 +0200
commitc5c3505cbeaae832c0bc42c0583d77fc2bff8b37 (patch)
tree6c790b0508b10d8651babc027cdc02f8df8fad80 /src/js/menu-magic.js
parent7a1f09d3236b74357c92ec18da69c3828c1a6db5 (diff)
downloadarching-kaos-web-ui-c5c3505cbeaae832c0bc42c0583d77fc2bff8b37.tar.gz
arching-kaos-web-ui-c5c3505cbeaae832c0bc42c0583d77fc2bff8b37.tar.bz2
arching-kaos-web-ui-c5c3505cbeaae832c0bc42c0583d77fc2bff8b37.zip
Refactored menu with ak-generator, fixed mobile viewHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'src/js/menu-magic.js')
-rw-r--r--src/js/menu-magic.js68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/js/menu-magic.js b/src/js/menu-magic.js
deleted file mode 100644
index 58a51dd..0000000
--- a/src/js/menu-magic.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Arching Kaos Menu Magic
- *
- * Kaotisk Hund - 2024
- *
- * @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0
- *
- */
-/*
- * Menu bar management
- *
- * We change the visible floor according to menu selection.
- *
- */
-var upperFloor = document.querySelector('.upper-floor');
-var lowerFloor = document.querySelector('.lower-floor');
-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(){
- exploreSubmenu.style.display = exploreSubmenu.style.display === 'none' ? 'flex' : 'none';
- upperFloor.style.display = upperFloor.style.display === 'none' ? 'flex' : 'none';
- lowerFloor.style.display = lowerFloor.style.display === 'none' ? 'flex' : 'none';
-}
-
-var stellarSubmenu = document.querySelector('#stellar-submenu');
-stellarSubmenu.style.display = 'none';
-function stellarSubToggle(){
- stellarSubmenu.style.display = stellarSubmenu.style.display === 'none' ? 'flex' : 'none';
- 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);
-}
-
-/*
- * Function called on clicks on the menu bar
- * Unhides the pane connected to the clicked menu entry
- */
-function menusel(m){
- menuinit();
- // document.querySelector(m.id.replace('/','')).hidden=false;
- locationHashSetter(m.id);
-
- mainContainer.style.display = 'block';
- if ( isMobile ) {
- doubleFloorMenu.style.display = 'none';
- }
-}
-
-//var doubleFloorMenuDisplay = doubleFloorMenu.style.display;
-function toggleMenu(m){
- mainContainer.style.display = 'none';
- doubleFloorMenu.style.display = 'flex';
-}
-// @license-end