Файловый менеджер - Редактировать - /var/www/html/wp-content/cache/minify/57f8a.js
Назад
(function($){var OpenShopLib={init:function(){this.bindEvents();},bindEvents:function(){var $this=this;if($('#thunk-slider').length!==0){$this.jssor_slider2_init();} if($('#thunk-single-slider').length!==0){$this.jssor_slider1_init();} $this.product_slide_margin_padding();$this.Top2Slider();$this.product_slide_2row();},jssor_slider2_init:function(){var options={$AutoPlay:open_shop.open_shop_top_slider_optn,$AutoPlaySteps:1,$Idle:4000,$PauseOnHover:1,$ArrowKeyNavigation:1,$SlideDuration:open_shop.open_shop_top_slider_speed,$MinDragOffsetToSlide:20,$SlideSpacing:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$ActionMode:1,$Rows:1,$SpacingX:5,$SpacingY:5,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$ChanceToShow:2,$ActionMode:0,$NoDrag:true,$Orientation:2}};var jssor_slider2=new $JssorSlider$('thunk-slider',options);function ScaleSlider(){var parentWidth=jssor_slider2.$Elmt.parentNode.clientWidth;if(parentWidth) jssor_slider2.$ScaleWidth(Math.min(parentWidth,1000));else $Jssor$.$Delay(ScaleSlider,30);} ScaleSlider();$Jssor$.$AddEvent(window,"load",ScaleSlider);$Jssor$.$AddEvent(window,"resize",ScaleSlider);$Jssor$.$AddEvent(window,"orientationchange",ScaleSlider);},jssor_slider1_init:function(){var options={$AutoPlay:open_shop.open_shop_top_slider_optn,$AutoPlaySteps:1,$Idle:4000,$PauseOnHover:1,$ArrowKeyNavigation:1,$SlideDuration:open_shop.open_shop_top_slider_speed,$MinDragOffsetToSlide:20,$SlideSpacing:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$ActionMode:1,$Rows:1,$SpacingX:5,$SpacingY:5,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$ChanceToShow:2,$ActionMode:0,$NoDrag:true,$Orientation:2}};var jssor_slider2=new $JssorSlider$('thunk-single-slider',options);function ScaleSlider(){var parentWidth=jssor_slider2.$Elmt.parentNode.clientWidth;if(parentWidth) jssor_slider2.$ScaleWidth(Math.min(parentWidth,920));else $Jssor$.$Delay(ScaleSlider,30);} ScaleSlider();$Jssor$.$AddEvent(window,"load",ScaleSlider);$Jssor$.$AddEvent(window,"resize",ScaleSlider);$Jssor$.$AddEvent(window,"orientationchange",ScaleSlider);},Top2Slider:function(){var owl=$('.thunk-top2-slide');owl.owlCarousel({items:1,nav:true,navText:["<i class='brand-nav fa fa-angle-left'></i>","<i class='brand-nav fa fa-angle-right'></i>"],loop:open_shop.open_shop_top_slider_optn,dots:false,smartSpeed:500,autoHeight:false,margin:0,autoplay:open_shop.open_shop_top_slider_optn,});function setAnimation(_elem,_InOut){var animationEndEvent='webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';_elem.each(function(){var $elem=$(this);var $animationType='animated '+$elem.data('animation-'+_InOut);$elem.addClass($animationType).one(animationEndEvent,function(){$elem.removeClass($animationType);});});} owl.on('change.owl.carousel',function(event){var $currentItem=$('.owl-item',owl).eq(event.item.index);var $elemsToanim=$currentItem.find("[data-animation-out]");setAnimation($elemsToanim,'out');});var round=0;owl.on('changed.owl.carousel',function(event){var $currentItem=$('.owl-item',owl).eq(event.item.index);var $elemsToanim=$currentItem.find("[data-animation-in]");setAnimation($elemsToanim,'in');}) owl.on('translated.owl.carousel',function(event){console.log(event.item.index,event.page.count);if(event.item.index==(event.page.count-1)){if(round<1){round++ console.log(round);}else{owl.trigger('stop.owl.autoplay');var owlData=owl.data('owl.carousel');owlData.settings.autoplay=false;owlData.options.autoplay=false;owl.trigger('refresh.owl.carousel');}}});},product_slide_margin_padding:function(){$(document).ready(function(){$(".thunk-product").hover(function(){$('.thunk-slide .owl-stage-outer').css("margin","-6px -6px -100px");$('.thunk-slide .owl-stage-outer').css("padding","6px 6px 100px");$('.thunk-slide .owl-nav').css("top","-52px");$('.product-slide-widget .thunk-slide .owl-nav').css("top","81px");},function(){$('.thunk-slide .owl-stage-outer').css("margin","0");$('.thunk-slide .owl-stage-outer').css("padding","0");$('.thunk-slide .owl-nav').css("top","-58px");$('.product-slide-widget .thunk-slide .owl-nav').css("top","75px");});});},product_slide_2row:function(){;(function($,window,document,undefined){Owl2row=function(scope){this.owl=scope;this.owl.options=$.extend({},Owl2row.Defaults,this.owl.options);this.handlers={'initialize.owl.carousel':$.proxy(function(e){if(this.owl.settings.owl2row){this.build2row(this);}},this)};this.owl.$element.on(this.handlers);};Owl2row.Defaults={owl2row:false,owl2rowTarget:'item',owl2rowContainer:'owl2row-item',owl2rowDirection:'utd'};Owl2row.prototype.build2row=function(thisScope){var carousel=$(thisScope.owl.$element);var carouselItems=carousel.find('.'+thisScope.owl.options.owl2rowTarget);var aEvenElements=[];var aOddElements=[];$.each(carouselItems,function(index,item){if(index%2===0){aEvenElements.push(item);}else{aOddElements.push(item);}});carousel.empty();switch(thisScope.owl.options.owl2rowDirection){case'ltr':thisScope.leftToright(thisScope,carousel,carouselItems);break;default:thisScope.upTodown(thisScope,aEvenElements,aOddElements,carousel);}};Owl2row.prototype.leftToright=function(thisScope,carousel,carouselItems){var o2wContainerClass=thisScope.owl.options.owl2rowContainer;var owlMargin=thisScope.owl.options.margin;var carouselItemsLength=carouselItems.length;var firsArr=[];var secondArr=[];if(carouselItemsLength%2===1){carouselItemsLength=((carouselItemsLength-1)/2)+1;}else{carouselItemsLength=carouselItemsLength/2;} $.each(carouselItems,function(index,item){if(index<carouselItemsLength){firsArr.push(item);}else{secondArr.push(item);}});$.each(firsArr,function(index,item){var rowContainer=$('<div class="'+o2wContainerClass+'"/>');var firstRowElement=firsArr[index];firstRowElement.style.marginBottom=owlMargin+'px';rowContainer.append(firstRowElement).append(secondArr[index]);carousel.append(rowContainer);});};Owl2row.prototype.upTodown=function(thisScope,aEvenElements,aOddElements,carousel){var o2wContainerClass=thisScope.owl.options.owl2rowContainer;var owlMargin=thisScope.owl.options.margin;$.each(aEvenElements,function(index,item){var rowContainer=$('<div class="'+o2wContainerClass+'"/>');var evenElement=aEvenElements[index];evenElement.style.marginBottom=owlMargin+'px';rowContainer.append(evenElement).append(aOddElements[index]);carousel.append(rowContainer);});};Owl2row.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this.owl.dom.$el.off(handler,this.handlers[handler]);} for(property in Object.getOwnPropertyNames(this)){typeof this[property]!=='function'&&(this[property]=null);}};$.fn.owlCarousel.Constructor.Plugins['owl2row']=Owl2row;})(window.Zepto||window.jQuery,window,document);},} OpenShopLib.init();})(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.1.2-1ubuntu2.19 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка