-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (56 loc) · 1.86 KB
/
index.html
File metadata and controls
56 lines (56 loc) · 1.86 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
50
51
52
53
54
55
56
<!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" />
<title>DOM - Stop Watch</title>
</head>
<body class="bg-yellow-50">
<header>
<h1 class="mt-10 text-4xl sm:text-5xl font-bold text-center">
Vanilla DOM Stop-Watch ⏱
</h1>
</header>
<main class="mt-24 text-center">
<div
class="mx-5 items-center justify-around gap-5 grid-cols-1 sm:grid-cols-3 grid display"
>
<h1 class="py-3 sm:py-5 bg-gray-100 text-4xl sm:text-6xl font-semibold">
<span id="display-min">0</span>min
</h1>
<h1 class="py-3 sm:py-5 bg-gray-100 text-4xl sm:text-6xl font-semibold">
<span id="display-sec">0</span>sec
</h1>
<h1 class="py-3 sm:py-5 bg-gray-100 text-4xl sm:text-6xl font-semibold">
<span id="display-ms">0</span>ms
</h1>
</div>
<div class="mx-3 grid grid-cols-3 gap-2">
<button
id="start-btn"
class="mt-10 md:mx-20 bg-lime-400 py-2 px-4 rounded-full text-1xl sm:text-2xl hover:bg-lime-200"
>
Start
</button>
<button
id="pause-btn"
class="mt-10 md:mx-20 bg-yellow-300 py-2 px-4 rounded-full text-1xl sm:text-2xl hover:bg-yellow-200"
>
Pause
</button>
<button
id="reset-btn"
class="mt-10 md:mx-20 bg-red-400 py-2 px-4 rounded-full text-1xl sm:text-2xl hover:bg-red-300 text-white"
>
Reset
</button>
</div>
</main>
<footer class="mt-20 mb-5">
<p class="text-center text-red-200 font-bold">Practice DOM Project</p>
</footer>
<script src="./tailwind-3-0-18.js"></script>
<script src="./stop-watch.js"></script>
</body>
</html>