Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
angelabauer authored Jul 23, 2024
1 parent 0f33d9d commit 54d4929
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -111,7 +111,7 @@ $(document).on("keydown", function (e) {
),
false
);
NewLine(inputPrompts[2], true);
// NewLine(inputPrompts[2], true);
}

if (inputValues.length > inputPrompts.length) {
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 54d4929

Please sign in to comment.