1document.addEventListener("DOMContentLoaded", () => { 2 const headers = document.querySelectorAll("h2[id^='toc-'], h3[id^='toc-']"); 3 const touchEvent = "click"; 4 headers.forEach((header) => { 5 header.addEventListener( 6 touchEvent, 7 (e) => { 8 const originalContent = header.textContent; 9 const url = `${document.location.href.split("#")[0]}#${header.id}`; 10 navigator.clipboard.writeText(url).then(() => { 11 header.classList.add("copied"); 12 setTimeout(() => { 13 header.classList.remove("copied"); 14 header.textContent = originalContent; 15 }, 1500); 16 }); 17 }, 18 { passive: true } 19 ); 20 }); 21});
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.