1String.prototype.trim = function() 2{ 3 return this.replace(/^\s+|\s+$/g,""); 4} 5function codeToList() 6{ 7 var code = document.getElementsByClassName("xtypo_code"); 8 for (i = 0; i < code.length; i++) 9 { 10 code[i].innerHTML = "<ol class='xtcode'>" + code[i].innerHTML.replace(/<br>*/g, "<li><span>").replace(/\n/g, "<li><span>").replace(/\t/g, "<li><span>").trim() + "</ol>"; 11 } 12 if (document.getElementsByClassName) 13 { 14 var code = document.getElementsByClassName("xtcode"); 15 for (i = 0; i < code.length; i++) 16 { 17 var li = code[i].getElementsByTagName("li") 18 var cn = "odd"; 19 for (x = 0; x < li.length; x++) 20 { 21 li[x].className = cn; 22 cn == "odd" ? cn = "even" : cn = "odd"; 23 } 24 } 25 } 26} 27window.onload = DOMReadyAll; 28function DOMReadyAll() 29{ 30 codeToList(); 31}
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.