tune scroll

This commit is contained in:
j 2021-11-22 23:02:23 +01:00
parent 25a62c0f78
commit 665d9f999b
2 changed files with 7 additions and 9 deletions

View file

@ -7,7 +7,11 @@
#ascroll {
font-family: "noto_sans";
width: 100%;
color: #222;
color: #ddd;
a {
color: var(--color-link);
text-decoration: none;
}
h1 {
padding-left: var(--spacing-2);

View file

@ -224,14 +224,8 @@ function renderAnnotation(config, video, ascroll, annotation) {
div.style.background = `linear-gradient(to bottom, ${color1}, ${color2})`;
var figcaption = ''
if (annotation.title) {
if (config.language == 'zh') {
var title = annotation.title.split('/')[1] || annotation.title
var director = annotation.director[1]
} else {
var title = annotation.title.split('/')[0]
var director = annotation.director[0]
}
var txt = `${title} (${director})`
var title = annotation.title
var txt = `${title}`
figcaption = `<figcaption><a href="${pandoraURL}/${annotation.id}" target="_blank">${txt}</a></figcaption>`
}
annotation.value = annotation.value.replace(/src="\//g, `src="${pandoraURL}/`).replace(/href="\//g, `href="${pandoraURL}/`)