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