-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (55 loc) · 2.26 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
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="1.svg" type="image/x-icon" />
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
<title>Calculator</title>
</head>
<body>
<div class="main">
<div class="box" id="box">
<div class="heading">
<h2>Calculator</h2>
</div>
<div class="input-box">
<input type="text" name="InputBox" id="InputBox" disabled />
</div>
<div class="button-section">
<div class="first-row">
<button id="backspace" onclick="back();">←</button>
<button id="cancel" onclick="cls();">C</button>
<button id="%" onclick="enter(this.id);">%</button>
<button id="/" class="blue" onclick="enter(this.id);">/</button>
</div>
<div class="row">
<button id="7" onclick="enter(this.id);">7</button>
<button id="8" onclick="enter(this.id);">8</button>
<button id="9" onclick="enter(this.id);">9</button>
<button id="*" class="blue" onclick="enter(this.id);">X</button>
</div>
<div class="row">
<button id="4" onclick="enter(this.id);">4</button>
<button id="5" onclick="enter(this.id);">5</button>
<button id="6" onclick="enter(this.id);">6</button>
<button id="-" class="blue" onclick="enter(this.id);">-</button>
</div>
<div class="row">
<button id="1" onclick="enter(this.id);">1</button>
<button id="2" onclick="enter(this.id);">2</button>
<button id="3" onclick="enter(this.id);">3</button>
<button id="+" class="blue" onclick="enter(this.id);">+</button>
</div>
<div class="row">
<button id="0" onclick="enter(this.id);">0</button>
<button id="." onclick="enter(this.id);">.</button>
<button id="equals" class="black" onclick="solve();">=</button>
</div>
</div>
</div>
</div>
</body>
</html>