-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 loc) · 1.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Digital Clock</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<form>
<div class="container1">
<!-- Display current time -->
<div class="dispClock">
<div id="time"></div>
</div>
</div>
<div class="container2">
<!-- Display number control for user input -->
<div class="decrement">
<label for="decrement">Decrement by every second</label>
<input type="number"
min="1"
max="60"
step="1"
value={DECREMENT_BY_SECS}
></input>
</div>
<div class="buttons">
<button onclick="ReverseClock(document.getElementById('DECREMENT_BY_SECS').value)">Submit</button>
<input type ="reset" value="Reset">
</div>
</div>
<script src="index.js"></script>
</form>
</body>
</html>