Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
multiverseweb authored May 20, 2024
1 parent 28e6595 commit 8cc50bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function encryptText() {
const cycles = parseInt(document.getElementById("cycles").value) || 9; // Use default value of 1 if cycles is not a valid number

if (!text || isNaN(cycles) || cycles <= 0) {
alert("Please enter some text and a valid number of cycles.");
alert("Please enter some text to encrypt.");
return;
}

Expand All @@ -24,7 +24,7 @@ function decryptText() {
const cycles = parseInt(document.getElementById("cycles").value) || 9; // Use default value of 1 if cycles is not a valid number

if (!coded || isNaN(cycles) || cycles <= 0) {
alert("Please enter some text and a valid number of cycles.");
alert("Please enter some text to decrypt.");
return;
}

Expand Down

0 comments on commit 8cc50bf

Please sign in to comment.