mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 14:18:12 +02:00
added fixed point to progress percentage
This commit is contained in:
@ -109,7 +109,7 @@ document.getElementById("upload-btn").onclick = async () => {
|
|||||||
|
|
||||||
function setProgress(percent) {
|
function setProgress(percent) {
|
||||||
progressBar.value = percent;
|
progressBar.value = percent;
|
||||||
progressText.textContent = `${percent}%`;
|
progressText.textContent = `${percent.toFixed(0)}%`;
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.on("progress", (data) => {
|
socket.on("progress", (data) => {
|
||||||
|
Reference in New Issue
Block a user