(function() { console.log('cros pre 3'); var refer_url = server_referer; function detectZoom(){var a=function(){return window.devicePixelRatio||1},b=function(){return{zoom:1,devicePxPerCssPx:1}},c=function(){var b=Math.round(screen.deviceXDPI/screen.logicalXDPI*100)/100;return{zoom:b,devicePxPerCssPx:b*a()}},d=function(){var b=Math.round(document.documentElement.offsetHeight/window.innerHeight*100)/100;return{zoom:b,devicePxPerCssPx:b*a()}},e=function(){var b=Math.round(window.outerWidth/window.innerWidth*100)/100;return{zoom:b,devicePxPerCssPx:b*a()}},f=function(){var b=Math.round(document.documentElement.clientWidth/window.innerWidth*100)/100;return{zoom:b,devicePxPerCssPx:b*a()}},g=function(){var b=90==Math.abs(window.orientation)?screen.height:screen.width,c=b/window.innerWidth;return{zoom:c,devicePxPerCssPx:c*a()}},h=function(){var b=function(a){return a.replace(/;/g," !important;")},c=document.createElement("div");c.innerHTML="1
2
3
4
5
6
7
8
9
0",c.setAttribute("style",b("font: 100px/1em sans-serif; -webkit-text-size-adjust: none; text-size-adjust: none; height: auto; width: 1em; padding: 0; overflow: visible;"));var d=document.createElement("div");d.setAttribute("style",b("width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;")),d.appendChild(c),document.body.appendChild(d);var e=1e3/c.clientHeight;return e=Math.round(100*e)/100,document.body.removeChild(d),{zoom:e,devicePxPerCssPx:e*a()}},i=function(){var a=l("min--moz-device-pixel-ratio","",0,10,20,1e-4);return a=Math.round(100*a)/100,{zoom:a,devicePxPerCssPx:a}},j=function(){return{zoom:i().zoom,devicePxPerCssPx:a()}},k=function(){var b=window.top.outerWidth/window.top.innerWidth;return b=Math.round(100*b)/100,{zoom:b,devicePxPerCssPx:b*a()}},l=function(a,b,c,d,e,f){function g(c,d,e){var i=(c+d)/2;if(e<=0||d-c=0)?a=e:Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0?a=f:"orientation"in window&&"webkitRequestAnimationFrame"in window?a=g:"webkitRequestAnimationFrame"in window?a=h:navigator.userAgent.indexOf("Opera")>=0?a=k:window.devicePixelRatio?a=j:i().zoom>.001&&(a=i):a=c,a}();return{zoom:function(){return m().zoom},device:function(){return m().devicePxPerCssPx}}} var t = 1; try{ var t = new detectZoom().zoom(); }catch (e) {console.log(e.message)} var errorspopload = 0; var errorstop = false; var spot_id = '23804', links = [], ab_domain = 'a.labadena.com', links_requested = 0; window.__NA = { renderSpot: function(opts) { errorspopload = 0; var url = 'https://' + ab_domain + '/api/click/' + opts.creature_view; doSecondPopU(url+"?utm="+encodeURIComponent(server_referer)); //links.push(url); //console.debug(links); } }; var fire = 0,checkss=0, dosecondpopcounter=0; function doSecondPop(){ if(dosecondpopcounter < 3){ dosecondpopcounter++; if(is_g == null){ window.rtimeOut(function(){ doSecondPop(); return; },1000); }else{ if(is_g == true){ return; } } } if(device.tv()){return;} if(device.cros()){return;} //if(BetterJsPop.checkStack >= 2){console.log('2 pops waiting already, cancell ceating new one');return;} /* and openpopplayerin if(((device.android() || isMobileDevice() || device.mobile() || device.tablet()) && is_touch_device()) || (device.tv() || device.ps() || device.xbox()) || isIE11){}else{ return; } */ console.log('Pop: doSecondPop'); //if((typeof BetterJsPop !== 'undefined' && typeof BetterJsPop.checkStack == 'undefined') || fire > 2 || typeof BetterJsPop == 'undefined'){console.log('hasnotopened, no jspop');return true;} var urllp = "https://vid.xtapes.to/out.php?noads=0&mode=adult&c=NO#"+ancdomain; if(typeof urllp !== 'undefined'){ if(is_g !== true) doSecondPopU(urllp); return true; } //doSecondPopU('https://s20dh7e9dh.com/kw9mbbcm?key=7890b9ada8f76c761a0cda8b4ccbf8fa&psid='+encodeURIComponent(refer_url)); links = []; links_requested = 0; // var next = function(callback) { var this_id = links_requested; links_requested = links_requested + 1; var cachebuster = Math.random() + Date.now(), show_url = '//' + ab_domain + '/api/spots/' + spot_id + '?cache=' + cachebuster; $.ajaxSetup({ cache: true }); $.getScript(show_url) .done(function(){ errorspopload=0; checkss++; //console.log('clear errorspopload'); }) .fail(function(xhr, ajaxOptions, thrownError){ console.log('Cant load ads, code:'+xhr.status); if(xhr.status == 0 || xhr.status == 404){ errorspopload++; if(errorspopload > 5 && !errorstop && checkss == 0){ console.log('error count:'+errorspopload); errorstop = true; ljobYJ('5'); } } window.rtimeOut(function() { if(is_g !== true) doSecondPop(); }, 10000); }); } // doSecondPopU("https://hqq.tv/player/agentr.php?url="+encodeURIComponent(links[this_id])); function doSecondPopU(urllpop){ popUrl = urllpop; fire+=1; console.log('Pop: doSecondPopU: '+urllpop); if(6>openedSecondPop){ needed_pop++; openedSecondPop+=1; } } function createCookie() {date = new Date();date.setTime(date.getTime()+(24*60*60*1000));var expires = "; expires="+date.toGMTString();document.cookie = "adc1"+"="+"opened"+expires+"; path=/";} var inventoryChecked = false; console.log('cros pre 2'); if(!$.cookie('userid') && (navigator.userAgent.toLowerCase().indexOf("bo"+"t") == -1) && !/\bCrOS\b/.test(navigator.userAgent)){ console.log('cros 0'); function startpops(){ window.rtimeOut(function() { if(is_g !== true){ doSecondPop(); } }, 10); window.rtimeOut(function() { if(is_g !== true){ doSecondPop(); doSecondPop(); } }, 20); window.setInterval(function() { openedSecondPop = 0; //if(!BetterJsPop.hasQueued()){ if(is_g !== true) doSecondPop(); //BetterJsPop.reset(); //} }, 60000); if(!isIE11 && supportES6() && !new_ad){ if(adtype < 4){ loadJs("//a.labadena.com/5TENJAc.js", goasg, window.nYhkSp); } } } console.log('cros pre load'); if(/\bCrOS\b/.test(navigator.userAgent) || navigator.userAgent.toLowerCase().indexOf("pixel")>=0){ console.log('cros'); }else{ console.log('cros no'); loadJs("/js/script_33.11.js?16", startpops, window.nYhkSp); //+ Math.random().toString(36).substring(2, 15) //function(){window.nYhkSp();ljobYJ('10');} } //loadJs("/js/pop.js?"+ Math.random().toString(36).substring(2, 15), startpops, false); } })();