Update index.html
This commit is contained in:
parent
4e7e710bf5
commit
e091a548fb
@ -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>
|
Loading…
Reference in New Issue
Block a user