Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
smellysox1 authored Jul 10, 2024
1 parent 5eb0655 commit 87c84c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions create/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>Create</h1>
<br>
<form method="post" enctype=".csv" accept=".csv">
<label for="file">Upload a csv</label>
<input id="file" name="file" type="file" />
<input id="file" class = "form-control file_input" name="file" type="file" onchange="loadup(null, null)">
<button>Upload</button>
</form>

Expand Down Expand Up @@ -229,7 +229,7 @@ <h5>Useful links</h5>
const jsonData = generateJSONData();
const blob = new Blob([jsonData], { type: "application/json" });
const url = URL.createObjectURL(blob);

const a = document.createElement('a');
a.href = url;
a.download = title.value + ".json";
Expand All @@ -245,7 +245,9 @@ <h5>Useful links</h5>
}
else { title.classList.add('empty'); }
});

function loadup(){

});
function generateJSONData() {
const jsonData = [];

Expand Down

0 comments on commit 87c84c4

Please sign in to comment.