From 2e6f93b1aec80d11175f1e00014562cc8742a4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tore=20M=C3=A6land=20Hirth?= Date: Fri, 11 Oct 2024 20:09:13 +0200 Subject: [PATCH] delete console log, minor updates html --- index.html | 6 +++--- src/js/ui/displayHeaderOnScrollUp.mjs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index e0d6d36..b72f675 100644 --- a/index.html +++ b/index.html @@ -187,9 +187,9 @@ - +
+ +
diff --git a/src/js/ui/displayHeaderOnScrollUp.mjs b/src/js/ui/displayHeaderOnScrollUp.mjs index d9fb2ac..ff08ad3 100644 --- a/src/js/ui/displayHeaderOnScrollUp.mjs +++ b/src/js/ui/displayHeaderOnScrollUp.mjs @@ -3,9 +3,8 @@ const headerBar = document.querySelector(".header-bar"); export const displayHeaderOnScrollUp = () => { // Keep track of last scroll position - console.log(window.scrollY); - let lastScroll = 0; + if (window.scrollY > 100) { headerBarContainer.classList.add("scroll-down"); }