-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (39 loc) · 1.45 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Timer App</title>
</head>
<body>
<div class="container">
<h1>Timer App</h1>
<div class="input-group">
<div class="hour-input">
<label for="hours">Hours </label>
<input id="hours" type="number" placeholder="00" min="0" max="23">
</div>
<div class="minutes-input">
<label for="minutes">Minutes </label>
<input id="minutes" type="number" placeholder="00" min="0" max="59">
</div>
<div class="seconds-input">
<label for="seconds">Seconds </label>
<input id="seconds" type="number" placeholder="00" min="0" max="59">
</div>
</div>
<audio id="audio" src="./sound.wav"></audio>
<div class="btn-group">
<button id="start" onclick="startTimer()">Start</button>
<button id="stop" onclick="stopTimer()">Stop</button>
<button id="reset" onclick="resetTimer()">Reset</button>
</div>
<div id="dialog" class="dialog">
<h2>Time's up!</h2>
<button onclick="closeDialog()">OK</button>
</div>
<script src="index.js"></script>
</body>
</html>