srchub-old

srchub-old Mercurial Source Tree


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

$(document).ready(function() {
    $(":header", "#wiki-content").map(function(index) {
        var $header = $(this);
        var $toc = $('#wiki-toc-content');
        $header.attr('id', 'wikititle_' + index);
        $('<a />').attr('href', '#' + $header.attr('id'))
            .text($header.text())
            .addClass("wiki-" + $header[0].tagName.toLowerCase())
            .appendTo($toc);
    });
    if ($('#wiki-toc-content *').size() < 2)
        $('#wiki-toc').hide();
});

Source at commit 681ef31caf61 created 11 years 4 months ago.
By "Nathan Adams ", Fixing issue with indefero repo and removing registration key

Archive Download this file

Branches

Tags

Page rendered in 0.60383s using 11 queries.