1
0
mirror of https://github.com/TheGreyDiamond/Enlight.git synced 2025-07-21 21:48:40 +02:00
Files
Enlight/docs/build/html/_static/theme_extras.js
TheGreyDiamond 4f129d06de new theme
2020-09-18 15:38:02 +02:00

27 lines
504 B
JavaScript

$(function() {
var
toc = $('#toc').show(),
items = $('#toc > ul').hide();
$('#toc h3')
.click(function() {
if (items.is(':visible')) {
items.animate({
height: 'hide',
opacity: 'hide'
}, 300, function() {
toc.removeClass('expandedtoc');
});
}
else {
items.animate({
height: 'show',
opacity: 'show'
}, 400);
toc.addClass('expandedtoc');
}
});
});