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
|
// Otherwise parse the data and output it as a table
|
||||||
dataElement.innerHTML = `<table>
|
dataElement.innerHTML = `<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>Time/th>
|
||||||
|
<th>Over</th>
|
||||||
|
<th>Ball</th>
|
||||||
<th>Event</th>
|
<th>Event</th>
|
||||||
|
<th>Metadata</th>
|
||||||
</tr>`+data.trim().split("\n").map(l=>{
|
</tr>`+data.trim().split("\n").map(l=>{
|
||||||
l = l.split(",");
|
l = l.split(",");
|
||||||
return `<tr>
|
return `<tr>
|
||||||
|
<td>${(new Date(l[0]*1000)).toLocaleString()}</td>
|
||||||
<td>${l[0]}</td>
|
<td>${l1]}</td>
|
||||||
|
<td>${l2}</td>
|
||||||
|
<td>${l3]}</td>
|
||||||
|
<td>${l4]}</td>
|
||||||
</tr>`
|
</tr>`
|
||||||
}).join("\n")+"</table>";
|
}).join("\n")+"</table>";
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue