|
|
@ -1,5 +1,6 @@
|
|
|
|
const reference = document.getElementById("reference");
|
|
|
|
const reference = document.getElementById("reference");
|
|
|
|
const contributionsList = document.getElementById("contributions");
|
|
|
|
const contributionsList = document.getElementById("contributions");
|
|
|
|
|
|
|
|
const trackList = document.getElementById("trackList");
|
|
|
|
|
|
|
|
|
|
|
|
const pagedjs = document.createElement("script");
|
|
|
|
const pagedjs = document.createElement("script");
|
|
|
|
pagedjs.src = "https://unpkg.com/pagedjs/dist/paged.polyfill.js";
|
|
|
|
pagedjs.src = "https://unpkg.com/pagedjs/dist/paged.polyfill.js";
|
|
|
@ -27,6 +28,7 @@ function fetchContents() {
|
|
|
|
function populateContributions(contributions) {
|
|
|
|
function populateContributions(contributions) {
|
|
|
|
contributions.forEach((contribution) => {
|
|
|
|
contributions.forEach((contribution) => {
|
|
|
|
contributionsList.appendChild(createSection(contribution));
|
|
|
|
contributionsList.appendChild(createSection(contribution));
|
|
|
|
|
|
|
|
createIndexSection(contribution);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -53,6 +55,26 @@ function atlasLink() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
trackList.appendChild(title);
|
|
|
|
|
|
|
|
trackList.appendChild(table);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function printViewToggle() {
|
|
|
|
function printViewToggle() {
|
|
|
|