-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (53 loc) · 1.78 KB
/
index.html
File metadata and controls
57 lines (53 loc) · 1.78 KB
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
51
52
53
54
55
56
57
<!doctype html>
<html lang="en">
<head>
<title>JS Calc</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<table>
<tr>
<td colspan="4">
<form id="output-form" action=""><input type="text" id="output-box" value="0"></form>
</td>
</tr>
<tr>
<td><button id="zero">0</button></td>
<td><button id="one">1</button></td>
<td><button id="two">2</button></td>
<td><button id="add">+</button></td>
</tr>
<tr>
<td><button id="three">3</button></td>
<td><button id="four">4</button></td>
<td><button id="five">5</button></td>
<td><button id="minus">-</button></td>
</tr>
<tr>
<td><button id="six">6</button></td>
<td><button id="seven">7</button></td>
<td><button id="eight">8</button></td>
<td><button id="mult">*</button></td>
</tr>
<tr>
<td><button id="nine">9</button></td>
<td><button id="sqrt">√</button></td>
<!-- <td><button id="mod">%</button></td> -->
<td><button id="decimal">.</button></td>
<td><button id="div">/</button></td>
</tr>
<tr>
<td><button id="left-paren">(</button></td>
<td><button id="right-paren">)</button></td>
<td><button id="calculate">=</button></td>
<td><button id="clear">Clear</button></td>
</tr>
</table>
<script src="parser.js"></script>
<script src="numbers.js"></script>
<script src="operators.js"></script>
<script src="inputs.js"></script>
</body>
</html>