add prenav hook

This commit is contained in:
Jacky Zhao
2025-03-09 09:04:04 -07:00
parent 26ff78f81f
commit 50efa14bd2
5 changed files with 28 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ document.addEventListener("nav", (e) => {
const observer = new IntersectionObserver((entries) => {
for (const entry of entries) {
const parentUl = entry.target.parentElement
console.log(parentUl)
if (entry.isIntersecting) {
parentUl.classList.remove("gradient-active")
} else {