-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (41 loc) · 2 KB
/
index.html
File metadata and controls
43 lines (41 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="mystyle.css">
<title>Calculator</title>
<script src="index.js"></script>
</head>
<body>
<h1>Basic Calculator</h1>
<br/>
<form id="calculator" name="calculator">
<input id="display" value="0"/> <br/>
<input type="button" id="clear" class="light" value="AC" onclick="clr()"/>
<input type="button" class="light" value="±" onclick="com()"/>
<input type="button" class="light" value="%" onclick="dis('%')"/>
<input type="button" id="divide" class="orange1" value="÷" onclick="op('divide')"/>
<br/>
<input type="button" class="dark" value="7" onclick="dis('7')"/>
<input type="button" class="dark" value="8" onclick="dis('8')"/>
<input type="button" class="dark" value="9" onclick="dis('9')"/>
<input type="button" id="multiply" class="orange1" value="×" onclick="op('multiply')"/>
<br/>
<input type="button" class="dark" value="4" onclick="dis('4')"/>
<input type="button" class="dark" value="5" onclick="dis('5')"/>
<input type="button" class="dark" value="6" onclick="dis('6')"/>
<input type="button" id="minus" class="orange1" value="-" onclick="op('minus')"/>
<br/>
<input type="button" class="dark" value="1" onclick="dis('1')"/>
<input type="button" class="dark" value="2" onclick="dis('2')"/>
<input type="button" class="dark" value="3" onclick="dis('3')"/>
<input type="button" id="plus" class="orange1" value="+" onclick="op('plus')"/>
<br/>
<input type="button" class="zero" value="0" onclick="dis('0')"/>
<input type="button" class="dark" value="." onclick="dis('.')"/>
<input type="button" class="orange1" value="=" onclick="solve()"/>
</form>
</body>
</html>