-
Notifications
You must be signed in to change notification settings - Fork 0
/
Calculator.html
107 lines (100 loc) · 4.16 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
<!-- Name = Maurya Shubham Roll No = 33 Calculator.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
<title>Calculator - Made By Shubham Maurya</title>
<link rel="stylesheet" href="Calculator.css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="main-container col-12 col-sm-7 col-md-6 col-lg-4">
<div class="output-window">
<div class="previous">
<p id="previous-value"></p>
</div>
<div class="output">
<p id="output-value"></p>
</div>
<div class="body">
<div class="keyboard">
<table>
<tr>
<td>
<input id="backspace" class="sign" type="button" value="CE" />
</td>
<td>
<input id="clear" class="sign" type="button" value="C" />
</td>
<td>
<input id="=" class="sign" type="button" value="=" />
</td>
<td>
<input id="/" class="sign" type="button" value="/" />
</td>
</tr>
<tr>
<td>
<input id="7" class="digit" type="button" value="7" />
</td>
<td>
<input id="8" class="digit" type="button" value="8" />
</td>
<td>
<input id="9" class="digit" type="button" value="9" />
</td>
<td>
<input id="*" class="sign" type="button" value="X" />
</td>
</tr>
<tr>
<td>
<input id="4" class="digit" type="button" value="4" />
</td>
<td>
<input id="5" class="digit" type="button" value="5" />
</td>
<td>
<input id="6" class="digit" type="button" value="6" />
</td>
<td>
<input id="-" class="sign" type="button" value="-" />
</td>
</tr>
<tr>
<td>
<input id="1" class="digit" type="button" value="1" />
</td>
<td>
<input id="2" class="digit" type="button" value="2" />
</td>
<td>
<input id="3" class="digit" type="button" value="3" />
</td>
<td>
<input id="+" class="sign" type="button" value="+" />
</td>
</tr>
<tr>
<td></td>
<td>
<input id="0" class="digit" type="button" value="0" />
</td>
<td>
<input id="." class="empty" type="button" value="." />
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="calculator.js"></script>
</body>
</html>