Update stats display
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
/* All Page Init */
|
||||
const version = '2023.5.3'
|
||||
const version = '2023.5.4'
|
||||
|
||||
/* Feature Detectors */
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ init()
|
||||
|
||||
async function init() { // The page init function
|
||||
versionDisplay()
|
||||
display(await get())
|
||||
await display(await get())
|
||||
hideLoading()
|
||||
}
|
||||
|
||||
async function get() { // Fetch data from API
|
||||
@@ -20,7 +21,7 @@ async function display(data) { // Parses and displays data from API
|
||||
document.getElementById('time').textContent = await convertUnixLocal(dat.since)
|
||||
document.getElementById('ldbws').textContent = dat.ldbws || '0'
|
||||
document.getElementById('ldbsvws').textContent = dat.ldbsvws || '0'
|
||||
document.getElementById('apicorpus').textContent = dat.corpus_api || '0'
|
||||
document.getElementById('corpus_api').textContent = dat.corpus_api || '0'
|
||||
document.getElementById('corpus').textContent = dat.corpus || '0'
|
||||
document.getElementById('stations').textContent = dat.stations || '0'
|
||||
document.getElementById('users').textContent = dat.user || '0'
|
||||
Reference in New Issue
Block a user