progress after install
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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() {
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user