From 37644b7ccdfbcbda56c9ff5e9eb7f0ac59bef6a6 Mon Sep 17 00:00:00 2001 From: Adil Sadqi <42699429+AdilSadqi@users.noreply.github.com> Date: Thu, 2 Mar 2023 00:33:48 +0100 Subject: [PATCH] Update commands.js.download --- index_files/commands.js.download | 52 +++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/index_files/commands.js.download b/index_files/commands.js.download index b35f491..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 = [ "
",