HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
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,pcntl_unshare,
Upload Files
File: /var/www/html/wpbiancoarte/wp-content/plugins/qi-blocks/assets/dist/timeline-script.js
(()=>{"use strict";var e={1669:e=>{e.exports=jQuery}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n=o(1669),i=o.n(n);document.addEventListener("DOMContentLoaded",function(){r.init()}),window.addEventListener("resize",function(){r.init()});const r={init:function(e){this.holder=document.querySelectorAll(".qi-block-timeline"),this.holder.length&&[...this.holder].map(t=>{r.initItem(t,e)})},getRealCurrentItem:function(e){return"string"==typeof e&&""!==e&&(e=qiBlocksEditor.qodefGetCurrentBlockElement.get(e)),e},initItem:function(e,t){if(!(e=r.getRealCurrentItem(e)))return;const o="object"!=typeof qiBlocksEditor?qiBlocks:qiBlocksEditor;t&&e.classList.remove("qodef--appeared"),o.qodefWaitForImages.check(e,function(){setTimeout(()=>{r.initLogic(e),"mount"===t&&setTimeout(()=>{qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument().body.addEventListener("qi_frame_resized",()=>{r.initLogic(e)})},600),o.qodefIsInViewport.check(e,function(){e.classList.add("qodef--appeared")})},t?800:0)})},initLogic:function(e){const t=e.querySelector(".qodef-timeline-inner");if(e.classList.contains("qodef-timeline--horizontal")){let o=(document.body.classList.contains("wp-admin")?qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument():document).body,n=e.querySelectorAll(".qodef-e-item"),i=parseInt(e.offsetWidth,10),s=n?n.length:0,l=0,a=0,c=JSON.parse(e.getAttribute("data-options"));s>1&&(l=document.body.classList.contains("wp-admin")?o.classList.contains("qi-preview-screen-tablet")?i/parseInt(c.colNum1024,10):o.classList.contains("qi-preview-screen-mobile")?i/parseInt(c.colNum480,10):i/parseInt(c.colNum,10):qiBlocks.windowWidth>1440?i/parseInt(c.colNum,10):qiBlocks.windowWidth>1366?i/parseInt(c.colNum1440,10):qiBlocks.windowWidth>1024?i/parseInt(c.colNum1366,10):qiBlocks.windowWidth>768?i/parseInt(c.colNum1024,10):qiBlocks.windowWidth>680?i/parseInt(c.colNum768,10):qiBlocks.windowWidth>480?i/parseInt(c.colNum680,10):i/parseInt(c.colNum480,10),a=l*s,e.setAttribute("data-movement",l),e.setAttribute("data-moved",0),t.style.width=a+"px",t.style.transform="translateX(0)",r.initHeight(e),r.initMovement(e))}else t.style.width="auto",t.style.transform="none",r.initHeight(e)},initMovement:function(e){let t=parseInt(e.getAttribute("data-movement"),10),o=e.querySelector(".qodef-timeline-inner"),n=parseInt(e.offsetWidth,10),r=o?parseInt(o.clientWidth,10):0,s=e.querySelector(".qodef-nav-prev"),l=e.querySelector(".qodef-nav-next");i()(s).off().on("click",n=>{n.preventDefault();const i=parseFloat(e.getAttribute("data-moved"));if(i<-1){const n=i+t;o.style.transform="translateX( "+n+"px)",e.setAttribute("data-moved",n)}}),i()(l).off().on("click",i=>{i.preventDefault();const s=parseFloat(e.getAttribute("data-moved"));if(r-n+1>-s+t){const n=s-t;o.style.transform="translateX( "+n+"px)",e.setAttribute("data-moved",n)}})},initHeight:function(e){let t=e.querySelectorAll(".qodef-e-item"),o=0,n=0;if(t.length&&(t.forEach(t=>{const i=t.querySelector(".qodef-e-content-holder"),r=t.querySelector(".qodef-e-top-holder");r&&i&&(i.style.height="auto",r.style.height="auto");let s=i?parseInt(window.getComputedStyle(i).getPropertyValue("height"),10):0,l=r?parseInt(window.getComputedStyle(r).getPropertyValue("height"),10):0;e.classList.contains("qodef-timeline-layout--horizontal-standard")?(l>o&&(o=l),s>n&&(n=s)):e.classList.contains("qodef-timeline-layout--horizontal-alternating")&&(s<l&&(s=l),s>n&&(n=s))}),t.forEach(t=>{let i=t.querySelector(".qodef-e-content-holder"),r=t.querySelector(".qodef-e-top-holder"),s=t.querySelector(".qodef-e-line-holder");e.classList.contains("qodef-timeline-layout--horizontal-standard")?(r&&(r.style.height=o+"px"),i&&(i.style.height=n+"px"),s&&(s.style.top=o+"px")):e.classList.contains("qodef-timeline-layout--horizontal-alternating")&&(r&&(r.style.height=n+"px"),i&&(i.style.height=n+"px"))})),e.classList.contains("qodef-timeline-layout--horizontal-standard")){let t=e.querySelector(".qodef-nav-prev"),n=e.querySelector(".qodef-nav-next");t&&(t.style.top=o+"px"),n&&(n.style.top=o+"px")}}}})();