-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (40 loc) · 1.45 KB
/
index.html
File metadata and controls
49 lines (40 loc) · 1.45 KB
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 name="viewport" content="width=device-width, initial-scale=1.0">
<title>Digital Clock | Stopwatch | Timer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Digital Clock / Stopwatch / Timer</h1>
<div class="tabs">
<button class="tab-btn active" data-tab="clock">Clock</button>
<button class="tab-btn" data-tab="stopwatch">Stopwatch</button>
<button class="tab-btn" data-tab="timer">Timer</button>
</div>
<!-- Digital Clock -->
<div id="clock" class="tab-content active">
<div class="display" id="clock-display"></div>
</div>
<!-- Stopwatch -->
<div id="stopwatch" class="tab-content">
<div class="display" id="stopwatch-display">00:00:00</div>
<div class="btn-group">
<button id="startSW">Start</button>
<button id="stopSW">Stop</button>
<button id="resetSW">Reset</button>
</div>
</div>
<!-- Timer -->
<div id="timer" class="tab-content">
<input type="number" id="minutes" placeholder="Enter minutes">
<div class="display" id="timer-display">00:00</div>
<div class="btn-group">
<button id="startTimer">Start</button>
<button id="resetTimer">Reset</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>