1function breadcrumbs(){ 2 sURL = new String; 3 bits = new Object; 4 var x = 0; 5 var stop = 0; 6 var output = "<a href=\"/\">Home</a> > "; 7 sURL = location.href; 8 sURL = sURL.slice(8,sURL.length); 9 chunkStart = sURL.indexOf("/"); 10 sURL = sURL.slice(chunkStart+1,sURL.length) 11 while(!stop){ 12 chunkStart = sURL.indexOf("/"); 13 if (chunkStart != -1){ 14 bits[x] = sURL.slice(0,chunkStart) 15 sURL = sURL.slice(chunkStart+1,sURL.length); 16 }else{ 17 stop = 1; 18 } 19 x++; 20 } 21 for(var i in bits){ 22 output += "<a href=\""; 23 for(y=1;y<x-i;y++){ 24 output += "../"; 25 } 26 output += bits[i] + "/\">" + bits[i] + "</a> > "; 27 } 28 document.write(output); 29}
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.