Current Path :
/
home
/
zrcdevco
/
www
/
zrcprod
/
templates
/
luminate
/
js
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/zrcdevco/www/zrcprod/templates/luminate/js/slidebars.min.js
// Slidebars 0.7.1 - http://plugins.adchsm.me/slidebars/ Written by Adam Smith - http://www.adchsm.me/ Released under MIT License - http://opensource.org/licenses/MIT ;(function(a){a.slidebars=function(b){var s=a.extend({siteClose:true},b);var q=document.createElement("div").style,o=false,i=false;if(q.MozTransition===""||q.WebkitTransition===""||q.OTransition===""||q.transition===""){o=true}if(q.MozTransform===""||q.WebkitTransform===""||q.OTransform===""||q.transform===""){i=true}var n=navigator.userAgent,u=false;if(n.match(/Android/)){u=parseFloat(n.slice(n.indexOf("Android")+8));if(u<3){a("html").addClass("sb-android")}}this.init=true;if(!a("#sb-site").length){a("body").children().wrapAll('<div id="sb-site" />')}var m=a("#sb-site");if(!m.parent().is("body")){m.appendTo("body")}m.addClass("sb-slide");if(a(".sb-left").length){var d=a(".sb-left"),e=false;if(!d.parent().is("body")){d.appendTo("body")}}if(a(".sb-right").length){var f=a(".sb-right"),g=false;if(!f.parent().is("body")){f.appendTo("body")}}function p(){var v=a("html").css("height");m.css({"min-height":v});if(u&&u<3){a(".sb-slidebar").css({"min-height":v})}}p();var r,k=a(".sb-slide");if(o&&i){r="translate";if(u&&u<4.4){r="side"}}else{r="jQuery"}if(s.animType){r=s.animType}a("html").addClass("sb-anim-type-"+r);var c=function(v,y,x){if(r==="translate"){v.css({transform:"translate("+y+")"})}else{if(r==="side"){v.css(x,y)}else{if(r==="jQuery"){var w={};w[x]=y;v.stop().animate(w,400)}}}};function h(v){if(v==="left"&&d&&g||v==="right"&&f&&e){j();setTimeout(w,400)}else{w()}function w(){if(v==="left"&&d){e=true;var x=d.css("width");a("html").addClass("sb-active sb-active-left");c(k,x,"left")}else{if(v==="right"&&f){g=true;var y=f.css("width");a("html").addClass("sb-active sb-active-right");c(k,"-"+y,"left")}}if(s.siteClose&&(v==="left"&&e||v==="right"&&g)){m.off("touchend click");setTimeout(function(){m.one("touchend click",function(z){z.preventDefault();j()})},400)}}}function j(v){if(e||g){e=false;g=false;m.off("touchend click");c(k,"0px","left");setTimeout(function(){a("html").removeClass("sb-active sb-active-left sb-active-right");if(v){window.location=v}},400)}}function l(v){if(v=="left"&&d){if(e){j()}else{if(!e){h("left")}}}else{if(v==="right"&&f){if(g){j()}else{if(!g){h("right")}}}}}this.open=h;this.close=j;this.toggle=l;function t(){p();if(e){h("left")}else{if(g){h("right")}}}a(window).resize(t);a(".sb-toggle-left").on("touchend click",function(v){v.preventDefault();l("left")});a(".sb-toggle-right").on("touchend click",function(v){v.preventDefault();l("right")});a(".sb-open-left").on("touchend click",function(v){v.preventDefault();if(!e){h("left")}});a(".sb-open-right").on("touchend click",function(v){v.preventDefault();if(!g){h("right")}});a(".sb-close").on("touchend click",function(v){v.preventDefault();if(e||g){j()}});a(".sb-slidebar a").not(".sb-disable-close").on("touchend click",function(v){v.preventDefault();j(a(this).attr("href"))})}})(jQuery);