1//All the cookie setting stuff 2function catapultSetCookie(cookieName, cookieValue, nDays) { 3 var today = new Date(); 4 var expire = new Date(); 5 if (nDays==null || nDays==0) nDays=1; 6 expire.setTime(today.getTime() + 3600000*24*nDays); 7 document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString()+"; path=/"; 8} 9function catapultReadCookie(cookieName) { 10 var theCookie=" "+document.cookie; 11 var ind=theCookie.indexOf(" "+cookieName+"="); 12 if (ind==-1) ind=theCookie.indexOf(";"+cookieName+"="); 13 if (ind==-1 || cookieName=="") return ""; 14 var ind1=theCookie.indexOf(";",ind+1); 15 if (ind1==-1) ind1=theCookie.length; 16 return unescape(theCookie.substring(ind+cookieName.length+2,ind1)); 17} 18function catapultDeleteCookie(cookieName) { 19 var today = new Date(); 20 var expire = new Date() - 30; 21 expire.setTime(today.getTime() - 3600000*24*90); 22 document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString(); 23} 24function catapultAcceptCookies() { 25 catapultSetCookie('catAccCookies', true, 30); 26 jQuery("#catapult-cookie-bar").hide(); 27 jQuery("html").css("margin-top","0"); 28}
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.