MCPcopy Create free account
hub / github.com/Alfredredbird/CyberKelp / scrollToHeading

Function scrollToHeading

script.js:164–168  ·  view source on GitHub ↗
(slug)

Source from the content-addressed store, hash-verified

162}
163
164function scrollToHeading(slug) {
165 if (!slug) return;
166 const el = document.getElementById(slug);
167 if (el) el.scrollIntoView({ behavior: "smooth", block: "start" });
168}
169
170function setActiveLink(noteId) {
171 document.querySelectorAll(".note-link").forEach((el) => {

Callers 1

loadNoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected