progress after install
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-08-04 14:57:17 +00:00
parent a1aa1c0d14
commit f925665d23
3 changed files with 5 additions and 6 deletions

View File

@@ -11,12 +11,11 @@ function updateProgress(percentage) {
function setProgress(percentage) { function setProgress(percentage) {
clearInterval(progressInterval); clearInterval(progressInterval);
updateProgress(percentage); updateProgress(percentage);
startProgress(); startProgress(60000);
} }
function startProgress() { function startProgress(duration) {
clearInterval(progressInterval); clearInterval(progressInterval);
const duration = 60000; // 60 seconds
const startTime = Date.now() - (currentProgress / 100) * duration; const startTime = Date.now() - (currentProgress / 100) * duration;
progressInterval = setInterval(() => { progressInterval = setInterval(() => {
@@ -65,7 +64,7 @@ function redirectToInstall() {
function redirectToManage() { function redirectToManage() {
setProgress(100); setProgress(100);
// window.location.href = 'manage.html'; window.location.href = 'manage.html';
} }
function start_system() { function start_system() {

View File

@@ -105,7 +105,7 @@ let install = 1;
// Initialize // Initialize
updateProgress(0); updateProgress(0);
startProgress(); startProgress(90000);// 90 seconds
check_interface(); check_interface();
counter=0; counter=0;

View File

@@ -45,7 +45,7 @@ let install = 0; // scan
// Initialize // Initialize
updateProgress(0); updateProgress(0);
startProgress(); startProgress(30000);// 30 seconds
check_interface(); check_interface();
</script> </script>