mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-07 18:22:41 +00:00
Fix indentation
This commit is contained in:
parent
297f88bae3
commit
dbfdf9a6fd
@ -68,9 +68,9 @@
|
||||
const scrollPos = window.scrollY || document.documentElement.scrollTop;
|
||||
const stickyLine = hero.scrollHeight - navbar.scrollHeight;
|
||||
if (scrollPos > stickyLine) {
|
||||
navbar.classList.add("nav--sticky");
|
||||
navbar.classList.add("nav--sticky");
|
||||
} else {
|
||||
navbar.classList.remove("nav--sticky");
|
||||
navbar.classList.remove("nav--sticky");
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user