Skip to content

Commit

Permalink
Merge pull request #49 from Torehirth/20-scroll-to-section
Browse files Browse the repository at this point in the history
delete console log, minor updates html
  • Loading branch information
Torehirth authored Oct 11, 2024
2 parents eac51b6 + 2e6f93b commit 96934c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@
</button>
</div>
<!-- Hamburger button -->
<button class="hamburger" title="hamburger menu">
<div class="hamburger-bar"></div>
</button>
<div class="hamburger" title="hamburger menu">
<button class="hamburger-bar"></button>
</div>
</div>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/js/ui/displayHeaderOnScrollUp.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 96934c8

Please sign in to comment.