Skip to content

Commit

Permalink
Test: Saving CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
fdagher1 committed Aug 4, 2024
1 parent 205b18e commit 764dc14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helloworld.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<input id="input-date" type="date" class="darkclass">
</div>
<div>
<input id="input-location" type="text" class="darkclass">
<input id="input-location" type="text" class="darkclass" onchange="eventInputDateChanged(event)">
</div>
<div>
<textarea id="input-events" rows="8" class="darkclass"></textarea>
Expand Down
3 changes: 3 additions & 0 deletions js/1-event_handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,6 @@ function eventCheckboxSelected(event) {
event.target.parentElement.parentElement.parentElement.firstElementChild.innerText = textToSetInDropdown;
}

function eventInputDateChanged(event) {
console.log();
}
2 changes: 1 addition & 1 deletion js/2-data_retrieval.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function saveContentToFile() {
var a = document.createElement("a");
var url = URL.createObjectURL(file);
a.href = url;
a.download = "helloworld";
a.download = "helloworld.csv";
document.body.appendChild(a);
a.click();
setTimeout(function () {
Expand Down

0 comments on commit 764dc14

Please sign in to comment.