1/** 2 * jquery.slimmenu.js 3 * http://adnantopal.github.io/slimmenu/ 4 * Author: @adnantopal 5 * Copyright 2013, Adnan Topal (atopal.com) 6 * Licensed under the MIT license. 7 */ 8!function(e,i,n,s){var t,l={resizeWidth:"768",collapserTitle:"Main Menu",animSpeed:"medium",easingEffect:null,indentChildren:!1,childrenIndenter:" "},a=null;function o(i,n){this.element=i,this.$elem=e(this.element),this.options=e.extend({},l,n),this.init()}o.prototype={init:function(){var s,l=this.options,o=this.$elem,d='<div class="menu-collapser"><div class="collapse-button"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></div><div class="menu-b-text">'+l.collapserTitle+"</div></div>";o.before(d),s=o.prev(".menu-collapser"),o.on("click",".sub-collapser",function(i){i.preventDefault(),i.stopPropagation();var n=e(this).closest("li");e(this).hasClass("expanded")?(e(this).removeClass("expanded"),e(this).find("i").html("▼"),n.find(">ul").slideUp(l.animSpeed,l.easingEffect)):(e(this).addClass("expanded"),e(this).find("i").html("▲"),n.find(">ul").slideDown(l.animSpeed,l.easingEffect))}),e(n).ready(function(){a=e(n).width(),t=e(n).height()}),s.on("click",".collapse-button",function(i){e(this).toggleClass("select"),i.preventDefault(),o.slideToggle(l.animSpeed,l.easingEffect)}),this.resizeMenu({data:{el:this.element,options:this.options}}),e(i).on("resize",{el:this.element,options:this.options},this.resizeMenu)},resizeMenu:function(s){if(a!==e(n).width()||t!==e(n).height()){a=e(n).width(),t=e(n).height();var l=e(i),d=s.data.options,h=e(s.data.el),c=e("body").find(".menu-collapser");e(".collapse-button").removeClass("select"),h.find("li").each(function(){e(this).has("ul").length&&(e(this).has(".sub-collapser").length||e(this).prepend('<span class="sub-collapser"></span>')),e(this).children("ul").hide(),e(this).find(".sub-collapser").removeClass("expanded")}),d.resizeWidth>=l.width()?(d.indentChildren&&h.find("ul").each(function(){var i=e(this).parents("ul").length;e(this).children("li").children("a").has("i").length||e(this).children("li").children("a").prepend(o.prototype.indent(i,d))}),h.find("li").has("ul").off("mouseenter mouseleave"),h.addClass("collapsed").hide(),c.show()):(h.find("li").has("ul").on("mouseenter",function(){e(this).find(">ul").stop().slideDown(d.animSpeed,d.easingEffect)}).on("mouseleave",function(){e(this).find(">ul").stop().slideUp(d.animSpeed,d.easingEffect)}),h.find("li > a > i").remove(),h.removeClass("collapsed").css("display","inline-block"),c.hide())}},indent:function(e,i){for(var n="",s=0;s<e;s++)n+=i.childrenIndenter;return"<i>"+n+"</i>"}},e.fn.slimmenu=function(i){return this.each(function(){e.data(this,"plugin_slimmenu")||e.data(this,"plugin_slimmenu",new o(this,i))})}}(jQuery,window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.