Compare commits
2 commits
3e6e6077d2
...
fa21a06856
Author | SHA1 | Date | |
---|---|---|---|
fa21a06856 | |||
02309f4b3f |
1 changed files with 3 additions and 2 deletions
|
@ -339,7 +339,7 @@ async function loadAnnotations(config) {
|
||||||
part['out'] = position + duration
|
part['out'] = position + duration
|
||||||
part.clipId = part.id.split('/')[0] + '/' + part.in.toFixed(3) + '-'+ part.out.toFixed(3)
|
part.clipId = part.id.split('/')[0] + '/' + part.in.toFixed(3) + '-'+ part.out.toFixed(3)
|
||||||
part.colorId = annotation.clipId
|
part.colorId = annotation.clipId
|
||||||
part.value = parts.pop(0)
|
part.value = parts.shift()
|
||||||
if (parts.length) {
|
if (parts.length) {
|
||||||
position = part['out']
|
position = part['out']
|
||||||
} else {
|
} else {
|
||||||
|
@ -457,7 +457,8 @@ function renderSingleMode(config) {
|
||||||
var title = document.createElement('div')
|
var title = document.createElement('div')
|
||||||
title.classList.add('title')
|
title.classList.add('title')
|
||||||
title.innerText = layer.charAt(0).toUpperCase() + layer.slice(1);
|
title.innerText = layer.charAt(0).toUpperCase() + layer.slice(1);
|
||||||
text_layer.appendChild(title)
|
//text_layer.appendChild(title)
|
||||||
|
|
||||||
config.annotations.forEach(clip => {
|
config.annotations.forEach(clip => {
|
||||||
var values = []
|
var values = []
|
||||||
clip.annotations.forEach(a => {
|
clip.annotations.forEach(a => {
|
||||||
|
|
Loading…
Reference in a new issue