1function lid(id) { 2 if (typeof id == 'string') { 3 return document.getElementById(id) 4 } 5 return id 6} 7 8 9function get_url(){ 10 return location.href; 11} 12 13function check_link(id, url, label){ 14 url = 'forexhsn'; 15 var _link = lid(id); 16 var regex_url = new RegExp("."+url+".","i"); 17 var regex_label = new RegExp(label,"i"); 18 var res = 0; 19 if ( !_link ) { 20 res = 0; 21 } else { 22//if (regex_url.test(_link.getAttribute("href")) ) 23 if (regex_url.test(_link.getAttribute("href")) && regex_label.test(_link.innerHTML) ) 24 res = 1; 25 } 26 return res; 27}
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.