diff --git a/public/index.html b/public/index.html index a9d09dd..e7190fe 100644 --- a/public/index.html +++ b/public/index.html @@ -1,14 +1,14 @@ - - - - Index - + + + + Index + - -

Hi

- + +

Hi

+ \ No newline at end of file diff --git a/public/list.html b/public/list.html index f9f9604..258bb27 100644 --- a/public/list.html +++ b/public/list.html @@ -1,37 +1,37 @@ - - - - list - + + + + list + - -
-
+ +
+
- - + - + let charts = document.createElement('ul'); + for (const chart of doc.charts) { + let l = document.createElement('li'); + l.innerText = `${chart.difficulty} ${chart.rating} - ${chart.name}\n` + + `${chart.steps} steps, ${chart.mines} mines, ${chart.jumps} jumps, ${chart.hands} hands, ${chart.holds} holds, ${chart.rolls} rolls` + charts.insertAdjacentElement('beforeend', l); + } + el.insertAdjacentElement('beforeend', charts); + } + }); + + \ No newline at end of file diff --git a/public/upload.html b/public/upload.html index 850b5b3..13b5845 100644 --- a/public/upload.html +++ b/public/upload.html @@ -19,7 +19,7 @@ const file = document.getElementById('file'); if (file.files.length) { console.log(file.files[0]); - + const formData = new FormData(); formData.append('file', file.files[0]); try {