-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
347 lines (293 loc) · 16.2 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
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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style type="text/css">
textarea.ta{
height: 100px;
width: 200px;
padding: 10px;
font-weight: 900;
font-size: 2rem;
}
input {font-weight:1000;height: 30px;font-size: 1.02rem;width: 80px;color: blue; font-size: 25px;}
.container{
margin-left: auto;
margin-right: auto;
margin-top: 100px;
margin-bottom: auto;
border: 2px solid red;
padding: 20px;
border-radius: 10px;
width: 50%;
display:none;
justify-content: center;
}
.circle {
border-radius: 50%;
width: 15px;
height: 15px;
padding: 2px;
background: #fff;
border: 2px solid red;
color: #000;
display: inline;
}
h1{
color: red;
}
.next {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 10px ;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
td,tr {
text-align: center;
}
th{
padding: 10px;
}
#div1 {
width: 350px;
height: 70px;
padding: 10px;
border: 1px solid #aaaaaa;
margin-bottom: 20px;
}
#div2 {
width: 350px;
height: 70px;
padding: 10px;
border: 1px solid #aaaaaa;
}
#in1{
display: inline;
}
label{
font-size: 18px;
}
</style>
</head>
<div class="container">
<h1 style="color:red">1)<span> </span>write in short form</h1>
<h2>a)<span> </span>8000 + 600 + 50 + 0 = <span> </span> <input style="width: 100px;" type="text" onfocus="myFunction(this)" id="a1"></h2>
<h2 >b)<span> </span>5000 + 300 + 0 + 1 <span> </span> = <span> </span> <input style="width: 100px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>c)<span> </span>7000 + 0 + 40 + 2 <span> </span> <span> </span><span> </span> = <span> </span><input style="width: 100px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>d)<span> </span>9000 + 900 + 90 + 9 <span> </span>= <span> </span><input style="width: 100px;" type="text" onfocus="myFunction(this)" onfocusout="outfun()"> </h2>
<button class="btn btn-primary" id='btndis' onclick="next(1)" >Next</button>
</div>
<div class="container">
<h2 style="color:red">2)<span> </span>write the place value and face value of each circled digit Number</h2>
<table style="margin: 1rem;border-collapse: collapse;border: 2px solid blue" border="1">
<tr>
<th><h2 style="text-align:left">Number</h2></th>
<td><h2><span> </span> <div class="circle">9</div>671</h2></td>
<td ><h2><span> </span>2<div class="circle">0</div>83</h2></td>
<td><h2><span> </span>39<div class="circle">8</div>0</h2></td>
<td><h2><span> </span>944<div class="circle">2</div></h2></td>
</tr>
<tr>
<th><h2>Place Value</h2></th>
<td><input type="text" onfocus="myFunction(this)" ></td>
<td><input type="text" onfocus="myFunction(this)" ></td>
<td><input type="text" onfocus="myFunction(this)" ></td>
<td><input type="text" onfocus="myFunction(this)" ></td>
</tr>
<tr>
<th><h2>Face Value</h2></th>
<td><input type="text" onfocus="myFunction(this)" ></td>
<td><input type="text" onfocus="myFunction(this)" ></td>
<td><input type="text" onfocus="myFunction(this)" ></td>
<td><input type="text" onfocus="myFunction(this)" ></td>
</tr>
</table>
<button class="btn btn-primary" onclick="next(2)" >Next</button>
<button class="btn btn-danger" onclick="back(2)" >Back</button>
</div>
<div class="container">
<h1 style="color: red;">3) Write the predecessor and Successor</h1>
<table style="margin: 1rem;border-collapse: collapse;border: 2px solid blueviolet;" border="1">
<tr>
<th><h2>Predecessor</h2></th>
<th><h2>Number</h2></th>
<th><h2>Successor</h2></th>
</tr>
<tr>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
<td><h2>889</h2></td>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
</tr>
<tr>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
<td><h2>2341</h2></td>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
</tr>
<tr>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
<td><h2>7038</h2></td>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
</tr>
<tr>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
<td><h2>9000</h2></td>
<td><input style="width: 80px;" type="text" onfocus="myFunction(this)" ></td>
</tr>
</table>
<button class="btn btn-primary" onclick="next(3)" >Next</button>
<button class="btn btn-danger" onclick="back(3)" >Back</button>
</div>
<div class="container" style="width: 50%;">
<h1>4)<span> </span>Skip count in 1000s and complete the pattern</h1>
<h2>a)<span> </span>1045 , 2045 , <input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>b)<span> </span>3986 , 4986 , <input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>c)<span> </span>2105 , 3105 , <input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>d)<span> </span>4999 , 5999 , <input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<button class="btn btn-primary" onclick="next(4)" >Next</button>
<button class="btn btn-danger" onclick="back(4)" >Back</button>
</div>
<div class="container">
<h1>5)<span> </span>Rounding off to the nearest 10 </h1>
<div style="width:50%;margin:10px auto">
<h2>a) 43 <span> </span><span> </span> <input type="text" onfocus="myFunction(this)" ></h2>
<h2>b) 87 <span> </span><span> </span> <input type="text" onfocus="myFunction(this)" ></h2>
<h2>c) 65 <span> </span><span> </span> <input type="text" onfocus="myFunction(this)" ></h2>
<h2>d) 922 <span> </span><input type="text" onfocus="myFunction(this)" ></h2>
</div>
<button class="btn btn-primary" onclick="next(5)" >Next</button>
<button class="btn btn-danger" onclick="back(5)" >Back</button>
</div>
<div class="container">
<h1>6)<span> </span>Separate and write the even and odd numbers into their respective boxes</h1>
<!-- <h2>46 , 83 ,175 ,220 ,1643 ,2040 ,9891, 687, 1849, 7514 ,6322 , 9295 ,5040 , 4783</h2>
<textarea class="ta"></textarea> <span> </span><span> </span><span> </span> <textarea class="ta"></textarea> <br> -->
<div id="in1">
<h3 style="color: blue;">Even Numbers</h3><div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"></div>
<h3 style="color: darkgreen;">Odd Numbers</h3><div id="div2" ondrop="drop(event)" ondragover="allowDrop(event)"></div>
</div>
<br>
<label id="drag1" draggable="true" ondragstart="drag(event)" >46 , </label>
<label id="drag2" draggable="true" ondragstart="drag(event)">83, </label>
<label id="drag3" draggable="true" ondragstart="drag(event)">175 , </label>
<label id="drag4" draggable="true" ondragstart="drag(event)">220, </label>
<label id="drag5" draggable="true" ondragstart="drag(event)">1643 , </label>
<label id="drag6" draggable="true" ondragstart="drag(event)">2040, </label>
<label id="drag7" draggable="true" ondragstart="drag(event)">9891 , </label>
<label id="drag8" draggable="true" ondragstart="drag(event)">687, </label>
<label id="drag9" draggable="true" ondragstart="drag(event)">1849 , </label>
<label id="drag10" draggable="true" ondragstart="drag(event)">7514, </label>
<label id="drag11" draggable="true" ondragstart="drag(event)">6322 , </label>
<label id="drag12" draggable="true" ondragstart="drag(event)">9295, </label>
<label id="drag13" draggable="true" ondragstart="drag(event)">5040 , </label>
<label id="drag15" draggable="true" ondragstart="drag(event)">4783 , </label>
<button class="btn btn-primary" onclick="next(6)" >Next</button>
<button class="btn btn-danger" onclick="back(6)" >Back</button>
</div>
<div class="container">
<h1>7)<span> </span>write 5 consecutive numbers for the given numbers</h1>
<h2>a)3186 ,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>b)9247 ,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<button class="btn btn-primary" onclick="next(7)" >Next</button>
<button class="btn btn-danger" onclick="back(7)" >Back</button>
</div>
<div class="container">
<h1>8)<span> </span>Write True or False</h1>
<h2>a)The predecessor of 2090 is 2091 <input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>b)4896 is an even number <input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>c)The Successor of 7819 is 7820 <input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>d)2437 lies in between 2435 ad 2436 <input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>e)62 rounded off to its nearest 10 is 70 <input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>f)In words 9038 is written as nine thousand thirty-eight <input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<button class="btn btn-primary" onclick="next(8)" >Next</button>
<button class="btn btn-danger" onclick="back(8)" >Back</button>
</div>
<div class="container">
<h1>9)<span> </span>Write five number from backward from the given numbers</h1>
<h2>a)5643 ,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<h2>b)9289 ,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" >,<input style="width: 80px;" type="text" onfocus="myFunction(this)" ></h2>
<button class="btn btn-primary" onclick="next(9)" >Next</button>
<button class="btn btn-danger" onclick="back(9)" >Back</button>
</div>
<div class="container" style="width: 40%;margin-top: 100px;">
<h1>10) choose the correct answer</h1>
<h2>a)The Place value of 7 in 8375 is :</h2>
<h3><input style="height:20px; width:20px;" type="radio">700 <input style="height:20px; width:20px;" type="radio">7000 <input style="height:20px; width:20px;" type="radio">70</h3>
<br>
<button class="btn btn-primary" onclick="next(10)" >Next</button>
<button class="btn btn-danger" onclick="back(10)" >Back</button>
</div>
<div class="container" style="width: 40%;margin-top: 100px;">
<h1>11) choose the correct answer</h1>
<h2>b) 8503 is greater than :</h2>
<h3><input style="height:20px; width:20px;" type="radio">9846 <input style="height:20px; width:20px;" type="radio">8502 <input style="height:20px; width:20px;" type="radio">8508</h3>
<br>
<button class="btn btn-primary" onclick="next(11)" >Next</button>
<button class="btn btn-danger" onclick="back(11)" >Back</button>
</div>
<div class="container" style="width: 40%;margin-top: 100px;">
<h1>12) choose the correct answer</h1>
<h2>c) 9696 rounded off to the nearest 100 is:</h2>
<h3><input style="height:20px; width:20px;" type="radio">9000 <input style="height:20px; width:20px;" type="radio">9700 <input style="height:20px; width:20px;" type="radio">9600</h3>
<br>
<button class="btn btn-primary" onclick="next(12)" >Next</button>
<button class="btn btn-danger" onclick="back(12)" >Back</button>
</div>
<div class="container" style="width: 40%;margin-top: 100px;">
<h1>13) choose the correct answer</h1>
<h2>d)The Smallest 4-digit number formed using 9,7,2,0 is</h2>
<h3 style="display: inline;"><input style="height:20px; width:20px;" type="radio">0972 <input style="height:20px; width:20px;" type="radio">2079 <input style="height:20px; width:20px;" type="radio">2097</h3>
<br>
<button class="btn btn-primary" onclick="next(13)" >Next</button>
<button class="btn btn-danger" onclick="back(13)" >Back</button>
</div>
<div class="container" style="width: 40%;margin-top: 100px;">
<h1>14) choose the correct answer</h1>
<h2>e)6 less than 9442 is :</h2>
<h3><input style="height:20px; width:20px;" type="radio">9346 <input style="height:20px; width:20px;" type="radio">9446 <input style="height:20px; width:20px;" type="radio">9436</h3>
<button class="btn btn-primary" onclick="result()" >Submit-Quiz</button>
</div>
</div>
</div>
</pre>
<script>
document.getElementsByClassName('container')[0].style.display="block";
function next(id){
document.getElementsByClassName('container')[id-1].style.display="none";
document.getElementsByClassName('container')[id].style.display="block";
}
function back(id){
document.getElementsByClassName('container')[id-1].style.display="none";
document.getElementsByClassName('container')[id-2].style.display="block";
}
function result(){
var score=0;
if(document.getElementById('a1').value=='8650')
score++;
alert(score);
}
function myFunction(x) {
x.style.background = "yellow";
}
function outfun(){
document.getElementById('btndis').disabled=false;
}
document.getElementById('btndis').disabled=true;
// For Drag and Drop
function allowDrop(ev) {
ev.preventDefault();
}
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
}
function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
ev.target.appendChild(document.getElementById(data));
}
</script>