var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var l_l=1; var tmp_ini=0; function readCookie(name) { var nameEQ = escape(name) + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) === 0) return unescape(c.substring(nameEQ.length, c.length)); } return ""; } function createCORSRequest(method, url) { var xhr = new XMLHttpRequest(); xhr.withCredentials = true; if ("withCredentials" in xhr) { // XHR for Chrome/Firefox/Opera/Safari. xhr.open(method, url, true); } else if (typeof XDomainRequest != "undefined") { // XDomainRequest for IE. xhr = new XDomainRequest(); xhr.open(method, url); } else { // CORS not supported. xhr = null; } return xhr; } (function() { if(readCookie('pkz_cpm_63_4')=="" || 4==-2) { var url = 'https://hotcpm.pl/cpm_baner_63_4.bn'; var xhr = createCORSRequest('GET', url); if (!xhr) { return; } // Response handlers. xhr.onload = function() { var elementy=document.querySelectorAll("#hotcpm_63_4"); console.log(elementy.length); for (i = 0; i < elementy.length; i++) { if(elementy[ i].innerHTML =="") { elementy[ i].innerHTML =xhr.responseText; i=elementy.length+1; } } setTimeout(function() { if(document.getElementById('bnr_s_63_4').clientHeight >0 ){ var url = 'https://hotcpm.pl/cpm_baners_63_4.bn'; var xhr2 = createCORSRequest('GET', url); if (!xhr2) { return; } xhr2.onload = function() { } xhr2.send(); } }, 1000); } xhr.send(); }; })(); }