-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (28 loc) · 1.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Counter</title>
<script src="https://cdn.tailwindcss.com"></script>
<!-- <script src="script.js"></script> -->
</head>
<body>
<div class="w-[100vw] h-[100vh] flex flex-col items-center justify-center bg-sky-300 gap-10">
<div class="font-medium text-[20px]">INCREMENT AND Decerement</div>
<div class="flex flex-row bg-white text-[25px] rounded-sm gap-12 p-3 px-5">
<button onclick="dec()" class="border-r-2 ">
<i class="fa-solid fa-minus"></i>
</button>
<div id="counter">
0
</div>
<button onclick="inc()" class="border-l-2">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
<script src="script.js"></script>
<script src="https://kit.fontawesome.com/58a810656e.js" crossorigin="anonymous"></script>
</body>
</html>