-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (37 loc) · 1.72 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>JS Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<div class="container">
<input type="text" id="show" readonly />
<div class="btn-container">
<button class="numbers" id="num" onclick="num(7)">7</button>
<button class="numbers" id="num" onclick="num(8)">8</button>
<button class="numbers" id="num" onclick="num(9)">9</button>
<button class="operators" id="operator" onclick="divide()">÷</button>
<button class="numbers" id="num" onclick="num(4)">4</button>
<button class="numbers" id="num" onclick="num(5)">5</button>
<button class="numbers" id="num" onclick="num(6)">6</button>
<button class="operators" id="operator" onclick="multi()">×</button>
<button class="numbers" id="num" onclick="num(1)">1</button>
<button class="numbers" id="num" onclick="num(2)">2</button>
<button class="numbers" id="num" onclick="num(3)">3</button>
<button class="operators" id="operator" onclick="sub()">-</button>
<button class="numbers" id="clear" onclick="clearContent()">C</button>
<button class="numbers" id="num" onclick="num(0)">0</button>
<button id="equal" onclick="result()">=</button>
<button class="operators" id="operator" onclick="plus()">+</button>
</div>
<footer>
<p>CopyRight © <span id="currYear"></span> By Asheel Ahmed Siddiqui</p>
</footer>
</div>
<script src="main.js"></script>
</body>
</html>