-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.38 KB
/
Copy pathindex.html
File metadata and controls
40 lines (40 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>STOP WATCH</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="main-container">
<div class="stopwatch-container">
<div class="heading">
<h1>STOP WATCH</h1>
</div>
<div class="circle">
<div class="timer" id="timer">00:00:00:00</div>
<button class="btn" id="Start" onclick="startTimer()">Start</button>
<button class="btn" id="Pause" onclick="pauseTimer()">Pause</button>
<button class="btn" id="Reset" onclick="resetTimer()">Reset</button>
<button class="btn" id="Lap" onclick="recordLap()">Lap</button>
</div>
</div>
<div class="lap-container">
<h2>Lap Times</h2>
<table id="lapTable">
<thead>
<tr>
<th>#</th>
<th>Time</th>
</tr>
</thead>
<tbody id="lapTableBody">
<!-- Lap times will be dynamically added here -->
</tbody>
</table>
</div>
</div>
<script src="index.js"></script>
</body>
</html>