Update commands.js.download

This commit is contained in:
Adil Sadqi 2023-03-02 00:33:48 +01:00 committed by GitHub
parent c8233a8ee4
commit 37644b7ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 18 deletions

View File

@ -44,24 +44,40 @@ weather = [
update = [
"<br>",
"Checking...",
"Downloading Update...",
"==========>10%",
"====================>20%",
"==============================>30%",
"========================================>40%",
"==================================================>50%",
"============================================================>60%",
"======================================================================>70%",
"================================================================================>80%",
"==========================================================================================90%",
"====================================================================================================>100%",
"Update Terminal...",
"Finishing Installation...",
"Done",
"<br>"
];
"<br>",
"Checking for updates...",
"Downloading update...",
'<span style="color:#1976d2">==========> 10%</span>',
'<span style="color:#1976d2">====================> 20%</span>',
'<span style="color:#1976d2">==============================> 30%</span>',
'<span style="color:#1976d2">========================================> 40%</span>',
'<span style="color:#1976d2">==================================================> 50%</span>',
'<span style="color:#1976d2">============================================================> 60%</span>',
'<span style="color:#1976d2">======================================================================> 70%</span>',
'<span style="color:#1976d2">================================================================================> 80%</span>',
'<span style="color:#1976d2">==========================================================================================> 90%</span>',
'<span style="color:#1976d2">====================================================================================================> 100%</span>',
"Updating terminal...",
"Finishing installation...",
"Update complete!",
"<br>"
];
const updateElement = document.getElementById("update");
let i = 0;
const intervalId = setInterval(() => {
if (i >= update.length) {
clearInterval(intervalId);
} else {
updateElement.innerHTML += update[i];
i++;
}
}, 1000);
whoami = [
"<br>",