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 {
|
#ascroll {
|
||||||
font-family: "noto_sans";
|
font-family: "noto_sans";
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #222;
|
color: #ddd;
|
||||||
|
a {
|
||||||
|
color: var(--color-link);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
padding-left: var(--spacing-2);
|
padding-left: var(--spacing-2);
|
||||||
|
|
|
@ -224,14 +224,8 @@ function renderAnnotation(config, video, ascroll, annotation) {
|
||||||
div.style.background = `linear-gradient(to bottom, ${color1}, ${color2})`;
|
div.style.background = `linear-gradient(to bottom, ${color1}, ${color2})`;
|
||||||
var figcaption = ''
|
var figcaption = ''
|
||||||
if (annotation.title) {
|
if (annotation.title) {
|
||||||
if (config.language == 'zh') {
|
var title = annotation.title
|
||||||
var title = annotation.title.split('/')[1] || annotation.title
|
var txt = `${title}`
|
||||||
var director = annotation.director[1]
|
|
||||||
} else {
|
|
||||||
var title = annotation.title.split('/')[0]
|
|
||||||
var director = annotation.director[0]
|
|
||||||
}
|
|
||||||
var txt = `${title} (${director})`
|
|
||||||
figcaption = `<figcaption><a href="${pandoraURL}/${annotation.id}" target="_blank">${txt}</a></figcaption>`
|
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}/`)
|
annotation.value = annotation.value.replace(/src="\//g, `src="${pandoraURL}/`).replace(/href="\//g, `href="${pandoraURL}/`)
|
||||||
|
|
Loading…
Reference in a new issue