Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
dumpsterbm
/
wp-content
/
themes
/
oshin
/
js
/
File Content:
be-slider.min.js
!function(e){function n(){jQuery(".component").each(function(){var e=jQuery(this),n=parseInt(e.width()),t=e.attr("data-height"),i=e.attr("data-mobile-height");jQuery(".ps-container-wrap").height(jQuery(window).height()-(jQuery("#header").height()+(2*jQuery(".layout-box-top").height()+jQuery("#wpadminbar").height()))),n<767?e.height(i):e.height(t),"100%"==t&&e.height(e.parent().parent().height()),jQuery(".ps-content-inner").length>0&&jQuery(".ps-content-inner").each(function(){jQuery(this).simplebar()})})}e.fn.BeSlider=function(){var n=Modernizr.cssanimations,t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"}[Modernizr.prefixed("animation")],i=0,r=!1,a=jQuery(this),o=function(e,a){if(r)return!1;var o=e.closest(".component");items=o.children("ul.itemwrap").children("li"),itemsCount=o.children("ul.itemwrap").children("li").length,current=parseInt(e.closest(".component").attr("data-current")),currentItem=items[current],i=0,r=!0,"next"===a?current=current<itemsCount-1?current+1:0:"prev"===a&&(current=current>0?current-1:itemsCount-1),e.closest(".component").attr("data-current",current);var u=items[current],d=function(){jQuery(currentItem).removeClass("current"),jQuery(currentItem).removeClass("next"===a?"navOutNext":"navOutPrev"),2===++i&&(r=!1)},s=function(){jQuery(u).unbind(t,s),jQuery(u).addClass("current"),jQuery(u).removeClass("next"===a?"navInNext":"navInPrev"),2===++i&&(r=!1)};n?(currentItem.addEventListener(t,d),u.addEventListener(t,s)):(d(),s()),jQuery(currentItem).addClass("next"===a?"navOutNext":"navOutPrev"),jQuery(u).addClass("next"===a?"navInNext":"navInPrev")},u=function(e){var n=a.find("ul.itemwrap").children("li");if(!(n.eq(e).length>0)||n.eq(e).find(".be-slide-bg").hasClass("image-loaded")||n.eq(e).find(".be-slide-bg").hasClass("be-slider-video"))return!0;d(n.eq(e).find(".be-slide-bg").attr("data-image"),function(){n.eq(e).find(".be-slide-bg").html(this),this.resizeToParent(),this.css("opacity",1),n.eq(e).find(".be-slide-bg").addClass("image-loaded"),n.closest(".component").find(".component-nav").find("a").fadeIn(),u(e+1)})},d=function(n,t){var i=e("<img>").on("load",function(){t.call(i)});i.attr("src",n)};!function(e){e.find("ul.itemwrap li:first-child").addClass("current"),u(0),e.find("ul.itemwrap li").length<2&&e.find("nav.component-nav").remove()}(a),jQuery(".be-slider-next, .be-slider-prev").off(),jQuery(".be-slider-next").on("click",function(e){e.preventDefault(),o(jQuery(this),"next")}),jQuery(".be-slider-prev").on("click",function(e){e.preventDefault(),o(jQuery(this),"prev")})},jQuery(document).ready(function(){n(),jQuery(".component:not(.no-load)").each(function(){jQuery(this).BeSlider()})}),jQuery(document).on("update_content",function(){n(),jQuery(".component:not(.no-load)").each(function(){jQuery(this).BeSlider()})}),jQuery(window).smartresize(function(){n()})}(jQuery),function(e){function n(){jQuery(window).width()<960&&jQuery(".ps-container-wrap").find(".component.no-load").each(function(){jQuery(this).removeClass("no-load").addClass("loaded"),jQuery(this).BeSlider()})}function t(){(function(){var n=e("#ps-container"),t=n.children("div.ps-contentwrapper"),i=t.children("div.ps-content").length,r=n.children("div.ps-slidewrapper").find("div.ps-slides"),a=(r.children("div"),n.find("a.ps-prev")),o=n.find("a.ps-next"),u=i-1,d=isMouseWheelAnimating=!1,s=function(){a.click(function(e){return d||c("prev"),!1}),o.click(function(e){return d||c("next"),!1}),n.on("mousewheel",function(e,n,t,i){jQuery(window).width()>960&&(e.preventDefault(),n<0?d||isMouseWheelAnimating||(isMouseWheelAnimating=!0,c("prev")):d||isMouseWheelAnimating||(isMouseWheelAnimating=!0,c("next")),isMouseWheelAnimating&&setTimeout(function(){isMouseWheelAnimating=!1},1500))})},c=function(e){d=!0,u=n.data("current_slide"),"next"===e?u<i-1?++u:u=u:"prev"===e&&(u>0?--u:u=u),n.data("current_slide",u),function(){var e=n.data("current_slide");u==i-1?(jQuery(".ps-next").fadeOut(),jQuery(".ps-prev").fadeIn()):0==e?(jQuery(".ps-prev").fadeOut(),jQuery(".ps-next").fadeIn()):(jQuery(".ps-next").fadeIn(),jQuery(".ps-prev").fadeIn()),i<2&&jQuery(".ps-next, .ps-prev").remove()}(),function(){var e=n.data("current_slide"),t=0;for(t=e;t<e+3;t++)r.children("div:eq("+(i-1-t)+")").find(".component").hasClass("no-load")&&(r.children("div:eq("+(i-1-t)+")").find(".component").removeClass("no-load").addClass("loaded"),r.children("div:eq("+(i-1-t)+")").find(".component").BeSlider())}(),t.animate({top:"-"+100*u+"%"},400,function(){d=!1}),r.animate({top:"-"+100*(i-1-u)+"%"},400,function(){d=!1})};return{init:function(){n.data("current_slide",u),s(),c()}}})().init(),n()}jQuery(window).bind("resize",n),jQuery(document).ready(function(){t()}),jQuery(document).on("update_content",function(){t()})}(jQuery);
Submit
FILE
FOLDER
Name
Size
Permission
Action
admin
---
0755
vendor
---
0755
be-slider.js
8910 bytes
0644
be-slider.min.js
4819 bytes
0644
script.js
105548 bytes
0644
script.min.js
45530 bytes
0644
N4ST4R_ID | Naxtarrr