1// script to get utm 2var getUrlParameter = function getUrlParameter(sParam) 3{ 4 var sPageURL = decodeURIComponent(window.location.search.substring(1)), 5 sURLVariables = sPageURL.split('&'), 6 sParameterName, 7 i; 8 for (i = 0; i < sURLVariables.length; i++) 9 { 10 sParameterName = sURLVariables[i].split('='); 11 if (sParameterName[0] === sParam) 12 { 13 return sParameterName[1] === undefined ? true : sParameterName[1]; 14 } 15 } 16}; 17 18 19function getCookie(cname) { 20 var name = cname + "="; 21 var ca = document.cookie.split(';'); 22 for(var i=0; i<ca.length; i++) { 23 var c = ca[i]; 24 while (c.charAt(0)==' ') c = c.substring(1); 25 if (c.indexOf(name) == 0) return c.substring(name.length, c.length); 26 } 27 return ""; 28} 29 30function setCookie(cname, cvalue, exdays) { 31 var d = new Date(); 32 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 33 var expires = "expires="+d.toUTCString(); 34 document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; 35}
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.