add span #cw-text, grudgingly
This commit is contained in:
parent
21a645b312
commit
185f8d5ca4
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|]
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue