You cannot 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
32 KiB
JavaScript
2 lines
32 KiB
JavaScript
5 years ago
|
"ace"in window||(window.ace={}),"helper"in window.ace||(window.ace.helper={}),"options"in window.ace||(window.ace.options={}),"vars"in window.ace||(window.ace.vars={icon:" ace-icon ",".icon":".ace-icon"}),ace.vars.touch="ontouchstart"in document.documentElement,jQuery(function(e){ace.click_event=ace.vars.touch&&e.fn.tap?"tap":"click";var a=navigator.userAgent;ace.vars.webkit=!!a.match(/AppleWebKit/i),ace.vars.safari=!!a.match(/Safari/i)&&!a.match(/Chrome/i),ace.vars.android=ace.vars.safari&&!!a.match(/Android/i),ace.vars.ios_safari=!!a.match(/OS ([4-9])(_\d)+ like Mac OS X/i)&&!a.match(/CriOS/i),ace.vars.old_ie=document.all&&!document.addEventListener,ace.vars.non_auto_fixed=ace.vars.android||ace.vars.ios_safari,ace.vars.non_auto_fixed&&e("body").addClass("mob-safari");var t=document.documentElement.style;ace.vars.transition="transition"in t||"WebkitTransition"in t||"MozTransition"in t||"OTransition"in t;var i={general_vars:null,add_touch_drag:null,general_things:null,handle_side_menu:null,sidebar_scrollable:{scroll_to_active:!0,include_shortcuts:!0,include_toggle:!1||ace.vars.safari||ace.vars.ios_safari,smooth_scroll:200,outside:!1},sidebar_hoverable:{sub_scroll:!1},widget_boxes:null,widget_reload_handler:null,settings_box:null,settings_rtl:null,settings_skin:null,enable_searchbox_autocomplete:null,auto_hide_sidebar:!1,auto_padding:!1,auto_container:!1};for(var s in i)if(s in ace){var n=i[s];n!==!1&&(null===n?n=[jQuery]:n instanceof Array?n.unshift(jQuery):n=[jQuery,n],ace[s].apply(null,n))}}),ace.general_vars=function(e){var a="menu-min",t="responsive-min",i="h-sidebar",s=e("#sidebar").eq(0);ace.vars.mobile_style=1,s.hasClass("responsive")&&!e("#menu-toggler").hasClass("navbar-toggle")?ace.vars.mobile_style=2:s.hasClass(t)?ace.vars.mobile_style=3:s.hasClass("navbar-collapse")&&(ace.vars.mobile_style=4),e(window).on("resize.ace.vars",function(){ace.vars.window={width:parseInt(e(this).width()),height:parseInt(e(this).height())},ace.vars.mobile_view=ace.vars.mobile_style<4&&ace.helper.mobile_view(),ace.vars.collapsible=!ace.vars.mobile_view&&ace.helper.collapsible(),ace.vars.nav_collapse=(ace.vars.collapsible||ace.vars.mobile_view)&&e("#navbar").hasClass("navbar-collapse");var s=e(document.getElementById("sidebar"));ace.vars.minimized=!ace.vars.collapsible&&s.hasClass(a)||3==ace.vars.mobile_style&&ace.vars.mobile_view&&s.hasClass(t),ace.vars.horizontal=!(ace.vars.mobile_view||ace.vars.collapsible)&&s.hasClass(i)}).triggerHandler("resize.ace.vars")},ace.general_things=function(e){var a=!!e.fn.ace_scroll;a&&e(".dropdown-content").ace_scroll({reset:!1,mouseWheelLock:!0}),e(window).on("resize.reset_scroll",function(){a&&e(".ace-scroll").ace_scroll("reset")}),a&&e(document).on("settings.ace.reset_scroll",function(a,t){"sidebar_collapsed"==t&&e(".ace-scroll").ace_scroll("reset")}),e(document).on("click.dropdown.pos",'.dropdown-toggle[data-position="auto"]',function(){var a=e(this).offset(),t=e(this.parentNode);parseInt(a.top+e(this).height())+50>ace.helper.scrollTop()+ace.helper.winHeight()-t.find(".dropdown-menu").eq(0).height()?t.addClass("dropup"):t.removeClass("dropup")}),e(document).on("click",".dropdown-navbar .nav-tabs",function(a){a.stopPropagation();{var t;a.target}(t=e(a.target).closest("[data-toggle=tab]"))&&t.length>0&&(t.tab("show"),a.preventDefault())}),e('.ace-nav [class*="icon-animated-"]').closest("a").one("click",function(){var a=e(this).find('[class*="icon-animated-"]').eq(0),t=a.attr("class").match(/icon\-animated\-([\d\w]+)/);a.removeClass(t[0])}),e(".sidebar .nav-list .badge[title],.sidebar .nav-list .badge[title]").each(function(){var a=e(this).attr("class").match(/tooltip\-(?:\w+)/);a=a?a[0]:"tooltip-error",e(this).tooltip({placement:function(a,t){var i=e(t).offset();return parseInt(i.left)<parseInt(document.body.scrollWidth/2)?"right":"left"},container:"body",template:'<div class="tooltip '+a+'"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'})});var t=e(".btn-scroll-up");if(t.length>0){var i=!1;e(window).on("scroll.scroll_btn",function(){var e=ace.helper.scrollTop(),a=ace.hel
|
||
|
try{e("#nav-search-input").bs_typeahead({source:ace.vars.US_STATES,updater:function(a){return e("#nav-search-input").focus(),a}})}catch(a){}};
|