HEX
Server: Apache
System: Linux webm014.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: circuix (152771)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/circuix/adrRc/wp-content/plugins/essential-blocks/blocks/parallax-slider/frontend/index.js
(()=>{function t(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,l=[],s=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".eb-parallax-container").forEach((function(n){var i=parseInt(n.getAttribute("data-start-index"),10)||1,o=n.getAttribute("data-intensity"),a=n.getAttribute("data-shadow"),l=n.querySelector(".eb-parallax-wrapper"),s=n.querySelectorAll(".slide"),u=n.querySelectorAll(".slide__action"),c=n.querySelector(".btn--previous"),d=n.querySelector(".btn--next"),f=s.length,y=parseInt(i,10)||0;function h(t){t.preventDefault();var e=this.getAttribute("data-link"),r=this.getAttribute("data-new-tab");e&&("true"===r?window.open(e,"_blank"):window.open(e,"_self"))}function v(){var t="translateX(-".concat(y*(100/f),"%)");l.style.setProperty("transform",t)}function p(){s.forEach((function(t){t.classList.remove("slide--previous","slide--current","slide--next")}))}function b(t,e,r){s[e].classList.add("slide--current"),s[r]&&s[r].classList.add("slide--next"),s[t]&&s[t].classList.add("slide--previous")}function m(t){return[t+1,t-1]}function g(t){return 0===t?[1,-1]:[t+1,t-1]}function A(){var e=t(m(y),2),r=e[0],n=e[1],i=t(g(y=r===s.length?0:r),2);r=i[0],n=i[1],v(),p(),b(n,y,r)}function w(){var e=t(m(y),2),r=e[0],n=e[1],i=t(g(y=-1===n?s.length-1:n),2);r=i[0],n=i[1],v(),p(),b(n,y,r)}function S(){this.style.setProperty("--x",0),this.style.setProperty("--y",0)}function E(){var t=this.getBoundingClientRect();this.style.setProperty("--x",event.clientX-(t.left+Math.floor(t.width/2))),this.style.setProperty("--y",event.clientY-(t.top+Math.floor(t.height/2))),this.style.setProperty("--d",o)}function L(){var n,i=function(t){if(Array.isArray(t))return r(t)}(n=s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||e(n)||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.")}(),o=t(g(y=i.indexOf(this)),2),a=o[0],l=o[1];v(),p(),b(l,y,a)}s.forEach((function(t){b(y-1,y,y+1),v(),t.addEventListener("click",L),t.addEventListener("mousemove",E),t.addEventListener("mouseleave",S),c.addEventListener("click",w),d.addEventListener("click",A)})),"true"==a&&u.classList.add("btn-has-shadow"),u.forEach((function(t){t.addEventListener("click",h)}))}))}))})();