Fix indentation
This commit is contained in:
parent
eec73db7d6
commit
257ee90ad9
@ -68,9 +68,9 @@
|
|||||||
const scrollPos = window.scrollY || document.documentElement.scrollTop;
|
const scrollPos = window.scrollY || document.documentElement.scrollTop;
|
||||||
const stickyLine = hero.scrollHeight - navbar.scrollHeight;
|
const stickyLine = hero.scrollHeight - navbar.scrollHeight;
|
||||||
if (scrollPos > stickyLine) {
|
if (scrollPos > stickyLine) {
|
||||||
navbar.classList.add("nav--sticky");
|
navbar.classList.add("nav--sticky");
|
||||||
} else {
|
} else {
|
||||||
navbar.classList.remove("nav--sticky");
|
navbar.classList.remove("nav--sticky");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
x
Reference in New Issue
Block a user