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