From 185f8d5ca4835cd5d5a33e8e56da7ec331b608ec Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 18 Jul 2020 11:45:59 +0200 Subject: [PATCH] add span #cw-text, grudgingly --- make-pages/SinglePage.hs | 2 +- script/single.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/make-pages/SinglePage.hs b/make-pages/SinglePage.hs index a3cab51..eec36e4 100644 --- a/make-pages/SinglePage.hs +++ b/make-pages/SinglePage.hs @@ -91,7 +91,7 @@ make' nsfw (Info {date, title, artist, tags, nsfwTags, dataBg = ifJust background \bg -> [b| data-bg="$*bg"|] warning' = ifJust (#warning image0) \w -> [b|@4
- $*w + cw: $*w
|] diff --git a/script/single.js b/script/single.js index 09079db..3d4e0fa 100644 --- a/script/single.js +++ b/script/single.js @@ -19,7 +19,7 @@ function setImage(src, href, cw) { } else if (defined(cw)) { let newCaption = document.createElement('figcaption'); newCaption.id = 'cw'; - newCaption.innerHTML = cw; + newCaption.innerHTML = `cw: ${cw}`; newCaption.onclick = openCW; mainfig.insertBefore(newCaption, mainlink); }