1 2function getQueryVariable(variable) 3 { 4 var query = window.location.search.substring(1); 5 var vars = query.split("&"); 6 for (var i=0;i<vars.length;i++) { 7 var pair = vars[i].split("="); 8 if(pair[0] == variable){return pair[1];} 9 } 10 return(false); 11 } 12 13 14 function createCookie(name,value,days) { 15 var expires = ""; 16 if (days) { 17 var date = new Date(); 18 date.setTime(date.getTime()+(days*24*60*60*1000)); 19 var expires = "; expires="+date.toGMTString(); 20 } 21 document.cookie = name+"="+value+expires+"; path=/"; 22 } 23 24 function readCookie(name) { 25 var nameEQ = name + "="; 26 var ca = document.cookie.split(';'); 27 for(var i=0;i < ca.length;i++) { 28 var c = ca[i]; 29 while (c.charAt(0)==' ') c = c.substring(1,c.length); 30 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 31 } 32 return null; 33 } 34 function eraseCookie(name) { 35 createCookie(name,"",-1); 36 } 37 var c_name = "_deco_utmz"; 38 if(getQueryVariable("utm_source") != "") { 39 createCookie("_deco_utmz", getQueryVariable("utm_source") + "|" + getQueryVariable("utm_medium")+ "|" + getQueryVariable("utm_term")+ "|" + getQueryVariable("utm_campaign")+ "|" + getQueryVariable("utm_content"), 60); 40 createCookie("_deco_utmurl", window.location.href.split('?')[0], 60); 41 } 42 //checking if referrer is external url. 43 44 if(document.referrer.indexOf(location.protocol + "//" + location.host) === 0){ 45 createCookie("_deco_utm_referrer", document.referrer, 60); 46 }
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.