From 666db815d995099c12477d3f632f2ce34fedfc70 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 5 Sep 2023 02:16:57 +0300 Subject: Fixed Stellar menu --- src/js/menu-magic.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/js/menu-magic.js') diff --git a/src/js/menu-magic.js b/src/js/menu-magic.js index bc48a65..b4ee247 100644 --- a/src/js/menu-magic.js +++ b/src/js/menu-magic.js @@ -25,6 +25,13 @@ function exploreSubToggle(){ 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(){ -- cgit v1.2.3