You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.9 KiB

2 years ago
  1. $(document).ready(function(){function v(){(!document.fullScreenElement||document.fullScreenElement===null)&&(document.mozFullScreen||document.webkitIsFullScreen)?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullScreen?document.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen&&document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}function y(n){$(n).block({message:'<img src="/images/reload.gif" width="20px" alt="">',css:{border:"none",padding:"0px",width:"20px",height:"20px",backgroundColor:"transparent"},overlayCSS:{backgroundColor:"#fff",opacity:.9,cursor:"wait"}})}function p(n){$(n).unblock()}var o,u,n;$(".show-search").click(function(){$(".search-form").css("margin-top","0")});$(".close-search").click(function(){$(".search-form").css("margin-top","-60px")});$(".toggle-fullscreen").click(function(){v()});Waves.displayEffect();$('[data-toggle~="tooltip"]').tooltip({container:"body"});o=Array.prototype.slice.call(document.querySelectorAll(".js-switch"));o.forEach(function(n){var t=new Switchery(n,{isUseClass:!0})});$(".panel-collapse").click(function(){$(this).closest(".panel").children(".panel-body").slideToggle("fast")});$(".panel-reload").click(function(){var n=$(this).closest(".panel").children(".panel-body");y(n);window.setTimeout(function(){p(n)},1e3)});$(".panel-remove").click(function(){$(this).closest(".panel").hide()});$(".push-sidebar").click(function(){var n=$(".sidebar");n.hasClass("visible")?(n.removeClass("visible"),$(".page-inner").removeClass("sidebar-visible")):(n.addClass("visible"),$(".page-inner").addClass("sidebar-visible"))});$(".sortable").sortable({connectWith:".sortable",items:".panel",helper:"original",revert:!0,placeholder:"panel-placeholder",forcePlaceholderSize:!0,opacity:.95,cursor:"move"});u=$("input[type=checkbox]:not(.switchery), input[type=radio]:not(.no-uniform)");u.size()>0&&u.each(function(){$(this).uniform()});$.fn.toggleAttr=function(n,t){var i=t===undefined;return this.each(function(){i&&!$(this).is("["+n+"]")||!i&&t?$(this).attr(n,n):$(this).removeAttr(n)})};$(".sidebar .accordion-menu li .sub-menu").slideUp(0);$(".sidebar .accordion-menu li.open .sub-menu").slideDown(0);$(".small-sidebar .sidebar .accordion-menu li.open .sub-menu").hide(0);$(".sidebar .accordion-menu > li.droplink > a").click(function(){if(!$("body").hasClass(".small-sidebar")&&!$("body").hasClass(".page-horizontal-bar")&&!$("body").hasClass(".hover-menu")){var i=$(".sidebar .menu"),r=$(".page-sidebar-inner"),u=$(".page-content"),t=$(this).next(),f=$(this);return i.find("li").removeClass("open"),$(".sub-menu").slideUp(200,function(){n()}),n(),t.is(":visible")?t.slideUp(200,function(){n()}):($(this).parent("li").addClass("open"),$(this).next(".sub-menu").slideDown(200,function(){n()})),!1}});$(".sidebar .accordion-menu .sub-menu li.droplink > a").click(function(){var i=$(this).parent().parent(),r=$(".page-sidebar-inner"),u=$(".page-content"),t=$(this).next(),f=$(this);return i.find("li").removeClass("open"),n(),t.is(":visible")?t.slideUp(200,function(){n()}):($(this).parent("li").addClass("open"),$(this).next(".sub-menu").slideDown(200,function(){n()})),!1});n=function(){var t=$(".page-inner"),i=$(".page-sidebar"),u=$("body"),n,r=$(".page-footer").outerHeight(),f=$(".page-content").height();t.attr("style","min-height:"+i.height()+"px !important");u.hasClass("page-sidebar-fixed")?n=i.height()+r:(n=i.height()+r,n<$(window).height()&&(n=$(window).height()));n>=t.height()&&t.attr("style","min-height:"+n+"px !important")};n();window.onresize=n;$(".slimscroll").slimscroll({allowPageScroll:!0});var t=document.querySelector(".fixed-header-check"),i=document.querySelector(".fixed-sidebar-check"),nt=document.querySelector(".toggle-sidebar-check"),s=document.querySelector(".boxed-layout-check"),h=documen
  2. //# sourceMappingURL=modern.min.js.map