add titles and other edit fixes

This commit is contained in:
j 2021-10-10 16:25:17 +01:00
commit b4529aaab3
2 changed files with 20 additions and 5 deletions

View file

@ -156,7 +156,13 @@ function loadEdit(config) {
var div = document.createElement('div')
div.classList.add('annotation')
div.innerHTML = `
<div class="frame"><img src="${baseURL}/${annotation.id.split('/')[0]}/${imageResolution}p${annotation.in}.jpg"></div>
<div class="frame">
<figure>
<img src="${baseURL}/${annotation.id.split('/')[0]}/${imageResolution}p${annotation.in}.jpg">
<figcaption><a href="${baseURL}/${annotation.id}" target="_blank">${clip.title}</a></figcaption>
</figure>
</div>
<div class="text">${annotation.value}</div>
`
@ -173,7 +179,7 @@ function loadEdit(config) {
loaded = true
let frame = ascroll.querySelector('.annotation .frame')
if (frame) {
var src = `${baseURL}/${ifrst.id.split('/')[0]}/480p.webm`
var src = `${baseURL}/${first.id.split('/')[0]}/480p.webm`
updatePlayer(video, frame, first['in'], src)
}