doc: Generate, embed and animate a table of contents in the navbar itself
[charm.git] / doc / hilitesyntax.js
index de5b8b3cad6846b93ee2fd5aad2218ff430a1a4e..c11eed0ba46ddc9e40a2175c93af79a053610a15 100644 (file)
@@ -5,5 +5,8 @@ $(document).ready( function() {
     })
     .addClass("cm-s-lesser-dark")
     .children("span.cm-charmkeyword").css("color", "#dd5ef3");
+
+               $(".navigation").click( function() { $("ul.manual-toc").fadeToggle() } );
+               $(".navigation").mouseleave( function() { $("ul.manual-toc").fadeOut('slow') } );
 } )