From c9077a0f068c22f2aeee3c4bf6cb22c37d83574e Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Fri, 7 Feb 2025 17:58:56 +0700 Subject: [PATCH] add percent --- apps/main/templates/main_index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index 4072f34..b4be444 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -887,7 +887,7 @@ for (const item in data) { const elem = document.querySelector(`#${item}`); if (elem) { // Проверяем, что элемент существует - elem.textContent = data[item]; + elem.textContent = data[item] + "%"; // Удаляем все возможные классы перед добавлением нового elem.classList.remove("bg-success", "bg-warning", "bg-orange", "bg-danger");