-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (48 loc) · 2.21 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
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<title>Calculator</title>
</head>
<body>
<div class="heading">The Simple Calculator</div>
<div class="body">
<div id="message-box">Enter an expression.</div>
<div id="calculator">
<div id="display"></div>
<div class="container">
<button id="clear" class="btn" data-type="misc">clear</button>
<button id="backspace" class="btn" data-type="misc">DEL</button>
<button id="divide" class="btn" data-type="operator">÷</button>
</div>
<div class="container">
<button id="seven" class="btn" data-type="digit">7</button>
<button id="eight" class="btn" data-type="digit">8</button>
<button id="nine" class="btn" data-type="digit">9</button>
<button id="multiply" class="btn" data-type="operator">×</button>
</div>
<div class="container">
<button id="four" class="btn" data-type="digit">4</button>
<button id="five" class="btn" data-type="digit">5</button>
<button id="six" class="btn" data-type="digit">6</button>
<button id="subtract" class="btn" data-type="operator">−</button>
</div>
<div class="container">
<button id="one" class="btn" data-type="digit">1</button>
<button id="two" class="btn" data-type="digit">2</button>
<button id="three" class="btn" data-type="digit">3</button>
<button id="add" class="btn" data-type="operator">+</button>
</div>
<div class="container">
<button id="negate" class="btn" data-type="digit">-</button>
<button id="evaluate" class="btn" data-type="misc">=</button>
<button id="zero" class="btn" data-type="digit">0</button>
<button id="point" class="btn" data-type="digit">.</button>
</div>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>