Update index.html

This commit is contained in:
Degradin 2025-01-20 23:51:48 +03:00
parent 4e7e710bf5
commit e091a548fb

View File

@ -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);
</script>
</body>
</html>