From 2e5d43d34fc00e3ea043ff5006ffe36d5536d8be Mon Sep 17 00:00:00 2001 From: Jonas Werner Date: Sat, 22 Mar 2025 12:44:40 +0100 Subject: [PATCH] removed unnecessary comments --- src/main/resources/templates/header.ftl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/resources/templates/header.ftl b/src/main/resources/templates/header.ftl index 31f2cdd..dabcc1e 100644 --- a/src/main/resources/templates/header.ftl +++ b/src/main/resources/templates/header.ftl @@ -27,13 +27,13 @@ hamburgerMenu.classList.toggle('open'); if (hamburgerMenu.classList.contains('open')) { - navLinks.style.display = 'block'; // Show the nav-links - navLinks.classList.add('slide-in'); // Trigger the slide-in animation + navLinks.style.display = 'block'; + navLinks.classList.add('slide-in'); } else { - navLinks.style.display = 'none'; // Hide the nav-links - navLinks.classList.remove('slide-in'); // Reset the animation - navLinks.style.top = '100px'; // Move the nav-links down - navLinks.style.transition = 'top 0.3s ease-in-out'; // Add a transition effect + navLinks.style.display = 'none'; + navLinks.classList.remove('slide-in'); + navLinks.style.top = '100px'; + navLinks.style.transition = 'top 0.3s ease-in-out'; } }); @@ -47,13 +47,13 @@ if (prevScrollPos > currentScrollPos) { document.getElementById("header").style.top = "0"; - navLinks.style.top = '5px'; // Move the nav-links up + navLinks.style.top = '5px'; } else { document.getElementById("header").style.top = "-100px"; - navLinks.style.top = '100px'; // Move the nav-links up + navLinks.style.top = '100px'; } - prevScrollPos = currentScrollPos; // Update the previous scroll position + prevScrollPos = currentScrollPos; };