1jQuery(document).ready(function ($) { 2 3 function setCookie(name, value, days) { 4 var date = new Date(); 5 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 6 var expires = "; expires=" + date.toGMTString(); 7 document.cookie = name + "=" + value + expires; 8 } 9 function getParam(p) { 10 var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search); 11 return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); 12 } 13 var gclid = getParam('gclid'); 14 if (gclid) { 15 var gclsrc = getParam('gclsrc'); 16 if (!gclsrc || gclsrc.indexOf('aw') !== -1) { 17 setCookie('gclid', gclid, 90); 18 } 19 } 20});
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.