-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (39 loc) · 1.89 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
<!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>Calculator</title>
</head>
<body class="bg-gradient-to-r from-blue-400 to-green-400 flex items-center justify-center pt-72">
<div class="max-h-screen w-96">
<div class="bg-gray-800 opacity-60 h-24 text-white col-span-4 flex items-end flex-col justify-around break-words break-all pr-3">
<div data-previous-operand class="text-sm opacity-40"></div>
<div data-current-operand class="text-lg"></div>
</div>
<div class="grid grid-cols-4 grid-row-4">
<button data-all-clear class="btn col-span-2">AC</button>
<button data-delete class="btn">DEL</button>
<button data-operation class="btn">/</button>
<button data-number class="btn">1</button>
<button data-number class="btn">2</button>
<button data-number class="btn">3</button>
<button data-operation class="btn">*</button>
<button data-number class="btn">4</button>
<button data-number class="btn">5</button>
<button data-number class="btn">6</button>
<button data-operation class="btn">+</button>
<button data-number class="btn">7</button>
<button data-number class="btn">8</button>
<button data-number class="btn">9</button>
<button data-operation class="btn">-</button>
<button data-number class="btn">.</button>
<button data-number class="btn">0</button>
<button data-equal class=" col-span-2 btn">=</button>
</div>
</div>
<script src="./main.js"></script>
</body>
</html>