Update main.js

This commit is contained in:
Yuxin Wu 2022-05-07 15:35:37 -07:00 committed by GitHub
parent ca5157973c
commit 8300367f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@
toggleFold(this, fold === 'folded');
});
$('figure.highlight figcaption').click(function() {
$('figure.highlight figcaption .level-left').click(function() {
const $code = $(this).closest('figure.highlight');
toggleFold($code.eq(0), !$code.hasClass('folded'));
});