%% $t('misc.old_browser') %%
var isPorncom = adver.qs.promo === '25435'; var skipPop = (adver.ua.isiOS && adver.ua.is === 'mobile' && adver.isBravo) || (adver.ua.is === 'mobile' && isPorncom); var isIOS = (/iPad|iPhone|iPod/.test(navigator.platform) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && !window.MSStream; if (isIOS) adver.ua.isMobile = true; if (!skipPop) { var bindSel = ['.jwplayer', '.item-video']; var ignSel = [ '.nopop', '#und_ban', '#ntv_a', '#ntv_b', '#ntv_c', '#iv_1', '.__nat_item' ]; if (adver.ua.isChrome || isPorncom) { 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) { setTimeout(function () { // If it works don't touch pl3748.setVolume(0); pl3748.play(true); }, 1000); clearInterval(waitPlayer) } }, 500); } if (adver.isCWL) { bindSel = ['.jw-display-controls', '.hYbuslay', '.item-video'] ignSel = []; } adver('popunder', { config: { bindTo: bindSel, ignoreTo: ignSel, limit: { maxHits: 3, perTime: 360 }, mode: { newTab: adver.isBravo || adver.ua.isMobile || isPorncom, under: true } }, storeName: 'tcpop', nextHitTime: 5, shouldFire: function (element, opts) { if (adver.isBravo && element && (element.className.indexOf('jw-icon') > -1 || element.className.indexOf('jw-icon-display') > -1)) localStorage.setItem('atppop', 1); return true; }, disableAdditional: adver.isBravo, resetAll: adver.isCWL }); }