diff --git a/index.html b/index.html index 220fd7f..3d42abb 100644 --- a/index.html +++ b/index.html @@ -108,11 +108,11 @@ - Game Controllers - VR Accessories - Gaming Keyboard - Others - Login + Game Controllers + VR Accessories + Gaming Keyboard + Others + Login diff --git a/script.js b/script.js index 6203e3f..daaba1b 100644 --- a/script.js +++ b/script.js @@ -15,6 +15,11 @@ function toggleMenu() { } } +function closeNav(){ + menuList.style.height = "0px"; + menuList.style.paddingTop = "0px"; +} + window.onscroll = function() { updateProgressBar(); }; diff --git a/style.css b/style.css index 77faf10..c191e14 100644 --- a/style.css +++ b/style.css @@ -1282,6 +1282,7 @@ button { #menuList { overflow: hidden; transition: 0.5s; + z-index: 99; } .row {