diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index d5c002d..aecc78d 100755 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -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 = ` - 引用影片: ${config.item_title_zh} (${config.item_director[1]}) - ` - } else { - div.innerHTML = ` - Film cited: ${config.item_title} (${config.item_director[0]})
- ` - } - } 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(`${title_en}${director}`) - } else { - var director = film.director ? ` (${film.director[1]})` : '' - html.push(`${title_zh}${director}`) - } - }) - 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) {