1(function($) { 2 $.fn.menu = function(b) { 3 var c, 4 item, 5 httpAdress; 6 b = jQuery.extend({ 7 Speed: 220, 8 autostart: 1, 9 autohide: 1 10 }, 11 b); 12 c = $(this); 13 item = c.children("ul").parent("li").children("a"); 14 httpAdress = window.location; 15 item.addClass("inactive"); 16 function _item() { 17 var a = $(this); 18 if (b.autohide) { 19 a.parent().parent().find(".active").parent("li").children("ul").slideUp(b.Speed / 1.2, 20 function() { 21 $(this).parent("li").children("a").removeAttr("class"); 22 $(this).parent("li").children("a").attr("class", "inactive") 23 }) 24 } 25 if (a.attr("class") == "inactive") { 26 a.parent("li").children("ul").slideDown(b.Speed, 27 function() { 28 a.removeAttr("class"); 29 a.addClass("active") 30 }) 31 } 32 if (a.attr("class") == "active") { 33 a.removeAttr("class"); 34 a.addClass("inactive"); 35 a.parent("li").children("ul").slideUp(b.Speed) 36 } 37 } 38 item.unbind('click').click(_item); 39 if (b.autostart) { 40 c.children("a").each(function() { 41 if (this.href == httpAdress) { 42 $(this).parent("li").parent("ul").slideDown(b.Speed, 43 function() { 44 $(this).parent("li").children(".inactive").removeAttr("class"); 45 $(this).parent("li").children("a").addClass("active") 46 }) 47 } 48 }) 49 } 50 } 51})(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.