From 665d9f999b4e2e304edadf03dbcc7c55fc1819be Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Nov 2021 23:02:23 +0100 Subject: [PATCH] tune scroll --- app/static/css/partials/_ascroll.scss | 6 +++++- app/static/js/ascroll.js | 10 ++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/static/css/partials/_ascroll.scss b/app/static/css/partials/_ascroll.scss index 12b2ccb..1b30add 100755 --- a/app/static/css/partials/_ascroll.scss +++ b/app/static/css/partials/_ascroll.scss @@ -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); diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index c4c9e91..d5c002d 100755 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -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 = `
${txt}
` } annotation.value = annotation.value.replace(/src="\//g, `src="${pandoraURL}/`).replace(/href="\//g, `href="${pandoraURL}/`)