Better and simplified arrows when rolling/unrolling content

This commit is contained in:
Phuntsok Drak-pa
2019-09-03 02:24:06 +02:00
parent ddbbf4bb72
commit 556d774a5e
2 changed files with 18 additions and 8 deletions

View File

@@ -15,15 +15,14 @@ function roll_elems() {
// Except for the footnotes
$('.footnotes').removeClass('rolled');
// // Make the rollable headers actually rollable and rolled
// Make the rollable headers actually rollable and rolled
$('.header-container').each(function($header) {
$header = $(this);
$header.click(function() {
$header.nextAll().each(function() {
$(this).slideToggle(500);
});
$header.find('>:first-child').toggleClass('unrolled');
$header.find('>:first-child').toggleClass('rolled');
$header.find('>:first-child').toggleClass('rotated');
});
});
}