芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/theme/default/js/app.min.js
"use strict";if(typeof jQuery==="undefined"){throw new Error("AdminLTE requires jQuery")}$.AdminLTE={};$.AdminLTE.options={navbarMenuSlimscroll:true,navbarMenuSlimscrollWidth:"3px",navbarMenuHeight:"400px",sidebarToggleSelector:"[data-toggle='offcanvas']",sidebarPushMenu:true,sidebarSlimScroll:true,sidebarExpandOnHover:false,enableBoxRefresh:true,enableBSToppltip:true,BSTooltipSelector:"[data-toggle='tooltip']",enableFastclick:true,enableControlSidebar:true,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:true},enableBoxWidget:true,boxWidgetOptions:{boxWidgetIcons:{collapse:"fa-minus",open:"fa-plus",remove:"fa-times"},boxWidgetSelectors:{remove:'[data-widget="remove"]',collapse:'[data-widget="collapse"]'}},directChat:{enable:true,contactToggleSelector:'[data-widget="chat-pane-toggle"]'},colors:{lightBlue:"#3c8dbc",red:"#f56954",green:"#00a65a",aqua:"#00c0ef",yellow:"#f39c12",blue:"#0073b7",navy:"#001F3F",teal:"#39CCCC",olive:"#3D9970",lime:"#01FF70",orange:"#FF851B",fuchsia:"#F012BE",purple:"#8E24AA",maroon:"#D81B60",black:"#222222",gray:"#d2d6de"},screenSizes:{xs:480,sm:768,md:992,lg:1200}};$(function(){if(typeof AdminLTEOptions!=="undefined"){$.extend(true,$.AdminLTE.options,AdminLTEOptions)}var o=$.AdminLTE.options;_init();$.AdminLTE.layout.activate();$.AdminLTE.tree(".sidebar");if(o.enableControlSidebar){$.AdminLTE.controlSidebar.activate()}if(o.navbarMenuSlimscroll&&typeof $.fn.slimscroll!="undefined"){$(".navbar .menu").slimscroll({height:o.navbarMenuHeight,alwaysVisible:false,size:o.navbarMenuSlimscrollWidth}).css("width","100%")}if(o.sidebarPushMenu){$.AdminLTE.pushMenu.activate(o.sidebarToggleSelector)}if(o.enableBSToppltip){$("body").tooltip({selector:o.BSTooltipSelector})}if(o.enableBoxWidget){$.AdminLTE.boxWidget.activate()}if(o.enableFastclick&&typeof FastClick!="undefined"){FastClick.attach(document.body)}if(o.directChat.enable){$(o.directChat.contactToggleSelector).on("click",function(){var box=$(this).parents(".direct-chat").first();box.toggleClass("direct-chat-contacts-open")})}$('.btn-group[data-toggle="btn-toggle"]').each(function(){var group=$(this);$(this).find(".btn").on("click",function(e){group.find(".btn.active").removeClass("active");$(this).addClass("active");e.preventDefault()})})});function _init(){$.AdminLTE.layout={activate:function(){var _this=this;_this.fix();_this.fixSidebar();$(window,".wrapper").resize(function(){_this.fix();_this.fixSidebar()})},fix:function(){var neg=$(".main-header").outerHeight()+$(".main-footer").outerHeight();var window_height=$(window).height();var sidebar_height=$(".sidebar").height();var min_height=parseInt($(".content-wrapper").css("min-height"));if($("body").hasClass("fixed")){$(".content-wrapper, .right-side").css("min-height",window_height-$(".main-footer").outerHeight())}else{var postSetWidth;if(window_height>=sidebar_height){var dif=min_height-(window_height-neg);dif=dif>0?dif:-1*dif;if(dif>5){$(".content-wrapper, .right-side").css("min-height",window_height-neg);postSetWidth=window_height-neg}}else{var dif=min_height-sidebar_height;dif=dif>0?dif:-1*dif;if(dif>3){$(".content-wrapper, .right-side").css("min-height",sidebar_height);postSetWidth=sidebar_height}}var controlSidebar=$($.AdminLTE.options.controlSidebarOptions.selector);if(typeof controlSidebar!=="undefined"){if(controlSidebar.height()>postSetWidth)$(".content-wrapper, .right-side").css("min-height",controlSidebar.height())}}},fixSidebar:function(){if(!$("body").hasClass("fixed")){if(typeof $.fn.slimScroll!="undefined"){$(".sidebar").slimScroll({destroy:true}).height("auto")}return}else if(typeof $.fn.slimScroll=="undefined"&&console){console.error("Error: the fixed layout requires the slimscroll plugin!")}if($.AdminLTE.options.sidebarSlimScroll){if(typeof $.fn.slimScroll!="undefined"){$(".sidebar").slimScroll({destroy:true}).height("auto");$(".sidebar").slimscroll({height:$(window).height()-$(".main-header").height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"})}}}};$.AdminLTE.pushMenu={triggerSideberchange:function(){setTimeout(function(){$("body").trigger("sidebarChanged")},500)},activate:function(toggleBtn){var screenSizes=$.AdminLTE.options.screenSizes;$(toggleBtn).on("click",function(e){e.preventDefault();if($(window).width()>screenSizes.sm-1){$("body").toggleClass("sidebar-collapse")}else{if($("body").hasClass("sidebar-open")){$("body").removeClass("sidebar-open");$("body").removeClass("sidebar-collapse")}else{$("body").addClass("sidebar-open")}}$.AdminLTE.pushMenu.triggerSideberchange()});$(".content-wrapper").click(function(){if($(window).width()<=screenSizes.sm-1&&$("body").hasClass("sidebar-open")){$("body").removeClass("sidebar-open")}});if($.AdminLTE.options.sidebarExpandOnHover||$("body").hasClass("fixed")&&$("body").hasClass("sidebar-mini")){this.expandOnHover()}},expandOnHover:function(){var _this=this;var screenWidth=$.AdminLTE.options.screenSizes.sm-1;$(".main-sidebar").hover(function(){if($("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>screenWidth){_this.expand()}},function(){if($("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>screenWidth){_this.collapse()}})},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){if($("body").hasClass("sidebar-expanded-on-hover")){$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}}};$.AdminLTE.tree=function(menu){var _this=this;$("li a",$(menu)).on("click",function(e){var $this=$(this);var checkElement=$this.next();if(checkElement.is(".treeview-menu")&&checkElement.is(":visible")){checkElement.slideUp("normal",function(){checkElement.removeClass("menu-open")});checkElement.parent("li").removeClass("active")}else if(checkElement.is(".treeview-menu")&&!checkElement.is(":visible")){var parent=$this.parents("ul").first();var ul=parent.find("ul:visible").slideUp("normal");ul.removeClass("menu-open");var parent_li=$this.parent("li");checkElement.slideDown("normal",function(){checkElement.addClass("menu-open");parent.find("li.active").removeClass("active");parent_li.addClass("active");_this.layout.fix()})}if(checkElement.is(".treeview-menu")){e.preventDefault()}})};$.AdminLTE.controlSidebar={activate:function(){var _this=this;var o=$.AdminLTE.options.controlSidebarOptions;var sidebar=$(o.selector);var btn=$(o.toggleBtnSelector);btn.on("click",function(e){e.preventDefault();if(!sidebar.hasClass("control-sidebar-open")&&!$("body").hasClass("control-sidebar-open")){_this.open(sidebar,o.slide)}else{_this.close(sidebar,o.slide)}});var bg=$(".control-sidebar-bg");_this._fix(bg);if($("body").hasClass("fixed")){_this._fixForFixed(sidebar)}else{if($(".content-wrapper, .right-side").height()
.box-body, > .box-footer");if(!box.hasClass("collapsed-box")){element.children(":first").removeClass(_this.icons.collapse).addClass(_this.icons.open);box_content.slideUp(300,function(){box.addClass("collapsed-box")})}else{element.children(":first").removeClass(_this.icons.open).addClass(_this.icons.collapse);box_content.slideDown(300,function(){box.removeClass("collapsed-box")})}},remove:function(element){var box=element.parents(".box").first();box.slideUp()}}}(function($){$.fn.boxRefresh=function(options){var settings=$.extend({trigger:".refresh-btn",source:"",onLoadStart:function(box){},onLoadDone:function(box){}},options);var overlay=$('
');return this.each(function(){if(settings.source===""){if(console){console.log("Please specify a source first - boxRefresh()")}return}var box=$(this);var rBtn=box.find(settings.trigger).first();rBtn.on("click",function(e){e.preventDefault();start(box);box.find(".box-body").load(settings.source,function(){done(box)})})});function start(box){box.append(overlay);settings.onLoadStart.call(box)}function done(box){box.find(overlay).remove();settings.onLoadDone.call(box)}}})(jQuery);(function($){$.fn.todolist=function(options){var settings=$.extend({onCheck:function(ele){},onUncheck:function(ele){}},options);return this.each(function(){if(typeof $.fn.iCheck!="undefined"){$("input",this).on("ifChecked",function(event){var ele=$(this).parents("li").first();ele.toggleClass("done");settings.onCheck.call(ele)});$("input",this).on("ifUnchecked",function(event){var ele=$(this).parents("li").first();ele.toggleClass("done");settings.onUncheck.call(ele)})}else{$("input",this).on("change",function(event){var ele=$(this).parents("li").first();ele.toggleClass("done");settings.onCheck.call(ele)})}})}})(jQuery);