diff --git a/js/stat.js b/js/stat.js index c4ccc89..050e4ef 100644 --- a/js/stat.js +++ b/js/stat.js @@ -27,4 +27,9 @@ async function display(data) { // Parses and displays data from API document.getElementById('meta').textContent = dat.meta || '0' document.getElementById('pis').textContent = dat.pis document.getElementById('ver-dbman').textContent = ver.dbmanager || 'Unknown' + document.getElementById('user_count').textContent = data.count.users || 'Unknown' + document.getElementById('reg_count').textContent = data.count.reg || '0' + document.getElementById('pis_count').textContent = data.count.pis || 'Unknown' + document.getElementById('corpus_count').textContent = data.count.corpus || 'Unknown' + document.getElementById('stations_count').textContent = data.count.stations || 'Unknown' } \ No newline at end of file diff --git a/stat.html b/stat.html index 148f449..7f0c3d6 100644 --- a/stat.html +++ b/stat.html @@ -50,6 +50,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +
DatabaseEntry Count
Users
Pending Registrations
PIS Codes
CORPUS Entries
Station Codes