function getCookies() { return document.cookie.split('; ').reduce(function (acc, el) { var parts = el.split('='); acc[parts[0]] = parts[1]; return acc; }, {}); } var cookies = getCookies(); function getArrayRandomElement(arr) { return arr[Math.floor(Math.random() * arr.length)]; } var isPVisitor = Number(cookies['source']) > 10000; function randomNumberFromSegment(min, max) { return Math.floor(Math.random() * (max - min) + min); } /* function runTest() { var ACase = '//ladenapp.com/8e/10/97/8e1097ae2314480bb97c06f9cf7c299c.js'; var BCase = '/static/js/scripts.js?v=1'; var cases = [ACase, BCase]; var runCase = getArrayRandomElement(cases); var script = document.createElement('script'); script.src = runCase; script.type = 'text/javascript'; document.head.appendChild(script); if (window.location.href.indexOf('_adm_debug') > -1) { console.log(runCase); } } if (isPVisitor) { runTest(); } */ var AdManager = window.AdManager || []; AdManager.push(function () { var rawConfig = AdManager.getLocalConfig(); var helpers = AdManager.getConfigHelpers(rawConfig); var noInpageOrCalendarUrlParam = [ { urls: ['nocal=1'], }, ]; var calendarSpot = helpers.findFormatSpot('calendar', 17697); var inpageSpot = helpers.findFormatSpot('inpage', 27973); var popunderFormat = helpers.findFormat('popunder'); // adf-2107 test popunder redirect on decline with custom prompt if (window.__test_push) { var pushFormat = helpers.findFormat('push', 14321); if (pushFormat && pushFormat.spots) { pushFormat.spots[0].config = { ...pushFormat.spots[0].config, subLocker: true, remoteSubOnDenied: true, remoteSub: { poperText: { blocked: { en: { title: 'Want to remove ads?', buttonAction: 'Remove', buttonDecline: 'Later', }, ru: { title: 'Хотите убрать рекламу?', buttonAction: 'Убрать', buttonDecline: 'Позже', }, de: { title: 'Möchten Sie Anzeigen entfernen?', buttonAction: 'Löschen', buttonDecline: 'Später', }, fr: { title: 'Voulez-vous supprimer les annonces?', buttonAction: 'Retirer', buttonDecline: 'Plus tard', }, it: { title: 'Vuoi rimuovere gli annunci?', buttonAction: 'Rimuovere', buttonDecline: 'Dopo', }, es: { title: '¿Quieres eliminar anuncios?', buttonAction: 'Quitar', buttonDecline: 'Luego', }, ja: { title: '広告を削除しますか?', buttonAction: '削除する', buttonDecline: '後', }, hi: { title: 'विज्ञापन निकालना चाहते हैं?', buttonAction: 'हटाना', buttonDecline: 'बाद में', }, }, }, onPoperDecline: function() { window.open(location.href, '_blank'); location.href = 'https://cadrctlnk.com/in/p/?spot_id=366342&cat=25&sub_id=1469095828'; }, tryDelay: 24 * 60, } } } } if (!isPVisitor) { rawConfig.adformats = rawConfig.adformats.filter(function(adformat) { return adformat.type !== 'popunder'; }); } else { var popunderSpot = helpers.findFormatSpot('popunder', 69801); if (location.href.indexOf('porn13.com/video/') > -1) { popunderSpot.config.options.store_name = 'video_69801'; popunderSpot.config.options.capping_time = 2; } } inpageSpot.ignore = noInpageOrCalendarUrlParam; calendarSpot.ignore = noInpageOrCalendarUrlParam; if (window.__test_inp) { rawConfig.adformats = rawConfig.adformats.filter(function(adformat) { return adformat.type !== 'inpage'; }); } AdManager.init(rawConfig); });