2011-01-07 21:33:18 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$(":header", "#wiki-content").map(function (index) {
|
|
|
|
this.id = "wikititle_" + index;
|
2011-01-25 08:57:44 +00:00
|
|
|
$("<a href='#" + this.id + "'>" + jQuery.fn.text([this]) + "</a>").addClass("wiki-" + this.tagName.toLowerCase()).appendTo('#wiki-toc-content');
|
2011-01-07 21:33:18 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|