tune scroll
This commit is contained in:
parent
25a62c0f78
commit
665d9f999b
2 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||
|
|
|
@ -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}/`)
|
||||
|
|
Loading…
Reference in a new issue