1function setCookie(name,value,days) { 2 var expires = ""; 3 if (days) { 4 var date = new Date(); 5 date.setTime(date.getTime() + (days*24*60*60*1000)); 6 expires = "; expires=" + date.toUTCString(); 7 } 8 document.cookie = name + "=" + (value || "") + expires + "; path=/"; 9} 10function getCookie(name) { 11 var nameEQ = name + "="; 12 var ca = document.cookie.split(';'); 13 for(var i=0;i < ca.length;i++) { 14 var c = ca[i]; 15 while (c.charAt(0)==' ') c = c.substring(1,c.length); 16 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 17 } 18 return null; 19} 20function eraseCookie(name) { 21 document.cookie = name+'=; Max-Age=-99999999;'; 22}
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.