let time_load16259 = 0; setTimeout( function() { time_load16259 = 5; } , 8000); let intervalID16259 = setInterval( load_ads_board16259 , 300); function load_ads_board16259() { var ads_board = document.getElementById("1501c2e690dba321cc03859b0bd0b5fb"); if( !ads_board ) { return; } let ads_busy = find_ads_busy16259(); if( ads_busy !== false ) { ads_board.innerHTML = "..."; clearInterval(intervalID16259); load_ads16259( ads_busy ); } } function find_ads_busy16259() { var ads_busy = ""; let div = [ "99f10c75db90e65de260962ea7db1ae8","3d654477886f32043cd4b7094789e930","4803eb7efe3ec7031867d3f9fe9f4dc5","314ae9d82ce2688ee2a7e911e1760c4b"]; for( let i = 0; i < div.length; i++ ) { let neighbor = document.getElementById( div[i] ); if( !neighbor ) { continue; } if( neighbor.innerHTML == "..." && time_load16259 < 5 ) { return false; } var link = neighbor.getElementsByTagName("a"); for(var j = 0; j < link.length; j++) { prev_link = link[j].href; ad = getUrlVars16259(prev_link); if( ad ) { ads_busy += ads_busy ? ","+ad : ad; } } } return ads_busy; } function getUrlVars16259(link) { var hash; var hashes = link.slice(link.indexOf("?") + 1).split("&"); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split("="); if(hash[0] == "i" ) { ad = atob(hash[1]); return ad.split(",")[0]; } } return ""; } function load_ads16259( ads_busy ) { var host = window.location.hostname; var from = document.referrer; var script = document.createElement("script"); script.charset = "utf-8"; script.src = "https://click.advertnative.com/loading/?load=1&handle=16259&ads_busy="+ads_busy+"&r="+Math.random()+"&host="+host+"&from="+from; console.log("https://click.advertnative.com/loading/?load=1&handle=16259&ads_busy="+ads_busy+"&r="+Math.random()+"&host="+host+"&from="+from); document.getElementsByTagName("head")[0].appendChild(script); }