Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
STORTNY authored Apr 5, 2024
1 parent 95edbb8 commit 80fc8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixadoro</title>
<link rel="stylesheet" type="text/css" href="csspom.css">




Expand Down Expand Up @@ -107,7 +107,7 @@ <h1>Welcome to Pixodoro <3 ! </h1>
function startPomodoro() {
var studytime = parseInt(document.getElementById('studytime').value);
var resttime = parseInt(document.getElementById('resttime').value);
var repeat = parseInt(document.getElementById('repeat').value); // Update repeat globally
repeat = parseInt(document.getElementById('repeat').value);

if (isNaN(studytime) || isNaN(resttime) || isNaN(repeat) || studytime < 0 || resttime < 0 || repeat < 0 || isNaN(repeat)) {
alert("Please enter valid numbers for study and rest times, and repeat count.");
Expand Down

0 comments on commit 80fc8b7

Please sign in to comment.