feat: Add last updated timestamp to stats page and style adjustments

This commit is contained in:
zhangyuheng
2026-03-10 11:10:10 +08:00
parent 5265bcc019
commit 092935fd60
4 changed files with 15 additions and 0 deletions

View File

@@ -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';