file uploading, now with the actual file

This commit is contained in:
oat 2020-10-12 01:21:32 +03:00
parent 1ed6dc6185
commit 73d5962c5c
Signed by: oat
GPG key ID: DD83A9617A252385
5 changed files with 21 additions and 17 deletions

View file

@ -18,7 +18,7 @@
const el = document.getElementById('doc-list');
for (const doc of data) {
let p = document.createElement('p');
p.innerText = `${doc.artist} - ${doc.title} by ${doc.credit}`;
p.innerHTML = `${doc.artist} - ${doc.title} by ${doc.credit} <a href="files/${doc.id}.zip">download</a>`;
el.insertAdjacentElement('beforeend', p);
let charts = document.createElement('ul');