1var wpgb_cookie_exp = 365; 2 3function wpgb_get_cookie(c_name) { 4 if (document.cookie.length>0) { 5 c_start=document.cookie.indexOf(c_name + "="); 6 if (c_start!=-1) { 7 c_start=c_start + c_name.length+1; 8 c_end=document.cookie.indexOf(";",c_start); 9 if (c_end==-1) c_end=document.cookie.length; 10 return unescape(document.cookie.substring(c_start,c_end)); 11 } 12 } 13 return ""; 14} 15 16function wpgb_set_cookie(c_name,value,expiredays) { 17 var exdate = new Date(); 18 exdate.setDate(exdate.getDate()+expiredays); 19 document.cookie=c_name+ "=" +escape(value)+";path="+"/"+ 20 ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); 21} 22 23function wpgb_delete_cookie ( c_name ) 24{ 25 var now = new Date (); 26 now.setTime ( now.getTime() - 1 ); 27 document.cookie = c_name += "=; expires=" + now.toGMTString(); 28} 29 30function wpgb_get_delta(ref) { 31 var visit_delta; 32 var visit_last = wpgb_get_cookie("wpgb_visit_last-"+ref); 33 34 if(visit_last==null || visit_last=="") { 35 visit_delta = -1; 36 } 37 else { 38 visit_last = new Date(visit_last); 39 visit_delta = Math.round((new Date() - visit_last)/(1000 * 60)); 40 } 41 return visit_delta; 42} 43 44function wpgb_get_closed(ref) { 45 var closed = wpgb_get_cookie("wpgb_closed-"+ref); 46 if(closed==null || closed=="") { 47 return "" 48 } 49 else { 50 return "true" 51 } 52} 53 54function wpgb_get_logged_in() { 55 var logged_in = wpgb_get_cookie("wpgb_logged_in"); 56 if(logged_in==null || logged_in=="") { 57 return "" 58 } 59 else { 60 return "true" 61 } 62}
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.