1/*! 2 * accordiom.js version 0.3 3 * http://github.com/simonboak/accordiom 4 * Public Domain 5 * 6 */(function(e){e.accordiom=function(n,i){var c=this;c.$el=e(n),c.el=n,c.$el.data("accordiom",c),c.init=function(){c.options=e.extend({},e.accordiom.defaultOptions,i)},c.init()},e.accordiom.defaultOptions={speed:500,showFirstItem:!0,beforeChange:function(){},afterchange:function(){},onLoad:function(){}},e.fn.accordiom=function(n){return this.each(function(){new e.accordiom(this,n),n||(n=e.accordiom.defaultOptions),e(this).data("accordiom-speed",n.speed),n.showFirstItem?(e(this).children(".accordionContent").not(":first").hide(),e(this).children(".accordionButton").first().addClass("on")):e(this).children(".accordionContent").hide(),n.onLoad&&n.onLoad.call(this,this),e(this).children(".accordionButton").on("click",function(){var i=e(this).parent("div");n.beforeChange&&n.beforeChange.call(this,this),e(this).is(".on")?(i.children(".accordionContent").slideUp(n.speed),e(this).removeClass("on")):(i.children(".accordionContent").slideUp(n.speed),i.children(".accordionButton").removeClass("on"),e(this).next(".accordionContent").slideDown(n.speed),e(this).addClass("on")),n.afterChange&&n.afterChange.call(this,this)})})},e.fn.accordiom.openAll=function(n){e(n).children(".accordionContent").slideDown(e(n).data("accordiom-speed"))},e.fn.accordiom.closeAll=function(n){e(n).children(".accordionContent").slideUp(e(n).data("accordiom-speed"))},e.fn.accordiom.openItem=function(n,i){var c=e(n).children(".accordionButton").length-1;if(i<0||i>c)throw"Accordiom: No accordion item of index "+i+" exists";e(e(n).children(".accordionButton")[i]).trigger("click")}})(jQuery);
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.