var isBravo = adver.qs.promo === '11914'; var skipPop = adver.ua.isiOS && adver.ua.is === 'mobile' && isBravo; if (!skipPop) { var isCLW = adver.cookie.get('tccloak') === '1'; var bindSel = ['.jwplayer', '.item-video']; var ignSel = [ '.nopop', '#und_ban', '#ntv_a', '#ntv_b', '#ntv_c', '#iv_1', '.__nat_item' ]; 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' ]); } adver.videoAutoplayed = false; var autoplayAfterPop = localStorage.getItem('atppop') === '1'; if (autoplayAfterPop) { adver.videoAutoplayed = true; localStorage.setItem('atppop', 0); var waitPlayer = setInterval(function () { if (window.pl3748) { pl3748.setVolume(0); pl3748.play(true); clearInterval(waitPlayer) } }, 500); } if (isCLW) { bindSel = ['.jw-display-controls', '.hYbuslay', '.item-video'] ignSel = []; } adver('popunder', { afterLoad: function () { try { if (isCLW) BetterJsPop.reset(); } catch (e) { } }, pjs: { bindTo: bindSel, ignoreTo: ignSel, tricksChrome: !isBravo }, pop: { shouldFire: function (element, opts) { if (element.className.indexOf('jw-display-controls') > -1 || element.className.indexOf('hYbuslay') > -1 || (isBravo || adver.ua.is !== 'desktop')) localStorage.setItem('atppop', 1) return true; } }, fireLimit: { hits: 3, perTime: 360 }, disableAdditional: isBravo, exitPop: true }); }