move progress bar, cleanup device info

This commit is contained in:
Stewart Allen 2024-05-23 10:42:06 -04:00
commit 043398ef65
3 changed files with 19 additions and 17 deletions

View file

@ -302,15 +302,10 @@ gapp.register("kiri.main", [], (root, exports) => {
return proto.toLowerCase().indexOf("https") === 0;
}
function setProgress(value, msg) {
if (value) {
value = (value * 100).round(4);
UI.loading.display = 'block';
UI.progress.width = value+'%';
if (msg) UI.prostatus.innerHTML = msg;
} else {
UI.loading.display = 'none';
}
function setProgress(value = 0, msg) {
value = (value * 100).round(4);
UI.progress.width = value+'%';
if (msg) UI.prostatus.innerHTML = msg;
}
function bound(v,min,max) {