From c20dbabc981207ef0de51f10572a276e91962f1c Mon Sep 17 00:00:00 2001 From: Degradin Date: Mon, 20 Jan 2025 23:45:25 +0300 Subject: [PATCH] Update index.html --- public/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 1f50d28..c840ea3 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@
+
Последнее обновление:
📜 Меню игрока
@@ -201,6 +202,10 @@ progressBar.classList.add("progress-bar"); progressBar.innerHTML = `
`; warehouseDiv.appendChild(progressBar); + + // Время последнего обновления + const lastUpdate = new Date(); + document.getElementById("last-update").textContent = lastUpdate.toLocaleString(); }) .catch(err => { console.error("Ошибка загрузки данных:", err); @@ -242,7 +247,7 @@ // Обновляем страницу каждые 30 секунд setInterval(() => { location.reload(); - }, 30000); + }, 5000); \ No newline at end of file