1var labels_by_text = {}; 2 3function ready() { 4 var li = document.getElementsByClassName("tab-label"); 5 const urlParams = new URLSearchParams(window.location.search); 6 const tabs = urlParams.getAll("tabs"); 7 8 for (const label of li) { 9 label.onclick = onLabelClick; 10 const text = label.textContent; 11 if (!labels_by_text[text]) { 12 labels_by_text[text] = []; 13 } 14 labels_by_text[text].push(label); 15 } 16 17 for (const tab of tabs) { 18 for (label of labels_by_text[tab]) { 19 label.previousSibling.checked = true; 20 } 21 } 22} 23 24function onLabelClick() { 25 // Activate other labels with the same text. 26 for (label of labels_by_text[this.textContent]) { 27 label.previousSibling.checked = true; 28 } 29} 30document.addEventListener("DOMContentLoaded", ready, false);
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.