add percent

This commit is contained in:
zakhy 2025-02-07 17:58:56 +07:00
parent 5bf7fa3ab7
commit c9077a0f06

View File

@ -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");