From e1f8beeb384ad4a1a30f2654e17008ae730adf56 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 8 Jun 2023 10:27:42 -0300 Subject: content: compute "needs reveal" class only on client --- src/static/client.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/static') 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'); }); -- cgit 1.3.0-6-gf8a5