From 24112d01966f41b1d70601828b26dc80cb15dca9 Mon Sep 17 00:00:00 2001
From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com>
Date: Thu, 2 Mar 2023 00:31:12 +0100
Subject: [PATCH] Update commands.js.download
---
index_files/commands.js.download | 54 +++++++++++++++++++++-----------
1 file changed, 35 insertions(+), 19 deletions(-)
diff --git a/index_files/commands.js.download b/index_files/commands.js.download
index 1e8986b..5915425 100644
--- a/index_files/commands.js.download
+++ b/index_files/commands.js.download
@@ -44,24 +44,40 @@ weather = [
update = [
- "
",
- "Checking...",
- "Downloading Update...",
- "==========>10%",
- "====================>20%",
- "==============================>30%",
- "========================================>40%",
- "==================================================>50%",
- "============================================================>60%",
- "======================================================================>70%",
- "================================================================================>80%",
- "==========================================================================================90%",
- "====================================================================================================>100%",
- "Update Terminal...",
- "Finishing Installation...",
- "Done",
- "
"
-];
+ "
",
+ "Checking for updates...",
+ "Downloading update...",
+ '==========> 10%',
+ '====================> 20%',
+ '==============================> 30%',
+ '========================================> 40%',
+ '==================================================> 50%',
+ '============================================================> 60%',
+ '======================================================================> 70%',
+ '================================================================================> 80%',
+ '==========================================================================================> 90%',
+ '====================================================================================================> 100%',
+ "Updating terminal...",
+ "Finishing installation...",
+ "Update complete!",
+ "
"
+ ];
+
+ 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 = [
"
",
@@ -150,5 +166,5 @@ banner = [
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",
'Welcome to my interactive web terminal.',
- "For a list of available commands, type 'help' Or Type 'website' For regulare webpage. ",
+ "For a list of available commands, type 'help' Or type 'website' For regulare webpage. ",
];