Add server mode to stats

This commit is contained in:
Fred Boniface 2023-03-10 22:12:03 +00:00
parent b09c97e911
commit d328236f16
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ async function get() {
async function display(data) { async function display(data) {
document.getElementById('server_host').textContent = data.host; document.getElementById('server_host').textContent = data.host;
document.getElementById('server_mode').textContent = data.mode || "Unknown";
let dat = data.dat[0] let dat = data.dat[0]
console.log(JSON.stringify(dat)) console.log(JSON.stringify(dat))
document.getElementById('time').textContent = await convertUnixLocal(dat.since); document.getElementById('time').textContent = await convertUnixLocal(dat.since);

View File

@ -9,6 +9,7 @@
<body style="text-align:center"> <body style="text-align:center">
<h1>OwlBoard Server Stats</h1> <h1>OwlBoard Server Stats</h1>
<h2>Data from: <span id="server_host"></span></h2> <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> <p>Counters Reset - <span id="time"></span></p>
<table style="margin:auto;text-align:center;"> <table style="margin:auto;text-align:center;">
<tr> <tr>