1document.addEventListener("DOMContentLoaded", function(event) { 2 3 [].forEach.call(document.querySelectorAll('.content.resources > ul > li:nth-child(4n+3) > ul > li'), function(element) { 4 element.addEventListener('click', function(event) { 5 var index = 0; 6 var child = element; 7 while((child = child.previousElementSibling) !== null ) { 8 index++; 9 } 10 $.fancybox.open(element.parentNode.parentNode.nextElementSibling.firstElementChild.children[index].innerHTML); 11 }); 12 }); 13 14});
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.