zenno: use data from api

This commit is contained in:
2026-06-05 14:31:10 -04:00
parent 871fd5fdcc
commit a848c8eb72
15 changed files with 369 additions and 322 deletions
+2 -2
View File
@@ -20,13 +20,13 @@
tocViewed = true;
obs.disconnect();
}
}
};
$effect(() => {
if (tocElem == null) {
return;
}
const obs = new IntersectionObserver(observeTOC, {rootMargin: "20% 0px"});
const obs = new IntersectionObserver(observeTOC, { rootMargin: '20% 0px' });
obs.observe(tocElem);
});