Add server mode to stats
This commit is contained in:
parent
b09c97e911
commit
d328236f16
@ -12,6 +12,7 @@ async function get() {
|
||||
|
||||
async function display(data) {
|
||||
document.getElementById('server_host').textContent = data.host;
|
||||
document.getElementById('server_mode').textContent = data.mode || "Unknown";
|
||||
let dat = data.dat[0]
|
||||
console.log(JSON.stringify(dat))
|
||||
document.getElementById('time').textContent = await convertUnixLocal(dat.since);
|
||||
|
@ -9,6 +9,7 @@
|
||||
<body style="text-align:center">
|
||||
<h1>OwlBoard Server Stats</h1>
|
||||
<h2>Data from: <span id="server_host"></span></h2>
|
||||
<p>Server Mode: <span id="server_mode"></span></p>
|
||||
<p>Counters Reset - <span id="time"></span></p>
|
||||
<table style="margin:auto;text-align:center;">
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user