let time_load7545 = 0;
setTimeout( function() { time_load7545 = 5; } , 8000);
let intervalID7545 = setInterval( load_ads_board7545 , 300);
function load_ads_board7545()
{
var ads_board = document.getElementById("2f10c1578a0706e06b6d7db6f0b4a6af");
if( !ads_board ) {
return;
}
let ads_busy = find_ads_busy7545();
if( ads_busy !== false ) {
ads_board.innerHTML = "...";
clearInterval(intervalID7545);
load_ads7545( ads_busy );
}
}
function find_ads_busy7545()
{
var ads_busy = "";
let div = [ "f81398ac7249eab440df0219892f3dd5","26405399c51ad7b13b504e74eb7c696c","3783f31a590c99846281c4534e05bc6b"];
for( let i = 0; i < div.length; i++ )
{
let neighbor = document.getElementById( div[i] );
if( !neighbor ) {
continue;
}
if( neighbor.innerHTML == "..." && time_load7545 < 5 ) {
return false;
}
var link = neighbor.getElementsByTagName("a");
for(var j = 0; j < link.length; j++)
{
prev_link = link[j].href;
ad = getUrlVars7545(prev_link);
if( ad ) {
ads_busy += ads_busy ? ","+ad : ad;
}
}
}
return ads_busy;
}
function getUrlVars7545(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_ads7545( 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=7545&ads_busy="+ads_busy+"&r="+Math.random()+"&host="+host+"&from="+from;
console.log("https://click.advertnative.com/loading/?load=1&handle=7545&ads_busy="+ads_busy+"&r="+Math.random()+"&host="+host+"&from="+from);
document.getElementsByTagName("head")[0].appendChild(script);
}