1document.addEventListener("DOMContentLoaded", function() { 2 3 const queryString = window.location.search; 4 if(queryString.length > 0) { 5 const urlParams = new URLSearchParams(queryString); 6 const src = urlParams.get('src') 7 if(src != null && src != undefined && src == 'em') { 8 // Apply setCookie 9 setCookie('src', "em", 365); 10 } 11 } 12 13}); 14 15// Set a Cookie 16function setCookie(cName, cValue, expDays) { 17 let date = new Date(); 18 date.setTime(date.getTime() + (expDays * 24 * 60 * 60 * 1000)); 19 const expires = "expires=" + date.toUTCString(); 20 document.cookie = cName + "=" + cValue + "; " + expires + "; path=/"; 21}
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.