function slimstatAddLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } slimstatAddLoadEvent(function() { var ssSrc = '/assets/modules/slimstat/stats_js.php?ref=' + encodeURIComponent(document.referrer) + '&url=' + encodeURIComponent(document.URL) + '&res=' + encodeURIComponent(screen.width+'x'+screen.height) + '&ttl=' + encodeURIComponent(document.title) + '&ts=1639575658'; var ssImg = document.createElement('img'); ssImg.setAttribute('id', 'slimstat2.2img'); ssImg.setAttribute('src', ssSrc); ssImg.setAttribute('style', 'position:absolute;top:-10px;left:0'); ssImg.setAttribute('width', '1'); ssImg.setAttribute('height', '1'); ssImg.setAttribute('alt', ''); document.body.appendChild(ssImg); });