Update interface.html structured data

master
Andy Smy 2025-04-17 16:15:17 +01:00 committed by GitHub
parent 367f2ad824
commit 69063d1ec5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 4 deletions

View File

@ -29,14 +29,19 @@ function getData() {
// Otherwise parse the data and output it as a table
dataElement.innerHTML = `<table>
<tr>
<th>Time/th>
<th>Over</th>
<th>Ball</th>
<th>Event</th>
<th>Metadata</th>
</tr>`+data.trim().split("\n").map(l=>{
l = l.split(",");
return `<tr>
<td>${l[0]}</td>
<td>${(new Date(l[0]*1000)).toLocaleString()}</td>
<td>${l1]}</td>
<td>${l2}</td>
<td>${l3]}</td>
<td>${l4]}</td>
</tr>`
}).join("\n")+"</table>";
});