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.
1 line
6.8 KiB
1 line
6.8 KiB
4 years ago
|
if(!("ace" in window)){window.ace={}}if(!("vars" in window.ace)){window.ace.vars={icon:" ace-icon ",".icon":".ace-icon"}}ace.config={cookie_expiry:604800,storage_method:2};ace.settings={is:function(b,a){return(ace.data.get("settings",b+"-"+a)==1)},exists:function(b,a){return(ace.data.get("settings",b+"-"+a)!==null)},set:function(b,a){ace.data.set("settings",b+"-"+a,1)},unset:function(b,a){ace.data.set("settings",b+"-"+a,-1)},remove:function(b,a){ace.data.remove("settings",b+"-"+a)},navbar_fixed:function(a,d,b){var c=document.getElementById("navbar");if(!c){return false}a=a||false;if(!a&&b!==false){var e=null;if(ace.settings.is("sidebar","fixed")||((e=document.getElementById("sidebar"))&&ace.hasClass(e,"sidebar-fixed"))){ace.settings.sidebar_fixed(false)}}if(a){if(!ace.hasClass(c,"navbar-fixed-top")){ace.addClass(c,"navbar-fixed-top")}if(d!==false){ace.settings.set("navbar","fixed")}}else{ace.removeClass(c,"navbar-fixed-top");if(d!==false){ace.settings.unset("navbar","fixed")}}document.getElementById("ace-settings-navbar").checked=a;if(window.jQuery){jQuery(document).trigger("settings.ace",["navbar_fixed",a])}},sidebar_fixed:function(a,d,c){var f=document.getElementById("sidebar");if(!f){return false}a=a||false;if(!a&&c!==false){var b=null;if(ace.settings.is("breadcrumbs","fixed")||((b=document.getElementById("breadcrumbs"))&&ace.hasClass(b,"breadcrumbs-fixed"))){ace.settings.breadcrumbs_fixed(false)}}if(a&&c!==false&&!ace.settings.is("navbar","fixed")){ace.settings.navbar_fixed(true)}if(a){if(!ace.hasClass(f,"sidebar-fixed")){ace.addClass(f,"sidebar-fixed");var e=document.getElementById("menu-toggler");if(e){ace.addClass(e,"fixed")}}if(d!==false){ace.settings.set("sidebar","fixed")}}else{ace.removeClass(f,"sidebar-fixed");var e=document.getElementById("menu-toggler");if(e){ace.removeClass(e,"fixed")}if(d!==false){ace.settings.unset("sidebar","fixed")}}document.getElementById("ace-settings-sidebar").checked=a;if(window.jQuery){jQuery(document).trigger("settings.ace",["sidebar_fixed",a])}},breadcrumbs_fixed:function(a,d,c){var b=document.getElementById("breadcrumbs");if(!b){return false}a=a||false;if(a&&c!==false&&!ace.settings.is("sidebar","fixed")){ace.settings.sidebar_fixed(true)}if(a){if(!ace.hasClass(b,"breadcrumbs-fixed")){ace.addClass(b,"breadcrumbs-fixed")}if(d!==false){ace.settings.set("breadcrumbs","fixed")}}else{ace.removeClass(b,"breadcrumbs-fixed");if(d!==false){ace.settings.unset("breadcrumbs","fixed")}}document.getElementById("ace-settings-breadcrumbs").checked=a;if(window.jQuery){jQuery(document).trigger("settings.ace",["breadcrumbs_fixed",a])}},main_container_fixed:function(a,d){a=a||false;var c=document.getElementById("main-container");if(!c){return false}var b=document.getElementById("navbar-container");if(a){if(!ace.hasClass(c,"container")){ace.addClass(c,"container")}if(!ace.hasClass(b,"container")){ace.addClass(b,"container")}if(d!==false){ace.settings.set("main-container","fixed")}}else{ace.removeClass(c,"container");ace.removeClass(b,"container");if(d!==false){ace.settings.unset("main-container","fixed")}}document.getElementById("ace-settings-add-container").checked=a;if(navigator.userAgent.match(/webkit/i)){var e=document.getElementById("sidebar");ace.toggleClass(e,"menu-min");setTimeout(function(){ace.toggleClass(e,"menu-min")},0)}if(window.jQuery){jQuery(document).trigger("settings.ace",["main_container_fixed",a])}},sidebar_collapsed:function(a,e){var f=document.getElementById("sidebar");if(!f){return false}a=a||false;var g=ace.isHTTMlElement(this)?this:f.querySelector(".sidebar-collapse");var d=g?g.querySelector(ace.vars[".icon"]):null,c,b;if(d){c=d.getAttribute("data-icon1");b=d.getAttribute("data-icon2")}if(a){ace.addClass(f,"menu-min");if(d){ace.removeClass(d,c);ace.addClass(d,b)}if(e!==false){ace.settings.set("sidebar","collapsed")}}else{ace.removeClass(f,"menu-min");if(d){ace.removeClass(d,b);ace.addClass(d,c)}if(e!==false){ace.settings.unset("sidebar","collapsed")}}if(window.jQuery){jQuery(document).trigger("settings.ace",["sidebar_collapsed",a])}}};ace.settings.check=function(c,e){if(!ac
|