Project

General

Profile

Statistics
| Revision:

root / trunk / docs / _theme / adc / static / toc.js @ 12

History | View | Annotate | Download (498 Bytes)

1 4 andrej.cim
var TOC = {
2
    load: function () {
3
        $('#toc_button').click(TOC.toggle);
4
    },
5
6
    toggle: function () {
7
        if ($('#sphinxsidebar').toggle().is(':hidden')) {
8
            $('div.document').css('left', "0px");
9
            $('toc_button').removeClass("open");
10
        } else {
11
            $('div.document').css('left', "230px");
12
            $('#toc_button').addClass("open");
13
        }
14
        return $('#sphinxsidebar');
15
    }
16
};
17
18
$(document).ready(function () {
19
    TOC.load();
20
});