Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/js/modules/themify.carousel.min.js
Назад
((y,w,o)=>{"use strict";const a=new Set,n=themify_vars.s_v,p="swiper/",d=(e,t)=>{if(e.isConnected){const s=e.parentNode,a=s.closest(".tf_swiper-slide");!1!==t&&e.classList.remove("tf_svg_lazy"),s.classList.remove("tf_lazy"),s.parentNode.classList.remove("tf_lazy"),a.classList.remove("tf_lazy"),a.classList.add("tf_swiper_lazy_done"),e.removeAttribute("data-tf-src"),a.tfClass("tf_loader")[0]?.remove()}},c=e=>{const s=y.parseVideo(e);let a,i=e;if("youtube"===s.type||"vimeo"===s.type){let e="",t=new URL(i);if(t=t.search?t.searchParams:null,a=w.createElement("iframe"),"youtube"===s.type){if(i="https://www.youtube.com/embed/"+s.id+"?autohide=1&border=0&wmode=opaque&playsinline=1",t){const l=t.get("t"),r=t.get("list");l&&(i+="&start="+l),r&&(i+="&list="+r)}e="accelerometer;encrypted-media;gyroscope;picture-in-picture;autoplay"}else i="//player.vimeo.com/video/"+s.id+"?portrait=0&title=0&badge=0",e="fullscreen;autoplay";i+=t&&t.get("autoplay")?"&autoplay=1":"",a.className="tf_abs",a.setAttribute("allow",e)}else(a=w.createElement("video")).setAttribute("webkit-playsinline","1"),a.setAttribute("playsinline","1"),a.controls=!0;return a.className+=" tf_w tf_h",a.src=i,a},u=function(){if(y.trigger("tf_swiper_transition_start_begin",[this,this.activeIndex]),this.activeIndex>this.params.slidesPerView&&"auto"!==this.params.slidesPerView){const t=this.activeIndex+this.params.slidesPerView;for(let e=this.activeIndex;e<t;++e)if(this.slides[e]){y.trigger("tf_swiper_start_slide_begin",[this,this.slides[e]]);let s=this.slides[e].tfClass("tf_svg_lazy");for(let t=s.length-1;-1<t;--t)if(s[t].hasAttribute("data-tf-src")){let e=s[t].dataset.tfSrc;a.has(s[t])||(a.add(s[t]),s[t].src=e)}else d(s[t]);y.trigger("tf_swiper_start_slide_end",[this,this.slides[e]])}}y.trigger("tf_swiper_transition_start_end",[this,this.activeIndex])},b=function(){y.trigger("tf_swiper_transition_end_begin",[this,this.activeIndex]);const e=this.activeIndex+("auto"!==this.params.slidesPerView?this.params.slidesPerView:this.el.tfClass("tf_swiper-slide-visible").length),i=this.params.autoplay&&this.params.autoplay.enabled,l=!1!==this.params.lazy,r=!!(this.params.thumbs&&this.params.thumbs.swiper&&this.params.thumbs.swiper.params.autoplay)&&this.params.thumbs.swiper.autoplay,o=!!this.el.dataset.stopped,t="flip"===this.params.effect?this.slides.length:e;for(let a="flip"===this.params.effect?0:this.activeIndex;a<t;++a)if(this.slides[a]){if(y.trigger("tf_swiper_end_slide_begin",[this,this.slides[a],l]),!0==l){let s=this.slides[a].tfClass("tf_svg_lazy"),e=s.length;if(0<e){!1==o&&(i&&this.autoplay.stop(),!1!==r)&&r.stop();for(let t=e-1;-1<t;--t){let e=s[t];e&&(e.hasAttribute("data-lazy")?y.lazyScroll(e,!0).finally(()=>{d(e,!1),y.trigger("tf_swiper_lazy_start",[this,this.slides[a],e]),0===t&&(this.params.autoHeight&&this.updateAutoHeight(this.params.speed,!1),this.updateSize(),this.updateSlides(),!1==o)&&(i&&this.autoplay.start(),!1!==r)&&r.start(),y.trigger("tf_swiper_lazy_end",[this,this.slides[a],e])}):(d(e),0===t&&!1==o&&(i&&this.autoplay.start(),!1!==r)&&r.start()))}}else this.slides[a].classList.remove("tf_lazy"),this.slides[a].tfClass("tf_lazy")[0]?.classList.remove("tf_lazy")}let t=this.slides[a].querySelectorAll(".video-wrap[data-url]"),s=t.length;if(0<s){!1==o&&(i&&this.autoplay.stop(),!1!==r)&&r.stop();for(let e=s-1;-1<e;--e)t[e].appendChild(c(t[e].dataset.url)),t[e].removeAttribute("data-url"),t[e].classList.remove("tf_lazy");this.params.autoHeight&&this.updateAutoHeight(this.params.speed,!1),this.updateSize(),this.updateSlides(),!1==o&&(i&&this.autoplay.start(),!1!==r)&&r.start()}y.trigger("tf_swiper_end_slide_end",[this,this.slides[a],l])}y.trigger("tf_swiper_transition_end",[this,this.activeIndex])},v=function(){if(b.call(this),this.params.autoplay&&this.params.autoplay.enabled&&!0===this.params.autoplay.disableOnInteraction){const e=this,t=this.params.thumbs?.swiper;this.el.tfOn("mouseenter",function(){e.autoplay.stop(),t?.params.autoplay&&e.params.thumbs.swiper.autoplay.stop(),this.dataset.stopped||this.tfOn("mouseleave",()=>{e.autoplay.start(),t?.params.autoplay&&e.params.thumbs.swiper.autoplay.start()},{passive:!0,once:!0})},{passive:!0}),t&&t.el.tfOn("mouseenter",function(){e.autoplay.stop(),this.tfOn("mouseleave",()=>{e.autoplay.start()},{passive:!0,once:!0})},{passive:!0})}this.el.classList.remove("tf_lazy"),this.el.parentNode.classList.remove("tf_lazy"),this.params.onInit?.call(this),y.triggerEvent(this.el,"tf_carousel_init",this),y.trigger("tf_swiper_init",this)},g=function(e,t){for(var s in e=document.createElementNS("http://www.w3.org/2000/svg",e),t)e.setAttributeNS(null,s,t[s]);return e};y.on("tf_carousel_init",(e,t)=>{Promise.all([y.loadCss("swiper/swiper","tf_swiper",n),y.loadJs("swiper/swiper.min","undefined"!=typeof TF_Swiper&&void 0!==TF_Swiper.Utils,n)]).then(()=>{"load"!==e&&((t,r)=>{for(let e=t.length-1;-1<e;--e){let m=t[e];if(m.classList.contains("tf_swiper-process")||m.classList.contains("tf_swiper-container-initialized")){let e=m.swiper;e&&e.params.autoHeight&&e.updateAutoHeight(e.params.speed,!1)}else{m.classList.add("tf_swiper-process"),y.isRTL&&m.setAttribute("dir","rtl");let e=themify_vars.lz?y.lazyScroll(m.querySelectorAll("[data-lazy]"),!0):y.imagesLoad(m);e.finally(()=>{let l=m.tfClass("tf_swiper-slide").length,f=!1,s=[],a=[],e=m.dataset.speed;"slow"===e?e=4:"fast"===e?e=.5:"normal"===e&&(e=1);const h=r||{wrapvar:!m.dataset.wrapvar||0!==parseInt(m.dataset.wrapvar),pause_hover:!m.dataset.pause_hover||0!==parseInt(m.dataset.pause_hover),auto:m.dataset.auto,autoRevers:m.dataset.autoReverse,scroll:m.dataset.scroll,space:m.dataset.space||0,effect:m.dataset.effect,speed:e,height:m.dataset.height,visible:m.dataset.visible,pager:!m.dataset.pager||0!==parseInt(m.dataset.pager),slider_nav:!m.dataset.slider_nav||0!==parseInt(m.dataset.slider_nav),nav_out:m.dataset.nav_out,controllers:1===parseInt(m.dataset.controller),keyboard:m.dataset.keyboard,parallax:m.dataset.parallax,mousewheel:m.dataset.mousewheel,scrollbar:m.dataset.scrollbar,freeMode:m.dataset.freeMode,thumbs:m.dataset.thumbs,page_type:m.dataset.page_type,center:m.dataset.center,mob_visible:m.dataset.mobVisible,tab_visible:m.dataset.tabVisible,breakpoints_mobile:m.dataset.mbreakpoints,breakpoints_tablet:m.dataset.tbreakpoints,lazy:0!==parseInt(m.dataset.lazyScroll),has_timer:m.dataset.timer,css_url:m.dataset.css_url,centered:m.dataset.centered},_=Object.assign({mousewheel:!!h.mousewheel,keyboard:!!h.keyboard,parallax:!!h.parallax,freeMode:!!h.freeMode,loop:!1!==h.wrapvar,autoHeight:!(h.height&&"variable"!==h.height),slidesPerView:"auto"===h.visible?h.visible:0<h.visible?parseInt(h.visible):1,slidesPerGroup:0<h.scroll?parseInt(h.scroll):1,speed:h.speed?100<=parseFloat(h.speed)?+h.speed:1e3*h.speed:500,centeredSlides:"true"===h.centered,watchSlidesProgress:!0,on:{}},r);if("continuously"===h.effect&&(_.speed+=1e3),(s=>{if(s)for(let e=s.split(","),t=e.length-1;-1<t;--t)a.push(y.loadCss(e[t]))})(m.dataset.css_url),null!==_.on&&_.on.init===o&&(_.on.init=v),y.is_builder_active&&(_.simulateTouch=!1),l<=1)y.lazyScroll(m.querySelectorAll("[data-lazy]"),!0).finally(()=>{const t=m.querySelectorAll(".tf_lazy,.tf_svg_lazy"),e=m.querySelector(".video-wrap[data-url]");e&&(e.appendChild(c(e.dataset.url)),e.removeAttribute("data-url"));for(let e=t.length-1;-1<e;--e)t[e].classList.remove("tf_lazy","tf_svg_lazy");m.classList.add("tf_swiper-container-initialized"),r?.onInit?.call()});else{if(themify_vars.lz||!1!==h.lazy){const t=m.querySelectorAll(".tf_lazy:not(.tf_swiper-wrapper)");for(let e=t.length-1;-1<e;--e)t[e].classList.remove("tf_lazy");_.preloadImages=!1,_.on.transitionStart=u}else _.lazy=!1,y.lazyScroll(m.querySelectorAll("[data-lazy]"),!0);h.onInit&&(_.onInit=h.onInit),_.on.transitionEnd=b;let e=h.effect||"";if(!(e=!e||"crossfade"!==e&&"cover-fade"!==e&&"uncover-fade"!==e?e:"fade")||"scroll"===e||"fade"!==e&&"flip"!==e&&"cube"!==e&&"coverflow"!==e?_.effect="":("fade"===(_.effect=e)||"flip"===e||"cube"===e?(_.slidesPerView=_.slidesPerGroup=1,h.mob_visible=h.tab_visible=0):"coverflow"===e&&_.slidesPerView<2&&(_.slidesPerView=2),"fade"!==e&&(_[e+"Effect"]={slideShadows:!1},"cube"===e)&&(_[e+"Effect"].shadow=!1),s.push(_.effect)),"auto"===_.slidesPerView)!1!==h.lazy&&(_.watchSlidesVisibility=!0);else{_.slidesPerView>l&&(_.slidesPerView=l),_.slidesPerGroup>_.slidesPerView&&(_.slidesPerGroup=_.slidesPerView);let e=parseInt(_.slidesPerView),t=parseInt(h.tab_visible),s=parseInt(h.breakpoints_tablet),a=parseInt(h.mob_visible),i=parseInt(h.breakpoints_mobile);2<e&&(a||(a=2,i=680),t||(s=1024,t=e<=4?2:3)),(0<a||0<t)&&(_.breakpoints={},0<a&&t!==a&&(_.breakpoints[i]={slidesPerView:a,slidesPerGroup:a}),0<t)&&t!==e&&(_.breakpoints[s]={slidesPerView:t,slidesPerGroup:t})}if(0<h.space&&(1<_.slidesPerView||"auto"===_.slidesPerView)&&(_.spaceBetween=parseFloat(h.space)),"continuously"===h.effect||h.auto&&"0"!==h.auto&&"off"!==h.auto){const i="continuously"===h.effect?0:parseFloat(h.auto);_.autoplay={reverseDirection:!!h.autoRevers,delay:1e3<=i?i:1e3*i,disableOnInteraction:!(!h.pause_hover&&h.pause_hover!==o),stopOnLastSlide:!_.loop},s.push("autoplay")}y.isTouch||(!0===_.mousewheel&&s.push("mousewheel"),!0===_.keyboard&&s.push("keyboard")),!0===_.parallax&&s.push("parallax"),h.thumbs&&("string"!=typeof h.thumbs||"next"===h.thumbs&&m.nextElementSibling?.classList.contains("tf_swiper-container")||"next"!==h.thumbs&&w.tfClass(h.thumbs)[0]?(s.push("thumbs"),f=h.thumbs):delete h.thumbs),h.scrollbar&&(s.push("scrollbar"),_.scrollbar={draggable:!0,hide:!0,el:h.scrollbar}),""!==_.effect&&"scroll"!==_.effect&&"coverflow"!==_.effect&&a.push(y.loadCss("swiper/effects/"+_.effect,"tf_sw_"+_.effect));for(let t=s.length-1;-1<t;--t){let e=s[t]===_.effect?p+"effects/":p+"modules/";a.push(y.loadJs(e+s[t]+".min",null,n))}Promise.all(a).then(()=>{y.requestIdleCallback(()=>{if(!m.classList.contains("tf_swiper-container-initialized")){const e=!!h.controllers&&w.createElement("a");if(!1!==h.slider_nav||!1!==h.pager||!1!==e){const t=w.createElement("div");if(!(t.className="tf_carousel_nav_wrap carousel-nav-wrap tf_w")!==h.slider_nav){const s=w.createElement("a"),a=w.createElement("a");s.className="tf_box tf_overflow carousel-prev",a.className="tf_box tf_overflow carousel-next",s.href="#",a.href="#",t.append(s,a),_.navigation={disabledClass:"disabled",nextEl:a,prevEl:s}}if(!1!==h.pager){const i=w.createElement("div");if(i.className="tf_clear tf_textc carousel-pager",t.appendChild(i),_.pagination={el:i,type:h.page_type&&"image_pagination"!==h.page_type?h.page_type:"bullets",bulletElement:"a",modifierClass:"tf_carousel_",bulletClass:"tf_carousel_bullet",currentClass:"selected",bulletActiveClass:"selected",clickable:!0},"image_pagination"===h.page_type||"1"===m.dataset.pageNum){const l="image_pagination"===h.page_type?m.querySelectorAll("[data-swiper-thumb]"):null;_.pagination.renderBullet=(e,t)=>{let s="";return null!==l?l[e]&&(s='<img decoding="async" src="'+l[e].dataset.swiperThumb+'">'):s=e+1,'<a class="'+t+'">'+s+"</a>"}}}if(!1!==e){if(e.className="tf_slider_controller tf_box tf_rel",0<_.autoplay.delay){const r=g("svg",{class:"tf_abs tf_w tf_h"}),o=g("circle",{class:"tf_slider_timer_track",r:"calc(50% - 1.50px)",cx:"50%",cy:"50%"}),n=g("circle",{class:"tf_slider_timer_fill",r:"calc(50% - 1.50px)",cx:"50%",cy:"50%","stroke-dasharray":"0,10000"}),p=()=>{const e=m.swiper.parent||m;e.swiper.autoplay.running&&(n.style.animation="tf_swiper_circle "+_.autoplay.delay+"ms infinite")},d=()=>{n.style.animation="none"};r.append(o,n),e.appendChild(r),_.on.autoplayStop=d,_.on.slideChangeTransitionStart=d,_.on.slideChangeTransitionEnd=p,_.on.autoplayStart=p}e.tfOn("click",function(e){e.preventDefault(),e.stopPropagation();const t=m.swiper.parent||m,s=t.swiper.autoplay,a=t.swiper.thumbs?.swiper;this.classList.contains("paused")?(this.classList.remove("paused"),t.dataset.stopped=!1,s.start(),a&&(a.$el[0].dataset.stopped=!1,a.autoplay.start())):(this.classList.add("paused"),t.dataset.stopped=!0,s.stop(),a&&(a.$el[0].dataset.stopped=!0,a.autoplay.stop()))}).href="#",t.appendChild(e)}if(h.nav_out){const c=m.nextElementSibling;(null!==c&&c.classList.contains("tf_lazy")?c:m).after(t)}else m.parentNode.appendChild(t)}if(("touch"!==m.dataset.touch_swipe||y.isTouch)&&"no"!==m.dataset.touch_swipe||(_.allowTouchMove=!1),f){const u="string"==typeof f?"next"===f?m.nextElementSibling:w.tfClass(f)[0]:f;if(u){if(!u.swiper)return u.tfOn("tf_carousel_init",function(e){m.classList.contains("tf_swiper-container-initialized")||(_.thumbs={swiper:this.swiper,multipleActiveThumbs:!1},(u.swiper.parent=m).firstElementChild.classList.remove("tf_lazy"),new TF_Swiper(m,_),m.classList.remove("tf_swiper-process"))},{once:!0,passive:!0}),u.hasAttribute("data-lazy")&&y.lazyScroll([u],!0),!1;_.thumbs={swiper:u.swiper,multipleActiveThumbs:!1},u.swiper.parent=m}}m.firstElementChild.classList.remove("tf_lazy"),new TF_Swiper(m,_),m.classList.remove("tf_swiper-process")}},-1,1e3)})}})}}})(e=e.length===o?[e]:e,t="object"!=typeof t?!1:t)})})})(Themify,document,void 0);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка