no credits
This commit is contained in:
parent
665d9f999b
commit
e2aed24009
1 changed files with 0 additions and 40 deletions
|
@ -288,46 +288,6 @@ function renderAnnotations(config) {
|
|||
updatePlayer(video, frame, config.first['in'], config.first['out'], src)
|
||||
}
|
||||
}
|
||||
if (config.item_url || config.cited) {
|
||||
var box = document.createElement('div')
|
||||
var color = config.annotations[config.annotations.length - 1].color2
|
||||
box.style.background = `hsl(${color.hue}, 70%, 75%)`
|
||||
var div = document.createElement('div')
|
||||
div.classList.add('related-film')
|
||||
if (config.item_url) {
|
||||
if (config.language == 'zh') {
|
||||
div.innerHTML = `
|
||||
引用影片: <a href="${config.item_url}">${config.item_title_zh} (${config.item_director[1]})</a>
|
||||
`
|
||||
} else {
|
||||
div.innerHTML = `
|
||||
Film cited: <a href="${config.item_url}">${config.item_title} (${config.item_director[0]})</a><br>
|
||||
`
|
||||
}
|
||||
} else {
|
||||
var html = []
|
||||
config.cited.forEach(film => {
|
||||
var title_en = film.title.split(' / ')[0]
|
||||
var title_zh = film.title.split(' / ')[1] || title_en
|
||||
if (config.language == 'en') {
|
||||
var director = film.director ? ` (${film.director[0]})` : ''
|
||||
html.push(`<a href="/video/${film.id}/">${title_en}${director}</a>`)
|
||||
} else {
|
||||
var director = film.director ? ` (${film.director[1]})` : ''
|
||||
html.push(`<a href="/video/${film.id}/">${title_zh}${director}</a>`)
|
||||
}
|
||||
})
|
||||
var films = html.length == 1 ? 'Film' : 'Films'
|
||||
html= html.join(', ')
|
||||
if (config.language == 'zh') {
|
||||
div.innerHTML = ` 引用影片: ${html}`
|
||||
} else {
|
||||
div.innerHTML = `${films} cited: ${html}`
|
||||
}
|
||||
}
|
||||
box.appendChild(div)
|
||||
ascroll.appendChild(box)
|
||||
}
|
||||
}
|
||||
|
||||
async function loadClips(annotations) {
|
||||
|
|
Loading…
Reference in a new issue