Sha256: f52e009202d2d56282cd497a3e003c79e714dde9c3a716b282cbfa0cdb42f4a3
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
jQuery -> $('#menu').waypoint( (event, direction) -> $(this).toggleClass('sticky', direction == "down") $(this).css( left: $("#header").offset().left ) event.stopPropagation() ) $('#menu').find("li").each( () -> if $(this).find("ul").length > 0 # $("<span>").text("^").appendTo($(this).children(":first")) # show subnav on hover $(this).mouseenter( () -> $(this).find("ul").stop(true, true).show() #slideDown() ) # hide submenus on exit $(this).mouseleave( () -> $(this).find("ul").stop(true, true).hide() #slideUp() ) )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
contour-0.10.2 | app/assets/javascripts/contour/menu.js.coffee |
contour-0.10.1 | app/assets/javascripts/contour/menu.js.coffee |
contour-0.10.0 | app/assets/javascripts/contour/menu.js.coffee |