Update interface.html

Added heartrate
master
Andy Smy 2025-05-11 13:39:19 +01:00 committed by GitHub
parent 0cec8e501a
commit d1acd7328a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,7 @@ function getData() {
<th>Event</th>
<th>Metadata</th>
<th>Steps</th>
<th>Heart Rate</th>
</tr>`+data.trim().split("\n").map(l=>{
l = l.split(",");
return `<tr>
@ -44,6 +45,7 @@ function getData() {
<td>${l[3]}</td>
<td>${l[4]}</td>
<td>${l[5]}</td>
<td>${l[6]}</td>
</tr>`
}).join("\n")+"</table>";
});
@ -51,6 +53,7 @@ function getData() {
// You can call a utility function to save the data
document.getElementById("btnSave").addEventListener("click", function() {
// TODO column headings in output
Util.saveCSV("matchdata", csvData);
});
// Or you can also delete the file