From 54d4929bba650aa5bd3aa386d4aac9fe8742af94 Mon Sep 17 00:00:00 2001 From: Angela Yu <8798027+angelabauer@users.noreply.github.com> Date: Tue, 23 Jul 2024 09:58:03 +0100 Subject: [PATCH] Update index.js --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 776364a..9150c83 100644 --- a/index.js +++ b/index.js @@ -85,13 +85,13 @@ const alphabet = [ $(document).ready(function () { $("#run-button").click(function () { $("#Content").empty(); + NewLine(logo, false); restart(); }); }); function restart() { inputValues = []; - NewLine(logo, false); NewLine("Type 'encode' to encrypt, type 'decode' to decrypt:", true); } @@ -111,7 +111,7 @@ $(document).on("keydown", function (e) { ), false ); - NewLine(inputPrompts[2], true); + // NewLine(inputPrompts[2], true); } if (inputValues.length > inputPrompts.length) { @@ -125,7 +125,7 @@ $(document).on("keydown", function (e) { } $(".console-carrot").remove(); - if (inputValues.length < 3) { + if (inputValues.length <= 3) { NewLine(inputPrompts[inputValues.length - 1], true); } }