Current File : /home/kelaby89/muzza.fit/wp-content/plugins/wolf-visual-composer/assets/js/min/sliders.min.js
/*! WPBakery Page Builder Extension Wordpress Plugin v3.7.17 */ 
var WVCSliders=function(a){"use strict";return{isMobile:!1,init:function(){if(this.isMobile=WVCParams.isMobile,a.isFunction(a.flexslider)){var b=this;this.advancedSlider(),this.tabletSlider(),this.laptopSlider(),this.desktopSlider(),this.mobileSlider(),a(window).resize(function(){b.fullHeightSlider(),b.tabletSlider(),b.laptopSlider(),b.desktopSlider(),b.mobileSlider(),b.slideVideoBackground()}).resize()}this.flexSlider()},advancedSlider:function(){var b=this.isMobile,c=this.isMobile?"slide":"fade";a(".wvc-advanced-slider, .wvc-last-posts-big-slider .flexslider").each(function(){var d,e=a(this),f=e.data("autoplay"),g=e.data("slideshow-speed"),h=e.data("pause-on-hover"),i=e.data("transition"),j=e.data("height"),k=e.data("height-unit"),l=e.data("nav-bullets"),m=e.data("nav-arrows");d="auto"===i?c:i,a("#"+e.attr("id")).wvcSlider({selector:"#"+e.attr("id"),isMobile:b,animation:d,slideshow:f,pauseOnHover:h,slideshowSpeed:g,controlNav:l,directionNav:m,sliderHeight:j,sliderHeightUnit:k})})},flexSlider:function(){var b=this.isMobile?"slide":"fade";a(".wvc-images-slider, .wvc-last-posts-slider .flexslider").each(function(){var c,d=a(this),e=d.data("autoplay"),f=d.data("slideshow-speed"),g=d.data("pause-on-hover"),h=d.data("transition"),i=d.data("nav-bullets"),j=d.data("nav-arrows");c="auto"===h?b:h,d.flexslider({animation:c,slideshow:e,pauseOnHover:g,slideshowSpeed:f,smoothHeight:!0,directionNav:j,controlNav:i})}),a(".wvc-post-gallery-slider").each(function(){var c=a(this);c.flexslider({animation:b,slideshow:!0,pauseOnHover:!0,slideshowSpeed:4e3,smoothHeight:!0,directionNav:!0,controlNav:!0})}),a(".wvc-product-presentation .product-images").each(function(){var c=a(this);c.flexslider({animation:b,slideshow:!0,pauseOnHover:!0,slideshowSpeed:4e3,smoothHeight:!0,directionNav:!0,controlNav:!1})}),a(".wvc-section-slideshow-background").each(function(){var b=a(this),c=b.data("slideshow-speed");b.flexslider({animation:"fade",slideshow:!0,pauseOnHover:!1,slideshowSpeed:c,animationSpeed:1e3,smoothHeight:!1,directionNav:!1,controlNav:!1,useCSS:!1})})},lastPostsBigSlider:function(){var b=this,c=this.isMobile?"slide":"fade";a(".wvc-last-posts-big-slider .flexslider").each(function(){var d,e=a(this),f=e.data("autoplay"),g=e.data("slideshow-speed"),h=e.data("pause-on-hover"),i=e.data("transition"),j=e.data("nav-bullets"),k=e.data("nav-arrows"),l=e.data("height"),m=e.data("height-unit");b.setSliderHeight(e,l,m),d="auto"===i?c:i,e.flexslider({animation:d,slideshow:f,pauseOnHover:h,slideshowSpeed:g,smoothHeight:!0,directionNav:k,controlNav:j})})},setSliderHeight:function(b,c,d){var e,f=this,g=f.getToolBarOffset(),h=2;e=parseInt(c,10),100===e&&"%"===d&&(g=f.getToolBarOffset()),"%"===d&&(e=Math.floor(a(window).height()*c/100)),a(".wpm-sticky-playlist-container").length&&(g+=a(".wpm-sticky-playlist-container").height()),e=e-g+h,b.find(".slide").each(function(){a(this).css({height:e})})},tabletSlider:function(){a(".wvc-slider-background-tablet").each(function(){var b,c,d,e,f,g=a(this),h=g.width(),i=625,j=101,k=102,l=95,m=0,n=g.parent('[class*="wolf_col_"]');n.css({marginBottom:0}),822>h&&(b=Math.floor(h/i*j),c=Math.floor(h/i*k),d=Math.floor(h/i*l),e=Math.floor(h/i*m),f={paddingTop:b,paddingLeft:c,paddingRight:d,paddingBottom:e},a(this).css(f))})},laptopSlider:function(){a(".wvc-slider-background-laptop").each(function(){var b,c,d,e,f,g=a(this),h=g.width(),i=676,j=40,k=116,l=120,m=73;912>h&&(b=Math.floor(h/i*j),e=Math.floor(h/i*m),c=Math.floor(h/i*k),d=Math.floor(h/i*l),f={paddingTop:b,paddingLeft:c,paddingRight:d,paddingBottom:e},a(this).css(f))})},desktopSlider:function(){a(".wvc-slider-background-desktop").each(function(){var b,c,d,e,f,g=a(this),h=g.width(),i=922,j=41,k=42,l=44,m=330;1007>h&&(b=Math.floor(h/i*j),e=Math.floor(h/i*m),c=Math.floor(h/i*k),d=Math.floor(h/i*l),f={paddingTop:b,paddingLeft:c,paddingRight:d,paddingBottom:e},a(this).css(f))})},mobileSlider:function(){a(".wvc-slider-background-mobile").each(function(){var b,c,d,e,f,g=a(this),h=g.width(),i=277,j=95,k=38,l=37,m=103;350>h&&(b=Math.floor(h/i*j),e=Math.floor(h/i*m),c=Math.floor(h/i*k),d=Math.floor(h/i*l),f={paddingTop:b,paddingLeft:c,paddingRight:d,paddingBottom:e},a(this).css(f))})},fullHeightSlider:function(){var b=this;a(".wvc-fullscreen-slider").find(".slide").each(function(){a(this).css({height:a(window).height()-b.getToolBarOffset()})})},getToolBarOffset:function(){var b=0;return a("body").is(".admin-bar")&&(b=782<a(window).width()?32:46),b},slideVideoBackground:function(){var b=this;a(".wvc-slide-video-container").each(function(){var c,d,e,f,g,h=a(this),i=a(this).width(),j=a(this).height(),k=640,l=360,m=a(this).find(".wvc-slide-video");if(h.hasClass("wvc-youtube-video-bg-container"))m=h.find("iframe"),k=560,l=315;else if(b.isMobile)return h.find(".wvc-video-bg-fallback").css({"z-index":1}),void m.remove();i/j>=1.8?(d=i,c=Math.floor(i/k*l)+2,f=-(Math.floor(c-j)/2),e=-(Math.floor(d-i)/2),g={width:d,height:c,marginTop:f,marginLeft:e},m.css(g)):(c=j,d=Math.floor(j/l*k),e=-(Math.floor(d-i)/2),g={width:d,height:c,marginLeft:e,marginTop:0},m.css(g))})}}}(jQuery);!function(a){"use strict";a(document).ready(function(){WVCSliders.init()})}(jQuery);
Hello World !