var skipPop = adver.ua.isiOS && adver.ua.is === 'mobile' && isBravo; if (!skipPop) { var isCLW = adver.cookie.get('tccloak') === '1'; var isBravo = adver.qs.promo === '11914'; var autoplayAfterPop = localStorage.getItem('atppop'); var bindSel = ['.jwplayer', '.item-video']; var ignSel = [ '.nopop', '#und_ban', '#ntv_a', '#ntv_b', '#ntv_c', '#iv_1', '.__nat_item' ]; if (autoplayAfterPop) { var waitPlayer = setInterval(function(){ if (window.pl3748) { pl3748.setVolume(0); pl3748.play(true); clearInterval(waitPlayer) } }, 500); localStorage.removeItem('atppop'); } if(adver.ua.isChrome) { ignSel = ignSel.concat([ '.jwplayer', '.jw-svg-icon', '.jw-icon', '.jw-icon-inline', '.oImef', '.jw-slider-container', '.hYbuslay', '.jw-skip', '.jw-controls', '.jw-controlbar' ]); } if (isCLW) { bindSel = ['.jw-display-controls', '.item-video'] ignSel = []; } adver('popunder', { afterLoad: function() {if (isCLW) BetterJsPop.reset();}, pjs: { bindTo: bindSel, ignoreTo: ignSel, tricksChrome: !isBravo }, pop: { under: (adver.ua.is !== 'mobile' || !isBravo), beforeOpen: function(a1, a2) { localStorage.setItem('tcpstop', isBravo ? 1 : 0); localStorage.setItem('atppop', 1) } }, fireLimit: { hits: 3, perTime: 360 }, firePopCondition: function( element, opts ) { if (localStorage.getItem('tcPusherRemoteRegStatus') === '1') return false; if (isBravo) return +localStorage.getItem('tcpstop') === 0; return true; }, exitPop: true }); }