api.publytics.net
Open in
urlscan Pro
77.235.50.164
Public Scan
URL:
https://api.publytics.net/js/script.manual.tagged-events.min.js
Submission: On October 24 via api from IT — Scanned from IT
Submission: On October 24 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
!function(){"use strict";var a=window.location,i=window.document,o=i.currentScript,c=o.getAttribute("data-api")||new URL(o.src).origin+"/events";function u(t,e){t&&console.warn("Ignoring Event: "+t),e&&e.callback&&e.callback()}function t(t,e){if(/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(a.hostname)||"file:"===a.protocol)return u("localhost",e);if(window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)return u(null,e);try{if("true"===window.localStorage.publytics_ignore)return u("localStorage flag",e)}catch(t){}var n={},r=(n.n=t,n.u=e&&e.u?e.u:a.href,n.d=o.getAttribute("data-domain"),n.r=i.referrer||null,n.w=window.innerWidth,e&&e.meta&&(n.m=JSON.stringify(e.meta)),e&&e.props&&(n.p=e.props),new XMLHttpRequest);r.open("POST",c,!0),r.setRequestHeader("Content-Type","text/plain"),r.send(JSON.stringify(n)),r.onreadystatechange=function(){4===r.readyState&&e&&e.callback&&e.callback()}}var e=window.publytics&&window.publytics.q||[];window.publytics=t;for(var n=0;n<e.length;n++)t.apply(this,e[n]);function l(t){return t&&t.tagName&&"a"===t.tagName.toLowerCase()}var s=1;function r(t){"auxclick"===t.type&&t.button!==s||((t=function(t){for(;t&&(void 0===t.tagName||!l(t)||!t.href);)t=t.parentNode;return t}(t.target))&&t.href&&t.href.split("?")[0],function t(e,n){if(!e||d<n)return!1;if(w(e))return!0;return t(e.parentNode,n+1)}(t,0))}function p(t,e,n){var r,a=!1;function i(){a||(a=!0,window.location=e.href)}!function(t,e){if(!t.defaultPrevented)return e=!e.target||e.target.match(/^_(self|parent|top)$/i),t=!(t.ctrlKey||t.metaKey||t.shiftKey)&&"click"===t.type,e&&t}(t,e)?(r={props:n.props},publytics(n.name,r)):(r={props:n.props,callback:i},publytics(n.name,r),setTimeout(i,5e3),t.preventDefault())}function f(t){var t=w(t)?t:t&&t.parentNode,e={name:null,props:{}},n=t&&t.classList;if(n)for(var r=0;r<n.length;r++){var a,i=n.item(r).match(/publytics-event-(.+)(=|--)(.+)/);i&&(a=i[1],i=i[3].replace(/\+/g," "),"name"==a.toLowerCase()?e.name=i:e.props[a]=i)}return e}i.addEventListener("click",r),i.addEventListener("auxclick",r);var d=3;function m(t){if("auxclick"!==t.type||t.button===s){for(var e,n,r,a,i=t.target,o=0;o<=d&&i;o++){if((r=i)&&r.tagName&&"form"===r.tagName.toLowerCase())return;l(i)&&(e=i),w(i)&&(n=i),i=i.parentNode}n&&(a=f(n),e?(a.props.url=e.href,p(t,e,a)):((t={}).props=a.props,publytics(a.name,t)))}}function w(t){var e=t&&t.classList;if(e)for(var n=0;n<e.length;n++)if(e.item(n).match(/publytics-event-name(=|--)(.+)/))return!0;return!1}i.addEventListener("submit",function(t){var e,n=t.target,r=f(n);function a(){e||(e=!0,n.submit())}r.name&&(t.preventDefault(),e=!1,setTimeout(a,5e3),t={props:r.props,callback:a},publytics(r.name,t))}),i.addEventListener("click",m),i.addEventListener("auxclick",m)}();