-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.html
50 lines (49 loc) · 2.83 KB
/
calculator.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>
<link rel="stylesheet" href="style.css">
<script src="main.js"></script>
<h1 class="header">Basic Calculator</h1>
<body>
<div class="outermost">
<div class="screen">
<h><span id="screen"></span></h>
</div>
<div class="buttonShell">
<div class="row">
<input type="button" id="blank" value="By Dillon Aldrich" class="global wide">
<input type="button" id="sqrt" value="√" class="global regular" onclick="rad()">
<input type="button" id="%" value="%" class="global regular" onclick="operation(value)">
</div>
<div class="row">
<input type="button" id="7" value="7" class="global regular" onclick="numClick(value)">
<input type="button" id="8" value="8" class="global regular" onclick="numClick(value)">
<input type="button" id="9" value="9" class="global regular" onclick="numClick(value)">
<input type="button" id="/" value="/" class="global regular" onclick="operation(value)">
</div>
<div class="row">
<input type="button" id="4" value="4" class="global regular" onclick="numClick(value)">
<input type="button" id="5" value="5" class="global regular" onclick="numClick(value)">
<input type="button" id="6" value="6" class="global regular" onclick="numClick(value)">
<input type="button" id="x" value="x" class="global regular" onclick="operation(value)">
</div>
<div class="row">
<input type="button" id="1" value="1" class="global regular" onclick="numClick(value)">
<input type="button" id="2" value="2" class="global regular" onclick="numClick(value)">
<input type="button" id="3" value="3" class="global regular" onclick="numClick(value)">
<input type="button" id="-" value="-" class="global regular" onclick="operation(value)">
</div>
<div class="row">
<input type="button" id="neg" value="Neg" class="global regular" onclick="negative()">
<input type="button" id="0" value="0" class="global regular" onclick="numClick(value)">
<input type="button" id="." value="." class="global regular" onclick="decimal()">
<input type="button" id="+" value="+" class="global regular" onclick="operation(value)">
</div>
<div class="row">
<input type="button" id="del" value="Del" class="global regular" onclick="rem()">
<input type="button" id="=" value="=" class="global wide green" onclick="equals()">
<input type="button" id="C" value="C" class="global regular red" onclick="clean()">
</div>
</div>
</div>
</body>
</html>