-
🗄️ Склад
+
🗄️ Склад
@@ -328,8 +356,8 @@ body {
document.getElementById("telegramID").textContent = user.telegramID;
// Профиль
- document.getElementById("money").textContent = user.money;
- document.getElementById("dirtymoney").textContent = user.dirtymoney;
+ document.getElementById("money").textContent = "₽" + user.money;
+ document.getElementById("dirtymoney").textContent = "Ð" + user.dirtymoney;
// Устанавливаем картинку профиля
const profileImg = document.getElementById("profile-img");
@@ -358,7 +386,6 @@ body {
document.getElementById("hp-bar").style.width = `${hpProgress}%`;
- document.getElementById("hp-bar").style.backgroundColor = `red`;
document.getElementById("hp-bar").textContent = `❤`;
document.getElementById("stamina-bar").style.width = `${staminaProgress}%`;
document.getElementById("stamina-bar").style.backgroundColor = `green`;
@@ -373,7 +400,7 @@ body {
// Организация
document.getElementById("business-name").textContent = business.name;
- document.getElementById("business-balance").textContent = business.balance;
+ document.getElementById("business-balance").textContent = "₽" + business.balance;
document.getElementById("business-materials").textContent = business.materials;
// Предприятия
@@ -382,18 +409,18 @@ body {
enterprisesDiv.innerHTML = "";
enterprises.forEach(ent => {
const div = document.createElement("div");
- div.classList.add("enterprise");
+ div.classList.add("section");
div.innerHTML = `
${ent.name}
Тип ресурса: ${getResourceIcon(ent.resourceType)} ${getResourceName(ent.resourceType)}
Уровень: ${ent.level}
Эффективность: ${ent.efficiency}/час
- Заполненность склада: ${ent.currentResources}/${ent.warehouseCapacity}
+ Заполненность склада: ${ent.currentResources}/${ent.warehouseCapacity}
`;
// Добавляем прогрессбар заполненности склада
const progress = (ent.currentResources / ent.warehouseCapacity) * 100;
const progressBar = document.createElement("div");
- progressBar.innerHTML = `
`;
+ progressBar.innerHTML = `
`;
div.appendChild(progressBar);
enterprisesDiv.appendChild(div);
});
@@ -412,8 +439,7 @@ body {
const warehouseCapacity = warehouse.wood + warehouse.coal + warehouse.oil + warehouse.metall + warehouse.gold + warehouse.diamond;
const progress = (warehouseCapacity / warehouse.capacity) * 100;
const progressBar = document.createElement("div");
- progressBar.classList.add("progress-bar");
- progressBar.innerHTML = `
`;
+ progressBar.innerHTML = `
`;
warehouseDiv.appendChild(progressBar);
})
.catch(err => {
diff --git a/public/scoreboard.html b/public/scoreboard.html
index f4c174f..3d5352b 100644
--- a/public/scoreboard.html
+++ b/public/scoreboard.html
@@ -5,12 +5,12 @@
Таблица лидеров
-
+