-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
179 lines (162 loc) · 5.91 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" integrity="sha384-3AB7yXWz4OeoZcPbieVW64vVXEwADiYyAEhwilzWsLw+9FgqpyjjStpPnpBO8o8S" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section id="calc">
<div class="" style="margin: 60px auto;width: 330px;">
<div style="border: 1px solid #555; background-color: #555;padding: 15px 10px;border-radius: 10px;">
<p class="text-center" style="color: #fff;font-weight: bold;">Mini Calculator</p>
<form action="" name="form">
<div class="input">
<input name="screen" type="text" id="screen" style="width: 100%; height: 60px;font-size: 24px;padding: 0px 10px;" placeholder="expression" value="">
<!-- <input name="hidden_screen" type="text" id="hidden_screen" style="width: 100%; height: 60px;font-size: 24px;padding: 0px 10px;" placeholder="expression" value=""> -->
<input name="ans" type="text" id="ans" readonly style="width: 100%; height: 30px;padding: 0px 10px;text-align: right;font-size: 16px;" placeholder="ans=" value="">
</div>
<div class="button1">
<a href="#" onclick="display('sin(') " id="sin" class="btn btn-danger">
sin
</a>
<a href="#" onclick="display('cos(')" class="btn btn-danger">
cos
</a>
<a href="#" onclick="display('tan(')" class="btn btn-danger">
tan
</a>
<a href="#" onclick="display('log(')" class="btn btn-danger">
log
</a>
<a href="#" onclick="display('ln(')" class="btn btn-danger">
ln
</a>
</div>
<div class="button1">
<a href="#" onclick="display('arcsin(') " id="sin" class="btn btn-danger">
sin<sup>-1</sup>
</a>
<a href="#" onclick="display('arccos(')" class="btn btn-danger">
cos<sup>-1</sup>
</a>
<a href="#" onclick="display('arctan(')" class="btn btn-danger">
tan<sup>-1</sup>
</a>
<a href="#" onclick="display('sinh(')" class="btn btn-danger">
sinh
</a>
<a href="#" onclick="display('cosh(')" class="btn btn-danger">
cosh
</a>
</div>
<div class="button">
<a href="#" onclick="display('9')" class="btn btn-default">
9
</a>
<a href="#" onclick="display('8')" class="btn btn-default">
8
</a>
<a href="#" onclick="display('7')" class="btn btn-default">
7
</a>
<a href="#" onclick="display('+')" class="btn btn-default">
+
</a>
<a href="#" onclick="display('**2')" class="btn btn-primary">
X<sup>2</sup>
</a>
<a href="#" onclick="display('**3')" class="btn btn-primary">
X<sup>3</sup>
</a>
</div>
<div class="button">
<a href="#" onclick="display('6')" class="btn btn-default">
6
</a>
<a href="#" onclick="display('5')" class="btn btn-default">
5
</a>
<a href="#" onclick="display('4')" class="btn btn-default">
4
</a>
<a href="#" onclick="display('*')" class="btn btn-default">
x
</a>
<a href="#" onclick="display('sqrt(')" class="btn btn-primary">
√
</a>
<a href="#" onclick="display('cbrt(')" class="btn btn-primary">
<sup style="font-size: 8px;vertical-align: middle;">3</sup>√
</a>
</div>
<div class="button">
<a href="#" onclick="display('3')" class="btn btn-default">
3
</a>
<a href="#" onclick="display('2')" class="btn btn-default">
2
</a>
<a href="#" onclick="display('1')" class="btn btn-default">
1
</a>
<a href="#" onclick="display('-')" class="btn btn-default">
-
</a>
<a href="#" onclick="display('**')" class="btn btn-primary">
X<sup>y</sup>
</a>
<a href="#" onclick="display('X')" class="btn btn-primary">
A
</a>
</div>
<div class="button">
<a href="#" onclick="display('0')" class="btn btn-default">
0
</a>
<a href="#" onclick="display('.')" class="btn btn-default">
.
</a>
<a href="#" onclick="display('%')" class="btn btn-default">
%
</a>
<a href="#" onclick="display('/')" class="btn btn-default">
/
</a>
<a href="#" onclick="display('!')" class="btn btn-primary">
!
</a>
<a href="#" onclick="bkspace()" class="btn btn-default">
<i class="fas fa-long-arrow-alt-left"></i>
</a>
</div>
<div class="form-group">
<a href="#" onclick="cls_screen()" class="btn btn-warning" style="width: 44px;">
CE
</a>
<a href="#" onclick="display('(')" class="btn btn-default" style="width: 44px;font-weight: bold;">
(
</a>
<a href="#" onclick="display(')')" class="btn btn-default" style="width: 44px;font-weight: bold;">
)
</a>
<a href="#" onclick="display('Ans')" class="btn btn-primary text-center" style="width: 44px; padding-left:9px;">
Ans
</a>
<a href="#" onclick="ans()" class="btn btn-success" style="width: 96px;">
=
</a>
</div>
</form>
</div>
</div>
</section>
<script src="script.js"></script>
</body>
</html>
<!-- I ahve made a change to this index.html file -->