Update interface.html

master
Andy Smy 2025-04-17 15:36:42 +01:00 committed by GitHub
parent 23e646edf0
commit 5054d24fb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 10 deletions

View File

@ -29,19 +29,14 @@ function getData() {
// Otherwise parse the data and output it as a table
dataElement.innerHTML = `<table>
<tr>
<th>T</th>
<th>L</th>
<th>L</th>
<th>A</th>
<th>T</th>
<th>Event</th>
</tr>`+data.trim().split("\n").map(l=>{
l = l.split(",");
return `<tr>
<td>${(new Date(l[0]*1000)).toLocaleString()}</td>
<td>${l[1]}</td>
<td>${l[2]}</td>
<td>${l[3]}</td>
<td>${l[4]}</td>
<td>${l[0]}</td>
</tr>`
}).join("\n")+"</table>";
});