diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-08 10:27:42 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-08 10:27:42 -0300 |
commit | e1f8beeb384ad4a1a30f2654e17008ae730adf56 (patch) | |
tree | 29bc8d9f1266d9fec51b24f174f62c60338f7db3 /src/static | |
parent | af6f7e78c5c148ac3b194170ee65a30f75ad5413 (diff) |
content: compute "needs reveal" class only on client
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/client.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/static/client.js b/src/static/client.js index 35ef82ee..f7de620f 100644 --- a/src/static/client.js +++ b/src/static/client.js @@ -561,6 +561,7 @@ function prepareStickyHeadings() { } of stickyHeadingInfo) { const coverRevealImage = contentCover?.querySelector('.reveal'); if (coverRevealImage) { + stickyCover.classList.add('content-sticky-heading-cover-needs-reveal'); coverRevealImage.addEventListener('hsmusic-reveal', () => { stickyCover.classList.remove('content-sticky-heading-cover-needs-reveal'); }); |