Update index.html

This commit is contained in:
Degradin 2025-01-21 00:03:19 +03:00
parent 1a991bde4b
commit 734e68d9ce

View File

@ -139,8 +139,10 @@
const hpProgress = (user.hp / user.maxHp) * 100; const hpProgress = (user.hp / user.maxHp) * 100;
const staminaProgress = (user.stamina / user.maxStamina) * 100; const staminaProgress = (user.stamina / user.maxStamina) * 100;
document.getElementById("hp-bar").style.width = `${hpProgress}%`; setInterval(() => {
document.getElementById("stamina-bar").style.width = `${staminaProgress}%`; document.getElementById("hp-bar").style.width = `${hpProgress}%`;
document.getElementById("stamina-bar").style.width = `${staminaProgress}%`;
}, 2000);
// Характеристики FIRE // Характеристики FIRE
document.getElementById("force").textContent = user.force; document.getElementById("force").textContent = user.force;