1var JQueryCssMenu = 2{ 3 fadesettings: {overduration: 10, outduration: 100}, //duration of fade in/ out animation, in milliseconds 4 5 BuildMenu:function(menuid){ 6 var $mainmenu=$("#"+menuid+">ul") 7 var $headers=$mainmenu.find("ul").parent() 8 $headers.each(function(i){ 9 var $curobj=$(this) 10 var $subul=$(this).find('ul:eq(0)') 11 this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()} 12 this.istopheader=$curobj.parents("ul").length==1? true : false 13 $subul.css({top:this.istopheader? this._dimensions.h+"px" : 0}) 14 $curobj.hover( 15 function(e){ 16 var $targetul=$(this).children("ul:eq(0)") 17 this._offsets={left:$(this).offset().left, top:$(this).offset().top} 18 var menuleft=this.istopheader? 0 : this._dimensions.w 19 menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>$(window).width())? (this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft 20 $targetul.css({ left: menuleft + "px" }).fadeIn(JQueryCssMenu.fadesettings.overduration) 21 }, 22 function(e){ 23 $(this).children("ul:eq(0)").fadeOut(JQueryCssMenu.fadesettings.outduration) 24 } 25 ) 26 }) 27 $mainmenu.find("ul").css({display:'none', visibility:'visible'}) 28 } 29} 30
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.