-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.html
More file actions
324 lines (317 loc) · 6.58 KB
/
hello.html
File metadata and controls
324 lines (317 loc) · 6.58 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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<html>
<head>
<style>
body
{
background-color:tan;
}
h1
{
display:block;
}
.container{
display:flex;
}
.fixed{
width:500px;
}
.flex-item{
flex-grow:1;
}
.box
{
background-color:#3d4543;
height:450px;
width:300px;
border-radius:10px;
position:relative;
top:80px;
left:70%;
}
.box1
{
background-color:white;
height:450px;
width:300px;
border-radius:10px;
position:relative;
top:60px;
left:30%;
}
.display
{
background-color:#222;
width:220px;
position:relative;
left:15px;
top:20px;
height:40px;
}
.display1
{
background-color:white;
width:220px;
position:relative;
left:15px;
top:20px;
height:40px;
}
.display input
{
position:relative;
left:2px;
top:2px;
height:35px;
color:black;
background-color:#bccd95;
font-size:21px;
text-align:right;
}
.keys
{
position:relative;
top:15px;
}
.text
{
width:120px;
}
.button
{
width:40px;
height:30px;
border:none;
border-radius:8px;
margin-left:28px;
cursor:pointer;
border-top:2px solid transparent;
}
.button.gray
{
color:white;
background-color:#6f6f6f;
border-bottom:black 2px solid;
border-top:2px #6f6f6f solid;
}
.button.pink
{
color:black;
background-color:#ff4561;
border-bottom:black 2px solid;
}
.button.black
{
color:white;
background-color:303030;
border-bottom:black 2px solid;
border-top:2px 303030 solid;
}
.button.orange
{
width:120px;
color:black;
margin-left:35%;
background-color:#FF9933;
border-bottom:black 2px solid;
border-top:2px #FF9933 solid;
}
.gray:active
{
border-top:black 2px solid;
border-bottom:2px #6f6f6f solid;
}
.pink:active
{
border-top:black 2px solid;
border-bottom:#ff4561 2px solid;
}
.black:active
{
border-top:black 2px solid;
border-bottom:#303030 2px solid;
}
.orange:active
{
border-top:black 2px solid;
border-bottom:FF9933 2px solid;
}
p
{
line-height:10px;
}
</style>
<script>
function m3()
{
var text=document.getElementById("d").value;
text="cloud";
document.getElementById("d").value=text;
return true;
}
function bb1()
{
var text=document.getElementById("d").value;
text="(";
document.getElementById("d").value+=text;
return true;
}function bb2()
{
var text=document.getElementById("d").value;
text=")";
document.getElementById("d").value+=text;
return true;
}function ccb()
{
var text=document.getElementById("d").value;
text="";
document.getElementById("d").value=text;
return true;
}
function vbs()
{
var text=document.getElementById("d").value;
text="/";
document.getElementById("d").value+=text;
return true;
}
function vbp()
{
var text=document.getElementById("d").value;
text="+";
document.getElementById("d").value+=text;
return true;
}
function vbm()
{
var text=document.getElementById("d").value;
text="-";
document.getElementById("d").value+=text;
return true;
}
function vba()
{
var text=document.getElementById("d").value;
text="*";
document.getElementById("d").value+=text;
return true;
}
function vb0()
{
var text=document.getElementById("d").value;
text="0";
document.getElementById("d").value+=text;
return true;
}
function vb1()
{
var text=document.getElementById("d").value;
text="1";
document.getElementById("d").value+=text;
return true;
}
function vb2()
{
var text=document.getElementById("d").value;
text="2";
document.getElementById("d").value+=text;
return true;
}
function vb3()
{
var text=document.getElementById("d").value;
text="3";
document.getElementById("d").value+=text;
return true;
}
function vb4()
{
var text=document.getElementById("d").value;
text="4";
document.getElementById("d").value+=text;
return true;
}
function vb5()
{
var text=document.getElementById("d").value;
text="5";
document.getElementById("d").value+=text;
return true;
}
function vb6()
{
var text=document.getElementById("d").value;
text="6";
document.getElementById("d").value+=text;
return true;
}
function vb7()
{
var text=document.getElementById("d").value;
text="7";
document.getElementById("d").value+=text;
return true;
}
function vb8()
{
var text=document.getElementById("d").value;
text="8";
document.getElementById("d").value+=text;
return true;
}
function vb9()
{
var text=document.getElementById("d").value;
text="9";
document.getElementById("d").value+=text;
return true;
}
function vbd()
{
var text=document.getElementById("d").value;
text=".";
document.getElementById("d").value+=text;
return true;
}
</script>
</head>
<body>
<div class="container">
<div class="fixed">
<div class="box">
<div class="display">
<form method="POST">
<input type="text" name="user_id" value="SID"/>
<br/><br/><br/>
<input type="text" name="value" id="d" value="1+2" /><br/><br/>
<input type="Submit" class="button orange" value="ANSWER" /><br/><br/><br/>
</form>
</div>
<br/><br/><br/> <br/><br/><br/>
<div class="keys"><br/><form>
<p><input type="button" id="mrc" class="button gray" value="mrc" onclick='return m3();'/><input type="button" id="b1" class="button gray" value="(" onclick='return bb1();'/><input type="button" id="b2" class="button gray"
value=")" onclick='return bb2();'/><input type="button" class="button pink" id="vs" value="/" onclick='return vbs();'/></p>
<p><input type="button" id="v7" class="button black" value="7" onclick='return vb7();'/><input type="button" id="v8" class="button black" value="8" onclick='return vb8();'/><input type="button" class="button black"
id="v9" value="9" onclick='return vb9();'/><input type="button" class="button pink" id="va" value="*" onclick='return vba();'/></p>
<p><input type="button" class="button black" value="4" id="v4" onclick='return vb4();'/><input type="button" class="button black" value="5" id="v5" onclick='return vb5();'/><input type="button" class="button black"
value="6" id="v6" onclick='return vb6();'/><input type="button" class="button pink" value="-" id="vm" onclick='return vbm();'/></p>
<p><input type="button" class="button black" id="v1" value="1" onclick='return vb1();'/><input type="button" class="button black" value="2" id="v2" onclick='return vb2();'/><input type="button" class="button black"
value="3" id="v3" onclick='return vb3();'/><input type="button" class="button pink" value="+" id="vp" onclick='return vbp();'/></p>
<p><input type="button" class="button black" value="0" id="v0" onclick='return vb0();'/><input type="button" class="button black" value="." id="vd" onclick='return vbd();'/><input type="button" class="button black"
value="C" id="cc" onclick='return ccb();'/></p>
</form>
</div>
</div>
</div>
<div class="flex-item">
<div class="box1">
<div class="display1">
<h3 data-th-text="${value}">this gets replaced</h3>
<h3 data-th-text="${ans}">this gets replaced</h3>
<h3>History till now</h3>
<h3 data-th-text="${his}"><pre>this gets replaced</pre></h3>
</div>
</div>
</div>
</div>
</body>
</html>