HEX
Server: Apache
System: Linux www 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
User: root (0)
PHP: 8.2.1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals
Upload Files
File: /mnt/drbd/www/edenhouse/wp-content/plugins/essential-blocks/blocks/popup/frontend/index.js
(()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}document.addEventListener("DOMContentLoaded",(function(t){var o=document.querySelectorAll(".eb-popup-container"),r=document.querySelectorAll(".modal-main-wrap");if(o)for(var a=function(e){var t=e.querySelector("iframe"),o=e.querySelector("video");if(t){var r=t.src;t.src=r}o&&o.pause()},n=function(t){var n=o[t].getAttribute("data-close-btn");if("external"==o[t].getAttribute("data-popup-type")){var i=o[t].getAttribute("data-external-identifier");document.querySelectorAll(i).forEach((function(e){e.addEventListener("click",(function(){o[t].querySelector(".eb-popup-overlay").style.display="block",o[t].querySelector(".modal-main-wrap").style.display="block",l(o[t])}))}))}if("page_load"==o[t].getAttribute("data-popup-type")&&("false"==o[t].getAttribute("data-use-cookie")&&u(o[t].getAttribute("data-use-cookie"),o[t].getAttribute("data-block-id"),o[t].getAttribute("data-cookie-expire-time")),"yes"==c(o[t].getAttribute("data-block-id"))?(o[t].querySelector(".eb-popup-overlay").style.display="none",o[t].querySelector(".modal-main-wrap").style.display="none"):setTimeout((function(){o[t].querySelector(".eb-popup-overlay").style.display="block",o[t].querySelector(".modal-main-wrap").style.display="block",u(o[t].getAttribute("data-use-cookie"),o[t].getAttribute("data-block-id"),o[t].getAttribute("data-cookie-expire-time"))}),1e3*parseInt(o[t].getAttribute("data-popup-delay"))),l(o[t])),"btn_click"==o[t].getAttribute("data-popup-type")&&(o[t].querySelector(".eb-popup-button-anchor").onclick=function(){o[t].querySelector(".eb-popup-overlay").style.display="block",o[t].querySelector(".modal-main-wrap").style.display="block",l(o[t])}),"exit_intent"==o[t].getAttribute("data-popup-type")){"false"==o[t].getAttribute("data-use-cookie")&&u(o[t].getAttribute("data-use-cookie"),o[t].getAttribute("data-block-id"),o[t].getAttribute("data-cookie-expire-time"));var p=!1;"yes"==c(o[t].getAttribute("data-block-id"))?(o[t].querySelector(".eb-popup-overlay").style.display="none",o[t].querySelector(".modal-main-wrap").style.display="none"):document.addEventListener("mouseleave",(function(e){e.clientY<0&&(p||(o[t].querySelector(".eb-popup-overlay").style.display="block",o[t].querySelector(".modal-main-wrap").style.display="block",l(o[t]),u(o[t].getAttribute("data-use-cookie"),o[t].getAttribute("data-block-id"),o[t].getAttribute("data-cookie-expire-time"))),p=!0)}))}"true"===n&&o[t].querySelector(".eb-popup-close-icon")&&(o[t].querySelector(".eb-popup-close-icon").onclick=function(){o[t].querySelector(".eb-popup-overlay").style.display="none",o[t].querySelector(".modal-main-wrap").style.display="none",a(o[t].querySelector(".modal-main-wrap"))}),"true"==o[t].getAttribute("data-esc-btn")&&(document.onkeyup=function(r){27==r.keyCode&&"true"===o[t].getAttribute("data-esc-btn")&&(e(o[t].querySelectorAll(".eb-popup-overlay")).map((function(e){e.style.display="none"})),e(o[t].querySelectorAll(".modal-main-wrap")).map((function(e){e.style.display="none",a(e)})))});for(var y=function(t){"true"==o[t].getAttribute("data-click-exit")&&(r[t].onclick=function(o){r[t].querySelector(".eb-popup-content").contains(o.target)||(e(document.querySelectorAll(".eb-popup-overlay")).map((function(e){e.style.display="none"})),e(document.querySelectorAll(".modal-main-wrap")).map((function(e){e.style.display="none",a(e)})))})},d=0;d<r.length;d++)y(d)},i=0;i<o.length;i++)n(i);function l(e){"true"==e.getAttribute("data-auto-exit")&&setTimeout((function(){e.querySelector(".eb-popup-overlay").style.display="none",e.querySelector(".modal-main-wrap").style.display="none"}),1e3*parseInt(e.getAttribute("data-auto-exit-time")))}function u(e,t,o){if("false"==e)document.cookie=t+"=no;path=/";else if("string"==typeof o&&o.length>0){var r=new Date;r.setTime(r.getTime()+24*parseInt(o)*60*60*1e3);var a="expires="+r.toUTCString();document.cookie=t+"=yes;"+a+";path=/"}else document.cookie=t+"=yes"}function c(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),r=0;r<o.length;r++){for(var a=o[r];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""}}))})();