mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-04 13:52:42 +00:00
Comment out header and navbar variables
This commit is contained in:
parent
7cfea66289
commit
b2481e8e0b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user