-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (44 loc) · 2.08 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
46
47
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Sean's Calculator</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/images/calculator-icon.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<section class="container flex h-center">
<!-- Calcuator body -->
<section id="calculator-body" class="container">
<!-- Answer screen -->
<section id="answer-screen">
<p id="display-value">0</p>
</section>
<!-- Key pad -->
<section id="keypad" class="flex flex-wrap">
<button class="btn num-btn">7</button>
<button class="btn num-btn">8</button>
<button id="btn-1" class="btn num-btn">9</button>
<button id="subtract-btn" class="btn operator-btn">-</button>
<button class="btn num-btn">4</button>
<button class="btn num-btn">5</button>
<button class="btn num-btn">6</button>
<button id="add-btn" class="btn operator-btn">+</button>
<button class="btn num-btn">1</button>
<button class="btn num-btn">2</button>
<button class="btn num-btn">3</button>
<button id="divide-btn" class="btn operator-btn">/</button>
<button class="btn num-btn">0</button>
<button id="decimal-btn" class="btn num-btn">.</button>
<button id="clear-btn" class="btn">AC</button>
<button id="multiply-btn" class="btn operator-btn">*</button>
<button id="equals-btn" class="btn operator-btn">=</button>
</section>
</section>
</section>
<script src="script.js" async defer></script>
</body>
</html>