From e091a548fb2693fc68992b465c78174bf756415b Mon Sep 17 00:00:00 2001 From: Degradin Date: Mon, 20 Jan 2025 23:51:48 +0300 Subject: [PATCH] Update index.html --- public/index.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/public/index.html b/public/index.html index 807a54d..587e3d5 100644 --- a/public/index.html +++ b/public/index.html @@ -235,15 +235,10 @@ } } - // Добавляем внизу кнопку для обновления данных - const container = document.querySelector(".container"); - const updateButton = document.createElement("button"); - updateButton.textContent = "🔄 Обновить данные" - updateButton.classList.add("button"); - updateButton.addEventListener("click", () => { + // Обновляем сайт каждые 5 секунд для получения актуальных данных + setInterval(() => { window.location.reload(); - }); - container.appendChild(updateButton); + }, 5000); \ No newline at end of file