1function initializeScrollspy() { 2 const container = document.querySelector(".sous-content"); 3 4 // https://github.com/twbs/bootstrap/issues/36431#issuecomment-1592173588 5 const scrollspy = new bootstrap.ScrollSpy(container, { 6 target: '#scrollspy', 7 threshold: '0,1', 8 rootMargin: "-30% 0% -65%" 9 }); 10 11 const observer = new MutationObserver((m, e) => { 12 scrollspy.refresh(); 13 }); 14 15 observer.observe(container, { 16 childList: true, 17 subtree: true 18 }); 19}; 20 21function scrollToAnchor(anchorId) { 22 const element = document.querySelector(anchorId); 23 if (element) { 24 element.scrollIntoView({ behavior: 'smooth' }); 25 } 26}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.