mirror of
https://github.com/TheGreyDiamond/Enlight.git
synced 2025-07-21 05:38:40 +02:00
new theme
This commit is contained in:
26
docs/build/html/_static/theme_extras.js
vendored
Normal file
26
docs/build/html/_static/theme_extras.js
vendored
Normal 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');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user