Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
wp-conte...
/
plugins
/
themify-...
/
themify
/
js
/
modules
/
swiper
/
modules
•
File:
autoplay.min.js
•
Content:
var TF_Swiper_Autoplay;((t,e,s)=>{const i=()=>(new Date).getTime();TF_Swiper_Autoplay=class{static key="autoplay";stopped=!0;t;#t;#e;#s;#i;#o;#n;constructor(t,e){let s=this;s.swiperEl=t.el,s.params={delay:3e3,...e.autoplay},t.once("init",(()=>{s.setAnimation(),s.start(),s=null})).once("destroy",(t=>{const e=t.currentTarget.swiper?.autoplay;if(e){e.stop();for(let t in e)e[t]=null}}))}transitionStart(t,e,s){const i=this,o=i.params;!1===i.stopped&&(e||!o.disableOnInteraction?(i.pause(),!1!==o.waitForTransition&&t.animating?t.constructor.elementTransitionEnd(t.wrapperEl,s).then((()=>{i.resume()})):i.resume()):i.stop())}i(){const t=this.swiper.autoplay;t.#t=t.t=!0,t.#s-=i()-t.#e,this.tfOn("pointerleave",(()=>{!1===t.stopped&&(t.#t=t.t=!1,t.resume())}),{passive:!0,once:!0}),t.pause()}o(){const e=this.swiper.constructor.getParentSwiper(this);e.autoplay?.i.call(e.el),this.tfOn("pointerleave",(()=>{this.t||t.triggerEvent(e.el,"pointerleave")}),{passive:!0,once:!0})}p(t){const e=t.currentTarget.swiper;if(e){const t=e.autoplay;if(t.params.disableOnInteraction)t.stop();else if(!t.t){t.#t=!0,t.pause(),t.l();const s=()=>{t.#s-=i()-t.#e};e.once("touchEnd",(()=>{e.off("sliderFirstMove",s),!1!==t.stopped||t.t||(t.#t=!1,t.resume())})).once("sliderFirstMove",s)}}}l(){this.#s=this.params.delay}start(){const e=this,s=e.swiperEl.swiper,i=e.params;!0===e.stopped&&(e.stopped=e.#t=!1,e.paused=!0,e.#s=i.delay,s.on("touchStart",e.p),i.pauseOnMouseEnter&&!t.isTouch&&(e.swiperEl.tfOn("pointerenter",e.i,{passive:!0}),e.swiperEl.dataset.thumbs&&(s.thumbs?s.thumbs.el?.tfOn("pointerenter",e.o,{passive:!0}):s.once("thumbs_init",(t=>{t.currentTarget.swiper.thumbs?.el?.tfOn("pointerenter",e.o,{passive:!0})})))),e.#n?.play(),e.resume(),s.emit("autoplayStart"))}stop(){const t=this,e=this.swiperEl.swiper;!1===t.stopped&&(t.pause(!0),t.stopped=!0,t.swiperEl.tfOff("pointerenter",t.i,{passive:!0}),e.thumbs?.el?.tfOff("pointerenter",t.o,{passive:!0}),e.off("touchStart",t.p).emit("autoplayStop"),t.#n?.cancel())}pause(t){const e=this;!1!==e.stopped||e.paused&&!0!==t||(e.paused=!0,s(e.#i),e.swiperEl?.swiper.emit("autoplayPause"),e.#n?.pause())}u(){const t=this,e=t.swiperEl.swiper,{speed:s,loop:i,rewind:o}=e.params;t.params.reverseDirection?!e.isBeginning||i||o?e.slidePrev(s,!0,!0):i||e.slideTo(e.slides.length-1,s,!0,!0):!e.isEnd||i||o?e.slideNext(s,!0,!0):i||e.slideTo(0,s,!0,!0),t.#n?.play(),e.emit("autoplay")}setAnimation(){this.#n=this.params.anim?.getAnimations()[0]}resume(t){const o=this,n=o.swiperEl?.swiper;n&&!1===o.stopped&&(o.paused&&!o.#t||t)&&(o.paused=!1,o.#e=i(),s(o.#i),o.#s<0&&(o.#s=0),null!==n.lazyLoaded?o.#o?n.lazyPreload(n.activeIndex+1):(o.#o=!0,e((()=>{n?.lazyPreload(n.activeIndex+1)}),~~(.4*o.#s))):o.#o=null,o.#i=e((()=>{requestAnimationFrame((()=>{n?.enabled&&!1===o.stopped&&(o.l(),(o.paused||o.#t||o.stopped)&&!t||(n.animating?o.transitionStart({currentTarget:n.el,detail:["",!0]}):o.u()),o.#e=i())}))}),o.#s))}}})(Themify,setTimeout,clearTimeout);
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List