-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (38 loc) · 1.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Calculator</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div class="container">
<div class="main">
<div class="calculator">
<input type="text" id="inputtext" placeholder="0" />
<p id="result" class="inputresult"> </p>
<button class="clear" onclick="clr ()">C</button>
<button class="delete" onclick="del ()">Del</button>
<button class="percent" onclick="calculate ('%')">%</button>
<button class="divide" onclick="calculate ('/')">/</button>
<button onclick="calculate (7)">7</button>
<button onclick="calculate (8)">8</button>
<button onclick="calculate (9)">9</button>
<button class="multiply" onclick="calculate ('*')">X</button>
<button onclick="calculate(4)">4</button>
<button onclick="calculate (5)">5</button>
<button onclick="calculate (6)">6</button>
<button class="subtract" onclick="calculate ('-')">-</button>
<button onclick="calculate (1)">1</button>
<button onclick="calculate (2)">2</button>
<button onclick="calculate (3)">3</button>
<button class="add" onclick="calculate ('+')">+</button>
<button onclick="calculate ('.')">.</button>
<button onclick="calculate (0) ">0</button>
<button class="equal" onclick="simplify('')">=</button>
<button class="click" onclick="power()">Off</button>
<script src="calculate.js"></script>
</div>
</div>
</div>
</body>
</html>