1document.addEventListener("DOMContentLoaded", function () { 2 const ca02_titles = document.querySelectorAll('.ca02_title'); 3 ca02_titles.forEach(ca02_title => { 4 ca02_title.addEventListener('click', function (e) { 5 const hrefdiv = e.querySelector("a").getAttribute('href'); 6 // Check if hrefVal starts with # 7 if (hrefdiv.startsWith('#')) { 8 // Get the id from the href 9 const id = hrefdiv.substring(1); 10 // Find the element with that id 11 const targetElement = document.getElementById(id); 12 if (targetElement) { 13 // Calculate the element position (accounting for fixed header) 14 const offset = targetElement.offsetTop - 160; 15 // Perform smooth scrolling 16 window.scrollTo({ 17 top: offset, 18 behavior: 'smooth' 19 }); 20 e.preventDefault(); 21 } 22 } 23 }); 24 }) 25});
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.