Update index.html
This commit is contained in:
parent
1a991bde4b
commit
734e68d9ce
@ -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;
|
||||||
|
|
||||||
|
setInterval(() => {
|
||||||
document.getElementById("hp-bar").style.width = `${hpProgress}%`;
|
document.getElementById("hp-bar").style.width = `${hpProgress}%`;
|
||||||
document.getElementById("stamina-bar").style.width = `${staminaProgress}%`;
|
document.getElementById("stamina-bar").style.width = `${staminaProgress}%`;
|
||||||
|
}, 2000);
|
||||||
|
|
||||||
// Характеристики FIRE
|
// Характеристики FIRE
|
||||||
document.getElementById("force").textContent = user.force;
|
document.getElementById("force").textContent = user.force;
|
||||||
|
Loading…
Reference in New Issue
Block a user