Root/
1 2 3 4 5 6 | $(document).ready( function () { $( ":header" , "#wiki-content" ).map( function (index) { this .id = "wikititle_" + index; $( "<a href='#" + this .id + "'>" + jQuery.fn.text([ this ]) + "</a>" ).addClass( "wiki-" + this .tagName.toLowerCase()).appendTo( '#wiki-toc-content' ); }); }); |