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