芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/slick-custom.min.js
!function(a){a(document).ready(function(){a(".ult-carousel-wrapper").each(function(){var t,e,i,s=a(this);s.hasClass("ult_full_width")&&(s.css("left",0),s.css("right",0),t=s.attr("data-rtl"),e=a("html").outerWidth(),i=s.offset().left,i=Math.abs(0-i),"true"===t||!0===t?s.css({position:"relative",right:"-"+i+"px",width:e+"px"}):s.css({position:"relative",left:"-"+i+"px",width:e+"px"}))}),a(".ult-carousel-wrapper").each(function(t,e){var i=a(e).data("gutter"),e=a(e).attr("id");""!=i&&(e="",a("head").append(e))}),a(".ult-carousel-wrapper").on("init",function(t){t.preventDefault(),a(".ult-carousel-wrapper .ult-item-wrap.slick-active").each(function(t,e){($this=a(this)).addClass($this.data("animation"))})}),a(".ult-carousel-wrapper").on("beforeChange",function(t,e,i){($inViewPort=a("[data-slick-index='"+i+"']")).siblings().removeClass($inViewPort.data("animation"))}),a(".ult-carousel-wrapper").on("afterChange",function(t,e,i,s){if(slidesScrolled=e.options.slidesToScroll,slidesToShow=e.options.slidesToShow,centerMode=e.options.centerMode,(windowWidth=jQuery(window).width())<1025&&(slidesToShow=e.options.responsive[0].settings.slidesToShow),windowWidth<769&&(slidesToShow=e.options.responsive[1].settings.slidesToShow),windowWidth<481&&(slidesToShow=e.options.responsive[2].settings.slidesToShow),$currentParent=e.$slider[0].parentElement.id,slideToAnimate=i+slidesToShow-1,1==slidesScrolled)($inViewPort=1==centerMode?(animate=slideToAnimate-2,a("#"+$currentParent+" [data-slick-index='"+animate+"']")):a("#"+$currentParent+" [data-slick-index='"+slideToAnimate+"']")).addClass($inViewPort.data("animation"));else for(let t=slidesScrolled+i;0<=t;t--)($inViewPort=a("#"+$currentParent+" [data-slick-index='"+t+"']")).addClass($inViewPort.data("animation"))}),a(window).resize(function(){a(".ult-carousel-wrapper").each(function(){var t,e,i,s=a(this);s.hasClass("ult_full_width")&&(t=s.attr("data-rtl"),s.removeAttr("style"),e=a("html").outerWidth(),i=s.offset().left,i=Math.abs(0-i),"true"===t||!0===t?s.css({position:"relative",right:"-"+i+"px",width:e+"px"}):s.css({position:"relative",left:"-"+i+"px",width:e+"px"}))})})}),a(window).on("load",function(){a(".ult-carousel-wrapper").each(function(){var t,e,i,s=a(this);s.hasClass("ult_full_width")&&(s.css("left",0),s.css("right",0),i=s.offset().left,i=Math.abs(0-i),t=s.attr("data-rtl"),e=a("html").outerWidth(),i=i,"true"===t||!0===t?s.css({position:"relative",right:"-"+i+"px",width:e+"px"}):s.css({position:"relative",left:"-"+i+"px",width:e+"px"}))})}),jQuery(document).on("ultAdvancedTabClickedCarousel",function(t,e){a(e).find(".ult-carousel-wrapper").each(function(){var t,e,i,s=a(this);s.hasClass("ult_full_width")&&(s.css("left",0),s.css("right",0),i=s.offset().left,i=Math.abs(0-i),t=s.attr("data-rtl"),e=a("html").outerWidth(),i=i,"true"===t||!0===t?s.css({position:"relative",right:"-"+i+"px",width:e+"px"}):s.css({position:"relative",left:"-"+i+"px",width:e+"px"}))})})}(jQuery);