summaryrefslogtreecommitdiffstats
path: root/python/mock-1.0.0/html/_static/toc.js
blob: 7b709785d4d11ad31564628375d53fddb2070c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var TOC = {
    load: function () {
        $('#toc_button').click(TOC.toggle);
    },
    
    toggle: function () {
        if ($('#sphinxsidebar').toggle().is(':hidden')) {
            $('div.document').css('left', "0px");
            $('toc_button').removeClass("open");
        } else {
            $('div.document').css('left', "230px");
            $('#toc_button').addClass("open");
        }
        return $('#sphinxsidebar');
    }
};

$(document).ready(function () {
    TOC.load();
});