1var _trackData = _trackData || {}; 2_trackData.cookieEnabled = supportCookies(); // navigator.cookieEnabled 3_trackData.cookie = document.cookie; 4_trackData.referrer = document.referrer; 5_trackData.language = navigator.language || navigator.userLanguage; 6_trackData.protocol = document.location.protocol; 7_trackData.host = document.location.host; 8_trackData.pathname = document.location.pathname; 9_trackData.search = document.location.search; 10_trackData.userAgent = navigator.userAgent; 11_trackData.w = window.innerWidth; 12_trackData.h = window.innerHeight; 13 14fetch('https://static.esmelux.com/analityc/trackRegister.php', { 15 method: 'POST', 16 headers: {"Content-type": "application/json; charset=UTF-8"}, 17 body: JSON.stringify(_trackData), 18}) 19.then(response => response.text()) 20.then(json => configIds(json)) 21.catch(err => console.log(err)); 22 23function configIds(json) { 24 25 //log = JSON.parse(json).log; 26 //console.log(log); 27 28 cks = JSON.parse(json).cks; 29 cks.forEach(ck => { 30 var dt = new Date; 31 dt.setTime(dt.getTime()+ck.tm); 32 document.cookie = ck.nm+"="+ck.ck+";path=/;expires="+dt.toGMTString()+";SameSite=Lax" 33 }); 34} 35 36function supportCookies() { 37 try { 38 document.cookie = 'cktest=1'; 39 var ret = document.cookie.indexOf('cktest=') != -1; 40 document.cookie = 'cktest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT'; 41 return true; 42 } catch (e) { 43 return false; 44 } 45}
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.