1
0
mirror of https://github.com/TheGreyDiamond/Enlight.git synced 2026-04-01 07:10:23 +02:00

some cleanup

This commit is contained in:
TheGreyDiamond
2020-11-29 00:46:13 +01:00
parent 21f635697f
commit 09f90c84e9
60 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
$(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');
}
});
});