1var utils = {}; 2var HOST = ''; 3utils.cookie = (function() { 4 return{get:function(name) { 5 var prefix = name + '='; 6 var c = document.cookie; 7 var nullstring = ''; 8 var cookieStartIndex = c.indexOf(prefix); 9 if (cookieStartIndex == -1) 10 return nullstring; 11 var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length); 12 if (cookieEndIndex == -1) 13 cookieEndIndex = c.length; 14 return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex)); 15 },set:function(name, value, expires, path, domain, secure, midnight) { 16 var today = new Date(); 17 today.setTime( today.getTime() ); 18 if ( expires ) { 19 expires = expires * 1000 * 60 * 60 * 24; 20 } 21 var expires_date = new Date( today.getTime() + (expires) ); 22 if ( midnight ) { 23 expires_date.setDate(today.getDate() + 1); 24 expires_date.setHours(1,0,0,1); 25 } 26 var tempCookie = name+"="+( value ) + 27 ( ( expires ) ? ";expires="+expires_date.toGMTString() : "" ) + //expires.toGMTString() 28 ( ( path ) ? ";path=" + path : "" ) + 29 ( ( domain ) ? ";domain=" + domain : "" ) + 30 ( ( secure ) ? ";secure" : "" ); 31 //alert('setting cookie:\n'+tempCookie); 32 document.cookie = tempCookie; 33 },remove:function( name, path, domain ) { 34 if ( this.get( name ) ) document.cookie = name + "=" + 35 ( ( path ) ? ";path=" + path : "") + 36 ( ( domain ) ? ";domain=" + domain : "" ) + 37 ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; 38 } 39 } 40}());
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.