Fix indentation

This commit is contained in:
Helen Chong 2024-04-18 13:18:23 +08:00
parent 297f88bae3
commit dbfdf9a6fd
1 changed files with 2 additions and 2 deletions

View File

@ -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>