add span #cw-text, grudgingly

This commit is contained in:
Rhiannon Morris 2020-07-18 11:45:59 +02:00
parent 21a645b312
commit 185f8d5ca4
2 changed files with 2 additions and 2 deletions

View file

@ -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
<figcaption id=cw>
$*w
<span id=cw-text>cw: <b>$*w</b></span>
</figcaption>
|]

View file

@ -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 = `<span id=cw-text>cw: <b>${cw}</b></span>`;
newCaption.onclick = openCW;
mainfig.insertBefore(newCaption, mainlink);
}