-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (45 loc) · 2.12 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>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<h1>Calculator</h1>
<div id="calc-body">
<div id="display">
<p id="output"></p>
</div>
<div id="buttons">
<div id="top-row">
<button type="button" class="number-button" id="1">1</button>
<button type="button" class="number-button" id="2">2</button>
<button type="button" class="number-button" id="3">3</button>
<button type="button" class="operator-button" id="+">+</button>
</div>
<div id="middle-top">
<button type="button" class="number-button" id="4">4</button>
<button type="button" class="number-button" id="5">5</button>
<button type="button" class="number-button" id="6">6</button>
<button type="button" class="operator-button" id="-">-</button>
</div>
<div id="middle-bottom">
<button type="button" class="number-button" id="7">7</button>
<button type="button" class="number-button" id="8">8</button>
<button type="button" class="number-button" id="9">9</button>
<button type="button" class="operator-button" id="x">x</button>
</div>
<div id="bottom-row">
<button type="button" class="cancel-button" id="c">c</button>
<button type="button" class="number-button" id="0">0</button>
<button type="button" class="number-button" id=".">.</button>
<button type="button" class="operator-button" id="/">/</button>
</div>
<div id="equals-bar">
<button type="button" class="equals-button" id="=">=</button>
</div>
</div>
</div>
</body>
<script src="scripts/main.js"></script>
</html>