Update index.html
This commit is contained in:
parent
1a991bde4b
commit
734e68d9ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user