8 lines
290 B
JavaScript
8 lines
290 B
JavaScript
$(document).ready(function() {
|
|
$(":header", "#wiki-content").map(function (index) {
|
|
this.id = "wikititle_" + index;
|
|
$("<a href='#" + this.id + "'>" + this.innerText + "</a>").addClass("wiki-" + this.tagName.toLowerCase()).appendTo('#wiki-toc-content');
|
|
});
|
|
});
|
|
|