This commit is contained in:
j 2021-10-25 16:11:50 +01:00
parent 5a681ef654
commit 98d6b482fd
2 changed files with 11 additions and 0 deletions

View file

@ -58,6 +58,16 @@
padding: 20px 20px;
font-size: 22px;
line-height: 26px;
figure {
width: 100%;
text-align: center;
}
img {
margin: auto;
max-width: 100%;
}
}
}
}

View file

@ -219,6 +219,7 @@ function renderAnnotation(config, video, ascroll, annotation) {
if (annotation.title) {
figcaption = `<figcaption><a href="${baseURL}/${annotation.id}" target="_blank">${annotation.title}</a></figcaption>`
}
annotation.value = annotation.value.replace('src="/', `src="${baseURL}/`).replace('href="/', `href="${baseURL}/`)
div.innerHTML = `
<div class="frame">
<figure>