mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawiono generowanie progress baru
This commit is contained in:
@@ -126,7 +126,7 @@ export default defineComponent({
|
|||||||
let progressBarString = `<span style="color: white"> ${percentage}% </span> `;
|
let progressBarString = `<span style="color: white"> ${percentage}% </span> `;
|
||||||
|
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
progressBarString += `<span style="color: ${i < Math.floor(percentage / 20) ? 'springgreen' : 'gray'}">▉</span>`;
|
progressBarString += `<span style="color: ${i < Math.round(percentage / 20) ? 'springgreen' : 'gray'}">▉</span>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return progressBarString;
|
return progressBarString;
|
||||||
|
|||||||
Reference in New Issue
Block a user