1// JavaScript Document 2function createCookie(name,value,days) { 3 if (days) { 4 var date = new Date(); 5 date.setTime(date.getTime()+(days*24*60*60*1000)); 6 var expires = "; expires="+date.toGMTString(); 7 } 8 else expires = ""; 9 document.cookie = name+"="+value+expires+"; path=/"; 10} 11 12function getCookie(c_name, defaultvalue){ //alert(document.cookie); 13 var i,x,y,arrcookies=document.cookie.split(";"); 14 for (i=0;i<arrcookies.length;i++){ 15 x=arrcookies[i].substr(0,arrcookies[i].indexOf("=")); 16 y=arrcookies[i].substr(arrcookies[i].indexOf("=")+1); 17 x=x.replace(/^\s+|\s+$/g,""); 18 if (x==c_name){ 19 return unescape(y); 20 } 21 } 22 return defaultvalue; 23} 24 25 26 27 28 29 30
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.