1const accordionElements = document.querySelectorAll('.accordion'); 2 3accordionElements.forEach(accordion => { 4 accordion.addEventListener('shown.bs.collapse', function (event) { 5 6 const item = event.target.closest('.accordion-item'); 7 const header = item.querySelector('.accordion-header'); 8 9 const buffer = 120; // adjust depending on your fixed nav height 10 11 const headerTop = header.getBoundingClientRect().top + window.pageYOffset - buffer; 12 13 window.scrollTo({ 14 top: headerTop, 15 behavior: 'smooth' 16 }); 17 18 }); 19});
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.