Mini Shell
/**
* Metis - Bootstrap-Admin-Template v2.3.2
* Author : puikinsh
* Copyright 2016
* Licensed under MIT (https://github.com/puikinsh/Bootstrap-Admin-Template/blob/master/LICENSE.md)
*/
!function(a){var b="undefined"!=typeof b?b:!1,c=b?b.touch:!!("ontouchstart"in a||"onmsgesturechange"in a),d=c?"touchstart":"click",e=function(){this.init()};e.prototype.init=function(){this.isTouchDevice=c,this.buttonPressedEvent=d},e.prototype.getViewportHeight=function(){var b=document.documentElement,c=b.clientHeight,d=a.innerHeight;return d>c?d:c},e.prototype.getViewportWidth=function(){var b=document.documentElement,c=b.clientWidth,d=a.innerWidth;return d>c?d:c},a.Metis=new e}(this),function(a){"use strict";function b(){var b=c.hasClass("navbar-fixed-top"),f=b?c.outerHeight(!0):0;d.css("padding-top",f),d.hasClass("menu-affix")&&(e.affix({offset:{top:e.offset().top}}).css({height:function(){return a(window).width()<768?a(window).height():a(window).height()},top:f-1,bottom:0}),console.log(c.outerHeight(!0)))}var c=a("nav.navbar"),d=a("body"),e=a("#menu");return Metis.navBar=function(){var c;b(),a(window).resize(function(){clearTimeout(c),c=setTimeout(b(),250)})},Metis}(jQuery),function(a,b){"use strict";return b.toggleFullScreen=function(){void 0!==window.screenfull&&screenfull.enabled?a("#toggleFullScreen").on(b.buttonPressedEvent,function(b){screenfull.toggle(window.document[0]),a("body").toggleClass("fullScreen"),b.preventDefault()}):a("#toggleFullScreen").addClass("hidden")},b.boxFullScreen=function(){void 0!==window.screenfull&&screenfull.enabled?a(".full-box").on(b.buttonPressedEvent,function(b){var c=a(this).parents(".box")[0];screenfull.toggle(c),a(this).parents(".box").toggleClass("full-screen-box"),a(this).parents(".box").children(".body").toggleClass("full-screen-box"),a(this).children("i").toggleClass("fa-compress"),b.preventDefault()}):a(".full-box").addClass("hidden")},b.panelBodyCollapse=function(){var c=a(".collapse-box"),d=c.closest(".box").children(".body");d.collapse("show"),c.on(b.buttonPressedEvent,function(b){var c=a(this).closest(".box").children(".body"),d=a(this).children("i");c.on("show.bs.collapse",function(){d.removeClass("fa-minus fa-plus").addClass("fa-spinner fa-spin")}),c.on("shown.bs.collapse",function(){d.removeClass("fa-spinner fa-spin").addClass("fa-minus")}),c.on("hide.bs.collapse",function(){d.removeClass("fa-minus fa-plus").addClass("fa-spinner fa-spin")}),c.on("hidden.bs.collapse",function(){d.removeClass("fa-spinner fa-spin").addClass("fa-plus")}),c.collapse("toggle"),b.preventDefault()})},b.boxHiding=function(){a(".close-box").on(b.buttonPressedEvent,function(){a(this).closest(".box").hide("slow")})},b}(jQuery,Metis||{}),function(a,b){var c=a("body"),d=a(".toggle-left"),e=a(".toggle-right");return b.metisAnimatePanel=function(){a("#left").length?d.on(b.buttonPressedEvent,function(b){if(a(window).width()<768)c.toggleClass("sidebar-left-opened");else{switch(!0){case c.hasClass("sidebar-left-hidden"):c.removeClass("sidebar-left-hidden sidebar-left-mini");break;case c.hasClass("sidebar-left-mini"):c.removeClass("sidebar-left-mini").addClass("sidebar-left-hidden");break;default:c.addClass("sidebar-left-mini")}b.preventDefault()}}):d.addClass("hidden"),a("#right").length?e.on(b.buttonPressedEvent,function(a){switch(!0){case c.hasClass("sidebar-right-opened"):c.removeClass("sidebar-right-opened");break;default:c.addClass("sidebar-right-opened"),!c.hasClass("sidebar-left-mini")&!c.hasClass("sidebar-left-hidden")&&c.addClass("sidebar-left-mini")}a.preventDefault()}):e.addClass("hidden")},b}(jQuery,Metis||{}),function(a){a(document).ready(function(){a('[data-toggle="tooltip"]').tooltip(),a("#menu").metisMenu(),Metis.navBar(),Metis.metisAnimatePanel(),Metis.toggleFullScreen(),Metis.boxFullScreen(),Metis.panelBodyCollapse(),Metis.boxHiding()})}(jQuery);
//# sourceMappingURL=core.js.map
Zerion Mini Shell 1.0