Comment out header and navbar variables

This commit is contained in:
Leilukin 2024-04-12 00:32:09 +08:00 committed by Helen Chong
parent 227641537c
commit 7ac7d67f5f

View File

@ -62,8 +62,9 @@
<script webc:keep webc:bucket="defer">
// Make the navigation bar sticky
const navbar = document.querySelector("navbar");
// const header = document.querySelector(".main-header");
// const navbar = document.querySelector("navbar");
window.addEventListener("scroll", e => {
const scrollPos = window.scrollY || document.documentElement.scrollTop;
const stickyLine = document.querySelector(".main-header").scrollHeight - navbar.scrollHeight;