projects
/
jinja2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1c0421878aa935f4b77fdc8f2fc753a0f6ded640
[jinja2.git]
/
docs
/
_static
/
jinja.js
1
$(function() {
2
3
var
4
toc = $('#toc').show(),
5
items = $('#toc > ul').hide();
6
7
$('#toc h3')
8
.click(function() {
9
if (items.is(':visible')) {
10
items.animate({
11
height: 'hide',
12
opacity: 'hide'
13
}, 300, function() {
14
toc.removeClass('expandedtoc');
15
});
16
}
17
else {
18
items.animate({
19
height: 'show',
20
opacity: 'show'
21
}, 400);
22
toc.addClass('expandedtoc');
23
}
24
});
25
26
});