Indefero

Indefero Git Source Tree


Root/www/media/idf/js/wiki-toc.js

$(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');
    });    
});

Archive Download this file

Page rendered in 0.12540s using 11 queries.