Compare commits

...

2 Commits

Author SHA1 Message Date
grgr 1775fa0f07 create index funct 2 years ago
grgr 64ac91a383 create key index funct 2 years ago

@ -60,18 +60,20 @@ function createIndexSection(contribution) {
let table = document.createElement("table");
let title = document.createElement("h4");
title.innerHTML = contribution.title;
contribution.audio.forEach((track) => {
console.log(track);
// let row = document.createElement("tr");
// let col1 = document.createElement("td");
// let col2 = document.createElement("td");
// col1.setAttribute("class", "symbol");
// col2.setAttribute("class", "filename");
// col2.innerHTML = track;
// row.appendChild(col1);
// row.appendChild(col2);
// table.appendChild(row);
});
if (contribution.audio){
let tracks = contribution.audio;
tracks.forEach((track) => {
let row = document.createElement("tr");
let col1 = document.createElement("td");
let col2 = document.createElement("td");
col1.setAttribute("class", "symbol");
col2.setAttribute("class", "filename");
col2.innerHTML = track;
row.appendChild(col1);
row.appendChild(col2);
table.appendChild(row);
});
}
trackList.appendChild(title);
trackList.appendChild(table);
}

Loading…
Cancel
Save