-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator.html
107 lines (106 loc) · 5.14 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
<script type="text/javascript" src="calculator.js"></script>
<link rel="stylesheet" href="calculator.css">
<title>
My Calculator
</title>
</head>
<body>
<div class="upperlayerofcalculator">
<form >
<table>
<tr>
<input type="text" class="row1" disabled>
</tr>
<tr>
<td>
<input type="button" value="9" class="btn1" onclick="display('9')" style="margin-left: 135%;">
</td>
<td>
<button class="btn1" onclick="display('8')" style="margin-left: 145%;">
8
</button>
</td>
<td>
<button class="btn1" onclick="display('7')" style="margin-left: 155%;">
7
</button>
</td>
<td>
<button class="btn1" onclick="display('+')" style="margin-left: 165%;">
+
</button>
</td>
</tr>
<tr>
<td>
<button class="btn1"onclick="display('6')" style="margin-left: 135%;">
6
</button>
</td>
<td>
<button class="btn1" onclick="display('5')" style="margin-left: 145%;">
5
</button>
</td>
<td>
<button class="btn1" onclick="display('4')" style="margin-left: 155%;">
4
</button>
</td>
<td>
<button class="btn1" onclick="display('-')" style="margin-left: 165%;">
-
</button>
</td>
</tr>
<tr>
<td>
<button class="btn1" onclick="display('3')" style="margin-left: 135%;">
3
</button>
</td>
<td>
<button class="btn1" onclick="display('2')" style="margin-left: 145%;">
2
</button>
</td>
<td>
<button class="btn1" onclick="display('1')" style="margin-left: 155%;">
1
</button>
</td>
<td>
<button class="btn1" onclick="display('*')" style="margin-left: 165%;">
*
</button>
</td>
</tr>
<tr>
<td>
<button class="btn1" onclick="display('.')" style="margin-left: 135%;">
.
</button>
</td>
<td>
<button class="btn1" onclick="display('0')" style="margin-left: 145%;">
0
</button>
</td>
<td>
<button class="btn1" onclick="display('/')" style="margin-left: 155%; padding-left: 42%;">
/
</button>
</td>
<td>
<button class="btn1" onclick="solve('=')" style="margin-left: 165%;">
=
</button>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>