/* Copyright 2022 yoobs statistics. All rights reserved. www.yoobs.sk */ function ys_setcookie(cname, cvalue, exdays) { const d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); let expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function ys_stat(ys_tc) { var ys_l = window.location; var ys_w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var ys_param = 'tc='+ys_tc+ '&r='+encodeURIComponent(document.referrer)+ '&h='+encodeURIComponent(ys_l.href)+ '&d='+encodeURIComponent(ys_l.host)+ '&tm='+(Math.random()*10); is_ifr(ys_param); } function is_ifr(ys_param) { var ys_elm = document.createElement("iframe"); ys_elm.src = 'https://stat.yoobs.sk/statistics?' + ys_param; ys_elm.style.width = '1px'; ys_elm.style.height = '1px'; ys_elm.style.position = 'absolute'; ys_elm.style.top = '-32px'; document.body.appendChild(ys_elm); } function ys_cookies() { const d = new Date(); ys_setcookie('_ys', 'y.'+d.getTime()+'.'+Math.floor(100000000+Math.random()*900000000), 300); var dr = document.referrer; if ((dr != '') && (!dr.startsWith('http://'+window.location.host)) && (!dr.startsWith('https://'+window.location.host))) { ys_stat(132156261); } } ys_cookies();