add percent
This commit is contained in:
parent
5bf7fa3ab7
commit
c9077a0f06
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user