diff --git a/index.html b/index.html index b5b5d04..bb533e2 100644 --- a/index.html +++ b/index.html @@ -12,9 +12,9 @@ DandyHacks ‘23 - + - + About Tracks diff --git a/script.js b/script.js index 3d198d7..b2b6c16 100644 --- a/script.js +++ b/script.js @@ -4,16 +4,12 @@ document.addEventListener('DOMContentLoaded', () => { const navigationLinks = navBar.querySelectorAll('li'); const hamburgerCheckbox = navBar.querySelector('.peer'); - if (hamburgerCheckbox.checked) { - document.body.classList.add('overflow-hidden'); - } - // Hamburger navigation navigationLinks.forEach(navigationLink => { - navigationLink.addEventListener('click', () => { - closeNavigationMenu(); - }); + navigationLink.addEventListener('click', () => { + hamburgerCheckbox.checked = false; + }); }); // Navbar appears on scroll down and hides on scroll up @@ -35,26 +31,13 @@ document.addEventListener('DOMContentLoaded', () => { navBar.classList.remove('-translate-y-full'); } - // Disable scrolling when navigation menu is visible - - hamburgerCheckbox.addEventListener('change', (e) => { - if (e.target.checked) { - document.body.classList.add('overflow-hidden'); - } - }); - // Close navigation menu when the dark overlay is clicked on const darkOverlay = navBar.querySelector('.bg-black'); darkOverlay.addEventListener('click', () => { - closeNavigationMenu(); - }); - - function closeNavigationMenu() { - document.body.classList.remove('overflow-hidden'); hamburgerCheckbox.checked = false; - } + }); // particles.js diff --git a/styles.css b/styles.css index ae22b4a..0915fb3 100644 --- a/styles.css +++ b/styles.css @@ -675,6 +675,14 @@ h1, h2, h3, h4, h5, h6 { z-index: 30; } +.z-40 { + z-index: 40; +} + +.z-50 { + z-index: 50; +} + .float-right { float: right; }