Reduce service restart speed + UI tweaks

This commit is contained in:
billz
2023-10-21 15:43:49 +01:00
parent 43d4bb2a2f
commit 45dc1142cb
3 changed files with 8 additions and 7 deletions

View File

@@ -274,15 +274,16 @@ function loadChannel() {
}
$('#hostapdModal').on('shown.bs.modal', function (e) {
var seconds = 9;
var seconds = 3;
var pct = 0;
var countDown = setInterval(function(){
if(seconds <= 0){
clearInterval(countDown);
}
var pct = Math.floor(100-(seconds*100/9));
document.getElementsByClassName('progress-bar').item(0).setAttribute('style','width:'+Number(pct)+'%');
seconds --;
}, 1000);
pct = Math.floor(100-(seconds*100/4));
}, 500);
});
$('#configureClientModal').on('shown.bs.modal', function (e) {