js.wpnsrv.com Open in urlscan Pro
2001:4de0:ac19::1:b:3a  Public Scan

URL: http://js.wpnsrv.com/pn.php
Submission: On October 16 via manual from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

class exoPnSubscriber{retries=0;constructor(){this.applicationServerKey="BCmti7ScwxxVAlB7WAyxoOXtV7J8vVCXwEDIFXjKvD-ma-yJx_eHJLdADyyzzTKRGb395bSAtxlh4wuDycO3Ih4";this.swName='worker.js'}static detectBrowser(userAgent){var browserDefinitions=[['firefox',/Firefox\/([0-9.]+)(?:\s|$)/],['opera',/Opera\/([0-9.]+)(?:\s|$)/],['opera',/OPR\/([0-9.]+)(:?\s|$)$/],['edge',/Edge\/([0-9._]+)/],['ie',/Trident\/7\.0.*rv:([0-9.]+)\).*Gecko$/],['ie',/MSIE\s([0-9.]+);.*Trident\/[4-7].0/],['ie',/MSIE\s(7\.0)/],['safari',/Version\/([0-9._]+).*Safari/],['chrome',/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9.]+)(:?\s|$)/],['bb10',/BB10;\sTouch.*Version\/([0-9.]+)/],['android',/Android\s([0-9.]+)/],['ios',/Version\/([0-9._]+).*Mobile.*Safari.*/],['yandexbrowser',/YaBrowser\/([0-9._]+)/],['crios',/CriOS\/([0-9.]+)(:?\s|$)/]];var isMobile=userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WebOS|Windows Phone/i);for(var i in browserDefinitions){var definition=browserDefinitions[i];if(definition[1].test(userAgent)){var match=definition[1].exec(userAgent);var version=match&&match[1].split(/[._]/).slice(0,3);var versionTails=Array.prototype.slice.call(version,1).join('')||'0';if(version&&version.length<3){Array.prototype.push.apply(version,version.length===1?[0,0]:[0])}return{name:definition[0],version:version.join('.'),versionNumber:parseFloat(version[0]+'.'+versionTails),isMobile:isMobile}}}return{name:"other",version:"1.0",versionNumber:1.0,isMobile:isMobile}}async run(zoneId,swName){this.zoneId=zoneId;this.swName=(typeof swName==='string'||swName instanceof String)?swName:this.swName;let missingZoneId=(typeof this.zoneId==='undefined'||this.zoneId.length<1);let missingSwName=(typeof this.swName==='undefined'||this.swName.length<1);if(missingZoneId||missingSwName||!exoPnSubscriber.isBrowserSupporting()){return false}this.registerSW();if(await exoPnSubscriber.isSubscribed()){exoPnSubscriber.sendEvent("already-subscribed")}else{return this.subscribe()}}static isBrowserSupporting(){let supported=(('serviceWorker'in navigator)&&('PushManager'in window)&&('showNotification'in ServiceWorkerRegistration.prototype));return(supported&&Notification.permission!=='denied')}static urlBase64ToUint8Array(base64String){const padding='='.repeat((4-base64String.length%4)%4);const base64=(base64String+padding).replace(/-/g,'+').replace(/_/g,'/');const rawData=window.atob(base64);return Uint8Array.from([...rawData].map((char)=>char.charCodeAt(0)))}subscribe(){exoPnSubscriber.sendEvent('subscribe-start');return navigator.serviceWorker.ready.then(serviceWorkerRegistration=>{return serviceWorkerRegistration.pushManager.subscribe({userVisibleOnly:true,applicationServerKey:exoPnSubscriber.urlBase64ToUint8Array(this.applicationServerKey),})}).then(subscription=>{return this.sendSubscriptionToBackend(subscription,'POST')}).then(subscription=>{if(subscription){exoPnSubscriber.sendEvent('enabled')}}).catch(e=>{if(Notification.permission==='denied'){exoPnSubscriber.sendEvent('subscribe-denied-by-user',e)}else if(Notification.permission==='default'&&this.retries===0){var that=this;var retry=function(){that.subscribe();document.removeEventListener("click",retry)};document.addEventListener("click",retry);this.retries++}else{exoPnSubscriber.sendEvent('subscribe-failed',e)}})}static isSubscribed(){return navigator.serviceWorker.ready.then(serviceWorkerRegistration=>{return serviceWorkerRegistration.pushManager.getSubscription()}).then(subscription=>{return((typeof subscription!=="undefined")&&subscription!==null)})}static sendEvent(event,exception){if(event==='enabled'){let myEvent=new CustomEvent('subscribe-yes');document.dispatchEvent(myEvent)}if(event==='already-subscribed'||event==='subscribe-denied-by-user'||event==='subscribe-failed'){let myEvent=new CustomEvent('subscribe-no');document.dispatchEvent(myEvent)}}async sendSubscriptionToBackend(subscription,method){let send={};send.endpoint=subscription.endpoint;send.key=btoa(String.fromCharCode.apply(null,new Uint8Array(subscription.getKey('p256dh'))));send.token=btoa(String.fromCharCode.apply(null,new Uint8Array(subscription.getKey('auth'))));send.idzone=this.zoneId;send.is_self_hosted=((typeof pn_is_self_hosted!=='undefined'))?pn_is_self_hosted:0;send.screen_resolution=screen.width+"x"+screen.height;return await fetch('https://'+this.zoneId+'.notify6.com/subscription.php',{method,body:JSON.stringify(send),credentials:'include'}).then(response=>{return{status:(response.status===200),data:{}}}).catch(reason=>console.log(reason))}registerSW(){navigator.serviceWorker.register(this.swName).then(()=>{exoPnSubscriber.sendEvent("sw-registered")},e=>{exoPnSubscriber.sendEvent('sw-failed',e)})}showKeys(){navigator.serviceWorker.register(this.swName);navigator.serviceWorker.ready.then(serviceWorkerRegistration=>serviceWorkerRegistration.pushManager.getSubscription()).then(subscription=>{if(!subscription){console.log("Can't get subscription")}console.log('endpoint',subscription.endpoint);console.log('key',btoa(String.fromCharCode.apply(null,new Uint8Array(subscription.getKey('p256dh')))));console.log('token',btoa(String.fromCharCode.apply(null,new Uint8Array(subscription.getKey('auth')))))}).catch(e=>{console.error('err: getting subscription ',e)})}}(function(exoDynamicParams){var exoLaunchPN=function(event){if(typeof pn_idzone==='undefined'){console.log("pn_idzone not defined");return}var idZone=parseInt(pn_idzone);if(typeof pn_filename==='undefined'){pn_filename='worker.js'}if(typeof pn_sleep_seconds==='undefined'){pn_sleep_seconds=5}if(typeof pn_is_self_hosted==='undefined'){pn_is_self_hosted=0}if(window.customTargeting!==undefined&&Object.keys(customTargeting).length){for(var key in customTargeting){customTargetingParams='&'+key+'='+customTargeting[key]}}var cookieZoneSoftAsk='pn-zone-ask';var cookieZoneSubscribe='pn-zone-done';var cookieNameZonePushNotification='pn-zone-'+idZone;var softAskOnceInHours=48;var checkSubscriptionAfterDays=45;var pn_soft_ask_translations={en:{title:"Click ALLOW to continue",description:"Would you like to receive great special offers and promotions?",yes:"Allow",no:"No, Thanks"},es:{title:"Haz clic en PERMITIR para continuar",description:"¿Te gustaría recibir ofertas especiales y promociones?",yes:"Permitir",no:"No, gracias"},fr:{title:"Cliquez sur AUTORISER pour continuer",description:"Souhaitez-vous recevoir d'excellentes offres spéciales et promotions?",yes:"Autoriser",no:"Non, merci"},de:{title:"Klicken Sie ERLAUBEN um fortzufahren",description:"Möchten Sie tolle Sonderangebote und Aktionen erhalten?",yes:"Erlauben",no:"Nein, Danke"},it:{title:"Clicca su \"ACCETTA\" per continuare",description:"Ti piacerebbe ricevere imperdibili offerte e promozioni?",yes:"Accetta",no:"No, grazie"},zh:{title:"单击“允许”继续",description:"你想获得特别优惠和促销活动吗?",yes:"允许",no:"不,谢谢"},pt:{title:"Clique em \"Permitir\" para continuar",description:"Gostaria de receber ofertas especiais e promoções?",yes:"Permitir",no:"Não, obrigado"},ru:{title:"Нажмите РАЗРЕШИТЬ, чтобы продолжить",description:"Вы бы хотели получать информацию о специальных предложениях и промо-акциях?",yes:"Разрешить",no:"Нет, спасибо"},cs:{title:"Klikni na Ano",description:"Chcete dostávat naše speciální nabídky a promo akce?",yes:"Ano",no:"Ne, děkuji"},sk:{title:"Pokračujte kliknutím na POVOLIŤ",description:"Máte záujem o zasielanie skvelých špeciálnych ponúk a akcií?",yes:"Áno",no:"Nie, ďakujem"},hu:{title:"Kattintson az Engedelyézem linkre a folytatáshoz",description:"Szeretnél értesülni különleges ajánlatokról és akciókról?",yes:"Engedélyezem",no:"Nem, Köszönöm"},hr:{title:"Kliknite DOPUSTI za nastavak",description:"Da li zelite primati specijale ponude i promocije",yes:"Dopusti",no:"Ne, hvala",}};if(typeof pn_soft_ask==='undefined'||pn_soft_ask==1){setTimeout(runPnSoftAsk,pn_sleep_seconds*1000)}else if(typeof pn_is_self_hosted!=='undefined'&&pn_is_self_hosted==1){var browser=exoPnSubscriber.detectBrowser(navigator.userAgent);if(browser.name==='firefox'&&browser.versionNumber>=72){document.addEventListener("click",runSubscription)}else{setTimeout(runSubscription,pn_sleep_seconds*1000)}}else{console.log("Wrong combination of pn_soft_ask or pn_is_self_hosted")}function runPnSoftAsk(){if(getZoneExpireTime()){return}var text=getText();var elem=document.createElement('div');elem.id='wpnAskModalContainer';elem.style.display='none';elem.innerHTML=getCss()+'<div id="wpnAskModal">\n'+'<div id="wpnAskInner">\n'+'<div id="wpnAskDescription">'+text.description+'</div>\n'+'<div id="wpnAskTitle">'+text.title+'</div>\n'+'<div id="wpnAskBtnNo">'+text.no+'</div>\n'+'<div id="wpnAskBtnYes">'+text.yes+'</div>'+'</div>\n'+'</div>';document.body.appendChild(elem);elem.style.display='flex';document.getElementById('wpnAskBtnYes').onclick=function(){updateCookieSubscribeTime(cookieZoneSoftAsk);elem.style.display='none';runSubscription()};document.getElementById('wpnAskBtnNo').onclick=function(){elem.style.display='none';updateCookieSubscribeTime(cookieZoneSoftAsk)}}function getText(){var translatedText={};var hasCustomTitle=(typeof pn_soft_ask_title!=='undefined');var hasCustomDescription=(typeof pn_soft_ask_description!=='undefined');var hasCustomYes=(typeof pn_soft_ask_yes!=='undefined');var hasCustomNo=(typeof pn_soft_ask_no!=='undefined');if(!hasCustomTitle||!hasCustomDescription||!hasCustomYes||!hasCustomYes){translatedText=getTranslatedText()}if(hasCustomTitle){translatedText.title=pn_soft_ask_title}if(hasCustomDescription){translatedText.description=pn_soft_ask_description}if(hasCustomYes){translatedText.yes=pn_soft_ask_yes}if(hasCustomNo){translatedText.no=pn_soft_ask_no}return translatedText}function getCss(){var alignItems='';var justifyContent='';switch(pn_soft_ask_horizontal_position){case'left':alignItems='flex-start';break;case'right':alignItems='flex-end';break;default:alignItems='center';break}switch(pn_soft_ask_vertical_position){case'top':justifyContent='flex-start';break;case'bottom':justifyContent='flex-end';break;default:justifyContent='center';break}var cssSoftAskTitle;if((typeof pn_soft_ask_title_enabled==='undefined')||(pn_soft_ask_title_enabled==1)){cssSoftAskTitle='font-size: 24px;\n'+"\n"+'                margin-bottom: 10px;'}else{cssSoftAskTitle='display: none;'}return'<style>\n'+"\n"+'            #wpnAskModalContainer::before,\n'+"\n"+'            #wpnAskModalContainer::after,\n'+"\n"+'            #wpnAskModalContainer div::before,\n'+"\n"+'            #wpnAskModalContainer div::after,\n'+"\n"+'            #wpnAskModalContainer div {\n'+"\n"+'                box-sizing: content-box;\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer {\n'+"\n"+'                all: initial;\n'+"\n"+'                box-sizing: content-box;\n'+"\n"+'                width: 100%;\n'+"\n"+'                height: 100%;\n'+"\n"+'                left: 0;\n'+"\n"+'                top: 0;\n'+"\n"+'                display: flex;\n'+"\n"+'                justify-content: '+justifyContent+';\n'+"\n"+'                position: absolute;\n'+"\n"+'                flex-direction: column;\n'+"\n"+'                align-items: '+alignItems+';\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer #wpnAskModal {\n'+"\n"+'                min-width: 350px;\n'+"\n"+'                max-width: 400px;\n'+"\n"+'                background-color: #ffffff;\n'+"\n"+'                box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);\n'+"\n"+'                border-radius: 4px;\n'+"\n"+'                font-family: Helvetica, Arial;\n'+"\n"+'                font-weight: normal;\n'+"\n"+'                color: #666666;\n'+"\n"+'                text-align: center;\n'+"\n"+'                padding: 10px;\n'+"\n"+'                margin: 10px;\n'+"\n"+'                position: absolute;\n'+"\n"+'                z-index: 99999;\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskDescription {\n'+"\n"+'                font-size: 16px;\n'+"\n"+'                margin-bottom: 10px;\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskTitle {\n'+"\n"+'                '+cssSoftAskTitle+'\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskBtnYes,\n'+"\n"+'            #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskBtnNo {\n'+"\n"+'                width: 170px;\n'+"\n"+'                height: 40px;\n'+"\n"+'                border-radius: 2px;\n'+"\n"+'                text-transform: uppercase;\n'+"\n"+'                line-height: 40px;\n'+"\n"+'                display: block;\n'+"\n"+'                cursor: pointer;\n'+"\n"+'                font-size: 16px;\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskBtnYes {\n'+"\n"+'                color: #ffffff;\n'+"\n"+'                background-color: #4484f4;\n'+"\n"+'                float: right;\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskBtnNo {\n'+"\n"+'                color: #a8a8a8;\n'+"\n"+'                background-color: #fafafa;\n'+"\n"+'                border: 1px solid #e6e6e6;\n'+"\n"+'                float: left;\n'+"\n"+'            }\n'+"\n"+'            \n'+"\n"+'            @media\n'+"\n"+'                only screen and (max-width: 389px)\n'+"\n"+'            {\n'+"\n"+'                #wpnAskModalContainer #wpnAskModal {\n'+"\n"+'                    min-width: 90vw;\n'+"\n"+'                    max-width: 90vw;\n'+"\n"+'                    width: 90vw;\n'+"\n"+'                    padding: 2.5vw;\n'+"\n"+'                    margin: 2.5vw;\n'+"\n"+'                    border-radius: 1vw;\n'+"\n"+'                }\n'+"\n"+'                \n'+"\n"+'                #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskDescription {\n'+"\n"+'                    font-size: 3.5vw;\n'+"\n"+'                    margin-bottom: 2vw;\n'+"\n"+'                }\n'+"\n"+'                \n'+"\n"+'                #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskTitle {\n'+"\n"+'                    font-size: 5vw;\n'+"\n"+'                    margin-bottom: 2vw;\n'+"\n"+'                }\n'+"\n"+'                \n'+"\n"+'                #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskBtnYes,\n'+"\n"+'                #wpnAskModalContainer #wpnAskModal #wpnAskInner #wpnAskBtnNo {\n'+"\n"+'                    font-size: 4.5vw;\n'+"\n"+'                    width: 42vw;\n'+"\n"+'                    height: 10vw;\n'+"\n"+'                    line-height: 10vw;\n'+"\n"+'                    border-radius: 0.5vw;\n'+"\n"+'                }\n'+"\n"+'            }\n'+"\n"+'        </style>'}function getTranslatedText(){var language='en';try{if(Array.isArray(navigator.languages)){for(var i=0;i<navigator.languages.length;i++){var currentLanguage=navigator.languages[i];if(currentLanguage&&currentLanguage.length&&Object.prototype.hasOwnProperty.call(pn_soft_ask_translations,currentLanguage.substr(0,2))){return pn_soft_ask_translations[currentLanguage.substr(0,2)]}}}if(Object.prototype.hasOwnProperty.call(pn_soft_ask_translations,navigator.language.substr(0,2))){return pn_soft_ask_translations[navigator.language.substr(0,2)]}}catch(e){}return pn_soft_ask_translations[language]}function getZonesFromCookie(name){if(!exoDynamicParams.cookieconsent){return false}var re=new RegExp('(?:(?:^|.*;\\s*)'+name+'\\s*=\\s*([^;]*).*$)|^.*$');var zones=document.cookie.replace(re,"$1").split("|");return cleanZoneIdsArray(zones)}function getZoneExpireTime(){if(!exoDynamicParams.cookieconsent){return false}const cookieExists=typeof document.cookie.split('; ').find(row=>row.startsWith(cookieNameZonePushNotification))!=='undefined';if(!cookieExists){return false}const cookieValue=document.cookie.split('; ').find(row=>row.startsWith(cookieNameZonePushNotification)).split('=')[1];return(cookieValue==='undefined')?false:cookieValue}function updateCookieSubscribeTime(cookieType){const currentTime=Date.now();var cookieMaxAge=(60*60*softAskOnceInHours);const cookieSetExpireTime=getZoneExpireTime();if(cookieSetExpireTime&&cookieType===cookieZoneSoftAsk){if((parseInt(cookieSetExpireTime)-cookieMaxAge*1000)>currentTime){return}}if(cookieType===cookieZoneSubscribe){cookieMaxAge=(60*60*24*checkSubscriptionAfterDays)}const expireTimestamp=currentTime+cookieMaxAge*1000;const expireTime=new Date(expireTimestamp).toUTCString();if(exoDynamicParams.cookieconsent){document.cookie=cookieNameZonePushNotification+"="+expireTimestamp+"; expires="+expireTime}}function cleanZoneIdsArray(zones){return zones.map(function(value){return parseInt(value)}).filter(function(value,index,self){return self.indexOf(value)===index})}function openPnWindow(idZone){var width=512;var height=385;if(navigator.userAgent.indexOf('Vivaldi')!==-1){height+=60}var posHorizontal=(screen.width-width)/2;var posVertical=(screen.height-height)/2;window.open("https://"+idZone+".notify6.com","pn_ask_prompt","menubar = no, location = yes, resizable = no, scrollbars = no, status = no, height = "+height+", width = "+width+", left = "+posHorizontal+", top = "+posVertical)}function runSubscriber(){var subscriber=new exoPnSubscriber();subscriber.run(idZone,pn_filename)}function runSubscription(){document.removeEventListener("click",runSubscription);if(pn_is_self_hosted){runSubscriber()}else{openPnWindow(idZone)}updateCookieSubscribeTime(cookieZoneSubscribe)}};if(typeof pn_run_immediate==='undefined'){pn_run_immediate=false}if(pn_run_immediate){exoLaunchPN()}else{document.addEventListener("DOMContentLoaded",exoLaunchPN)}})({"cookieconsent":true})