mirror of
https://github.com/Coldsmiles/infstarweb.git
synced 2026-04-23 02:30:41 +08:00
feat: Add last updated timestamp to stats page and style adjustments
This commit is contained in:
@@ -20,6 +20,11 @@ async function fetchStats() {
|
||||
const data = await response.json();
|
||||
allPlayers = data.players;
|
||||
|
||||
// Show update time
|
||||
if (data.updated_at) {
|
||||
document.getElementById('stats-updated-at').textContent = '数据更新于 ' + data.updated_at;
|
||||
}
|
||||
|
||||
// Hide loading
|
||||
document.getElementById('loading-indicator').style.display = 'none';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user