Skip to content

Commit 584bd24

Browse files
committed
Added min='1' to prevent negative input
1 parent eb5bdbd commit 584bd24

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Sprint-3/alarmclock/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
<title>Alarm clock app</title>
88
</head>
99
<body>
10-
<div class="centre">
11-
<h1 id="timeRemaining">Time Remaining: 00:00</h1>
12-
<label for="alarmSet">Set time to:</label>
13-
<input id="alarmSet" type="number" />
10+
<form>
11+
<div class="centre">
12+
<h1 id="timeRemaining">Time Remaining: 00:00</h1>
13+
<label for="alarmSet">Set time to:</label>
14+
<input id="alarmSet" type="number" min="1" />
1415

15-
<button id="set" type="button">Set Alarm</button>
16-
<button id="stop" type="button">Stop Alarm</button>
17-
</div>
16+
<button id="set" type="button">Set Alarm</button>
17+
<button id="stop" type="button">Stop Alarm</button>
18+
</div>
19+
</form>
1820
<script src="alarmclock.js"></script>
1921
</body>
2022
</html>

0 commit comments

Comments
 (0)