Update interface.html structured data
parent
367f2ad824
commit
69063d1ec5
|
|
@ -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>";
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue