(selector)
| 281 | |
| 282 | // Scroll to element functionality |
| 283 | function scrollToElement(selector) { |
| 284 | const element = document.querySelector(selector); |
| 285 | if (element) { |
| 286 | element.scrollIntoView({ |
| 287 | behavior: "smooth", |
| 288 | block: "start", |
| 289 | }); |
| 290 | // closeTocMenu(); // Keep TOC open after navigation |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | // Floating Table of Contents functionality |
| 295 | function initializeFloatingToc() { |
nothing calls this directly
no outgoing calls
no test coverage detected