PageSourceSearch

https://releva.ai/wp-content/plugins/pixfort-core/dist/front/marquee.8f47d4856707a76f7eb7.js

js releva.ai collected 2026-09-24 08:46:22 UTC 5,733 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpixfort_core=self.webpackChunkpixfort_core||[]).push([[8753],{8543(e,t,n){n.d(t,{default:()=>u});let i=null,r=null,o=null,a=null,s=null,l=null,c=null,d=0;async function u(e){e||(e=$("body"));const t=e.find(".pix-marquee");if(!t.length)return;i||(i=await async function(){try{const{motionValue:e,transform:t,scroll:i,wrap:r,frame:o,cancelFrame:a,springValue:s,inView:l}=await n.e(7565).then(n.bind(n,163));return{motionValue:e,transform:t,scroll:i,wrap:r,frame:o,cancelFrame:a,springValue:s,inView:l}}catch(e){}}());const u=[];function m(e,t,n){let i=0;for(let r=0;r<t;r++){const t=e[0].children[r];if(!t)break;i+=n?t.getBoundingClientRect().height:t.getBoundingClientRect().width}return Math.ceil(i||0)}function p(e){if("undefined"==typeof elementorFrontend||!elementorFrontend)return;const t=elementorFrontend.elementsHandler;t&&"function"==typeof t.runReadyTrigger&&e.find(".elementor-element:not(.pix-marquee-el-init)").each(function(){const e=$(this);e.addClass("pix-marquee-el-init"),e.removeClass("elementor-invisible"),this.removeAttribute("id");try{t.runReadyTrigger(e),window.update_numbers(e),window.pix_animation(e,!0)}catch(e){}})}function f(e,t,n,i,r){if(!(i>0))return r;const o=Math.min(11,Math.ceil(n/i));for(;r<o;)e.append(t),r++;return r}let h;t.each(function(e,t){const n=$(t);if(n.hasClass("pix-is-loaded"))return;n.addClass("pix-is-loaded");const h=n,g=h.find(".marquee__inner").first(),v="rtl"===getComputedStyle(document.documentElement).direction,w={baseVelocity:parseFloat(n.attr("data-base-velocity"))||100,scrollDirectionChange:"true"===n.attr("data-scroll-direction-change"),loadAnimation:"true"===n.attr("data-load-animation"),vertical:"true"===n.attr("data-vertical"),smoothVelocity:"true"===n.attr("data-smooth-velocity"),reversed:n.hasClass("pix-reversed")||g.hasClass("pix-reversed"),pauseOnHover:n.hasClass("pix-pause-hover"),speed:parseFloat(n.attr("data-speed"))||null,cssSpeed:null,isRTL:v};if(!g.length)return;const V=g[0].children.length,C=g.html();g.find(".elementor-element").addClass("pix-marquee-el-init");const T=w.vertical?h[0].getBoundingClientRect().height||h.innerHeight():h[0].getBoundingClientRect().width||h.innerWidth();let b=m(g,V,w.vertical);if(!b)return;c||(r=i.motionValue(0),o=i.springValue(0,{damping:50,stiffness:200}),a=i.transform([0,1400],[0,5],{clamp:!1}),s=i.motionValue(0),l=null,c=i.scroll((e,t)=>{const n=t&&t.y&&"number"==typeof t.y.velocity?t.y.velocity:0;r.set(n),l&&clearTimeout(l),l=setTimeout(()=>{r.set(0)},150)}),r.on("change",e=>{o.set(e)}),o.on("change",e=>{s.set(a(e))}));const x=setTimeout(()=>{b=m(g,V,w.vertical),D()},200),E=setTimeout(()=>{b=m(g,V,w.vertical),D()},2e3);w.vertical&&(g[0].style.height=`${b}px`);let F=f(g,C,b+T,b,1);p(h);const L=()=>{const e=getComputedStyle(t).getPropertyValue("--marquee-speed").trim();return e&&""!==e?parseFloat(e.replace("s","")):w.speed},R=i.motionValue(0);let S=-1;w.reversed&&(S=1);const k=i.motionValue(S);let q=!1;R.on("change",e=>{let t;w.isRTL&&!w.vertical?(t=i.wrap(0,b,e),g[0].style.transform=`translate3d(${t}px, 0, 0)`):w.vertical?(t=i.wrap(-b,0,e),g[0].style.transform=`translate3d(0, ${t}px, 0)`):(t=i.wrap(-b,0,e),g[0].style.transform=`translate3d(${t}px, 0, 0)`)});const M=()=>{q=!0},H=()=>{q=!1};w.pauseOnHover&&(h.on("mouseenter",M),h.on("mouseleave",H));const W=i.inView(t,(e,t)=>{const n=u.find(t=>t.$container[0]===e);return n&&(n.isVisible=!0),e=>{n&&(n.isVisible=!1)}});let B,_=!1;d++;const z={$container:h,$inner:g,originalHTML:C,originalCount:V,getCurrentSpeed:L,get destroyed(){return _},get copies(){return F},set copies(e){F=e},isVisible:!0,get cycleWidth(){return b},set cycleWidth(e){b=e},cancelTick:null,updateEffectiveVelocity:null,destroy(){_||(_=!0,this.cancelTick?.(),W(),cancelAnimationFrame(B),clearTimeout(x),clearTimeout(E),R.destroy(),k.destroy(),h.off("mouseenter",M),h.off("mouseleave",H),0===--d&&(c(),c=null,clearTimeout(l),r.destroy(),o.destroy(),s.destroy()),u.every(e=>e.destroyed)&&y())}};let A=60;const D=(e=L())=>{e&&(A=b/e),0==e&&(A=0)};z.updateEffectiveVelocity=D,D();let O=performance.now();const P=e=>{if(!e||_)return;let t=e.timestamp;const n=e.timestamp-O;if(O=t,!z.isVisible||q)return;if(w.scrollDirectionChange){const e=s.get();e<0?k.set(S):e>0&&k.set(-S)}let i=0;0!=A?(i=k.get()*A*(n/1e3),w.smoothVelocity&&(i+=k.get()*Math.abs(i*s.get()*.5))):w.smoothVelocity&&(i+=k.get()*Math.abs(.5*s.get())),w.isRTL&&!w.vertical&&(i=-i),R.set(R.get()+i)};i.frame.update(P,!0),z.cancelTick=()=>i.cancelFrame(P),u.push(z);let j=L();const G=()=>{if(_)return;const e=L();e!==j&&(j=e,D(e)),B=requestAnimationFrame(G)};window.elementorFrontend?.isEditMode?.()&&G()});const g=()=>{clearTimeout(h),h=setTimeout(()=>{const e=[];for(const t of u)if(!t.destroyed&&t.$container[0]&&t.$inner[0]){const n="true"===t.$container.attr("data-vertical"),i=n?t.$container[0].getBoundingClientRect().height||t.$container.innerHe
1ight():t.$container[0].getBoundingClientRect().width||t.$container.innerWidth(),r=m(t.$inner,t.originalCount,n),o=t.getCurrentSpeed();e.push({m:t,isVertical:n,containerSize:i,newCycleWidth:r,currentSpeed:o})}for(const{m:t,isVertical:n,containerSize:i,newCycleWidth:r,currentSpeed:o}of e)t.cycleWidth=r,n&&(t.$inner[0].style.height=`${r}px`),t.copies=f(t.$inner,t.originalHTML,r+i,r,t.copies),t.updateEffectiveVelocity&&t.updateEffectiveVelocity(o),p(t.$container)},150)};window.addEventListener("resize",g,{passive:!0});const y=()=>{for(const e of u)e.destroy&&e.destroy();clearTimeout(h),window.removeEventListener("resize",g),window.removeEventListener("pagehide",y),window.removeEventListener("beforeunload",y)};return window.addEventListener("pagehide",y),window.addEventListener("beforeunload",y),{destroy:y,marquees:u}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.