mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
302 B
15 lines
302 B
15 years ago
|
$(function() {
|
||
|
var $toc = $('#toc');
|
||
|
$('h2').each(function() {
|
||
|
var
|
||
|
$h2 = $(this),
|
||
|
$div = $('<div class="toclevel1" />'),
|
||
|
$a = $('<a/>')
|
||
|
.text($h2.text())
|
||
|
.attr('href', '#'+$h2.attr('id'));
|
||
|
|
||
|
$toc.append($div.append($a));
|
||
|
});
|
||
|
|
||
|
sh_highlightDocument();
|
||
|
});
|