Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
wp-conte...
/
plugins
/
themify-...
/
themify
/
js
/
modules
/
swiper
/
effects
•
File:
creative.min.js
•
Content:
(t=>{TF_Swiper_Creative=class{constructor(t,e){const s=e.creativeEffect,r={translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1};this.params={limitProgress:1,progressMultiplier:1,...s},this.params.prev={...r,...s?.prev},this.params.next={...r,...s?.next},Object.assign(e,{slidesPerView:2,slidesPerGroup:2,loopAddBlankSlides:!0,watchSlidesProgress:!0,virtualTranslate:!0,spaceBetween:0}),t.el.classList.add("tf_sw_3d")}setTranslate(e){const{slides:s,wrapperEl:r,slidesSizesGrid:a}=e,i=this.params,l=i.progressMultiplier,o=i.limitProgress,c=e.params.centeredSlides,d=e.isHorizontal(),n=t.abs,f="tf_sw_shadow",p=e.constructor.browser.isSafari,_={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};if(c){r.style.transform=`translateX(calc(50% - ${a[0]/2-e.params.slidesOffsetBefore||0}px))`}for(let r=s.length,a=0;a<r;++a){let $=s[a],h=$.style,w=$.progress,g=t.min(t.max(w,-o),o),v=c?g:t.min(t.max($.originalProgress,-o),o),P=[-$.swiperSlideOffset,0,0],T=[0,0,0],m=_,u=0!==g,y=n(g*l);!1===d&&(P[1]=P[0],P[0]=0),!0===u&&(m=g<0?i.next:i.prev);for(let t=P.length-1;t>-1;--t){let e=m.translate[t];"string"!=typeof e&&(e+="px"),P[t]=`calc(${P[t]}px + (${e} * ${y}))`}for(let t=T.length-1;t>-1;--t){let e=m.rotate[t]*y;!0===p&&n(e)/90%2==1&&(e+=.001),T[t]=e}if(!u||m.shadow){let s=$.tfClass(f)[0],r=i.shadowPerProgress?g*(1/o):g;!s&&m.shadow&&(s=e.constructor.createElement("div",`${f} ${f}_creative tf_abs_t tf_w tf_h`),$.appendChild(s)),s&&(s.style.opacity=t.min(t.max(n(r),0),1))}let S=`rotateX(${T[0]}deg) rotateY(${T[1]}deg) rotateZ(${T[2]}deg)`,x=(1-m.scale)*v*l,b=(1-m.opacity)*v*l;v<0?(++x,++b):(x=1-x,b=1-b),h.zIndex=r-n(t.round(w)),h.transform=`translate3d(${P.join(", ")}) ${S} scale(${x})`,h.opacity=b,m.origin&&(h.transformOrigin=m.origin)}}setTransition(t,e){const s=e+"ms",r=[];for(let a=t.slides,i=a.length-1;i>-1;--i){let l=a[i];if(0!==e&&r.push(t.constructor.elementTransitionEnd(l,e)),l.style.transitionDuration=s,!0===this.params.slideShadows)for(let t=l.tfClass("tf_sw_shadow_creative"),e=t.length-1;e>-1;--e)t[e].style.transitionDuration=s}0!==e&&Promise.all(r).then((()=>{t?.wrapperEl&&!t.animating&&(t.animating=!1,Themify.triggerEvent(t.wrapperEl,"transitionend"))}))}}})(Math);
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List