-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClass_Vbs2.html
762 lines (622 loc) · 17.7 KB
/
Class_Vbs2.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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
<!DOCTYPE html>
<html>
<head>
<title>VBS_Class/THINK</title>
<link rel="stylesheet" href="global.css">
<link rel="icon" href="thinkLOGO.png">
<style>
.paraAlign {
margin:10px;line-height:1.5; text-align: justify;
}
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}
input[type='submit'],
label {
margin-top: 1rem;
}
body {
margin:10;
border: 10px solid black;
}
.navbar {
overflow: hidden;
background-color: #ff531a;
}
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn {
background-color: blue;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 10;
width:45px;
}
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color: lightblue;
}
.dropdown:hover .dropdown-content {
display: block;
}
.move{
position: relative;
top: 0;
transition: top ease 0.7s;
}
.move:hover {
top: -30px;
background-color: lightblue;
}
.move2{
position: relative;
top: 0;
transition: top ease 0.7s;
top: -30px;
}
.move2:hover {
position: relative;
top: 0;
transition: top ease 0.7s;
top: 1px;
background-color: lightblue;
}
.active {
background-color: green;
margin: 0;
}
.icon-bar {
position: fixed;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.icon-bar a {
display: block;
text-align: center;
padding: 16px;
transition: all 0.3s ease;
color: white;
font-size: 20px;
width: 20px;
top:-100px;
float: right;
}
.icon-bar a:hover {
background-color: #000;
}
.facebook {
background: #3B5998;
color: white;
}
.github {
background: #211F1F;
color: white;
}
.google {
background: #4285F4;
color: white;
}
.linkedin {
background: #007bb5;
color: white;
}
.youtube {
background: red;
color: white;
}
.gmail {
background: #D44638;
color: #E2E2E2;
}
.footer {
left: 0;
width:100%;
height:150px;
bottom: 0;
width: 100%;
background-color: #666666;
color: white;
text-align: center;
}
.h1 {
padding: 50px;
text-align: center;
font-size: 200%;
background-color: #00008B;
color: white;
}
-----
* {box-sizing: border-box}
.mySlides {display: none}
img {vertical-align: middle;}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
position: relative;
margin: auto;
background-color: white;
}
/* Next & previous buttons */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8);
}
/* Caption text */
.text {
color: #f2f2f2;
font-size: 15px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
.prev, .next,.text {font-size: 11px}
}
.alert {
padding: 20px;
background-color: lightblue;
color: black;
}
.closebtn {
margin-left: 15px;
color: white;
font-weight: bold;
float: right;
font-size: 22px;
line-height: 20px;
cursor: pointer;
transition: 0.3s;
}
.closebtn:hover {
color: orange;
}
.dropdown-content2 {
display: none;
position: absolute;
background-color: #f9f9f9;
width: 100%;
left: 0;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content2 .header {
background: blue;
padding: 2px;
color: white;
}
.dropdown:hover .dropdown-content2 {
display: block;
}
/* Create three equal columns that floats next to each other */
.column2 {
float: left;
width: 32.6%;
padding: 5px;
background-color: #ccc;
height: 250px;
}
.column2 a {
float: none;
color: black;
padding: 7px;
text-decoration: none;
display: block;
text-align: left;
}
.column2 a:hover {
background-color: #ddd;
}
/* Clear floats after the columns */
.row2:after {
content: "";
display: table;
clear: both;
}
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column2 {
width: 100%;
height: auto;
}
}
.question{
font-weight: 600;
font-size: 22px;
}
.answers {
margin-bottom: 20px;
}
#submit{
font-family: sans-serif;
font-size: 20px;
background-color: #297;
color: #fff;
border: 0px;
border-radius: 3px;
padding: 20px;
cursor: pointer;
margin-bottom: 20px;
}
#submit:hover{
background-color: #3a8;
}
.centered {
position: absolute;
top: 87%;
left: 58%;
transform: translate(-50%, -50%);
color: darkblue;
font-size: 100px;
}
</style>
</head>
<!-- <center> -->
<!-- <div class="alert"> -->
<!-- <span class="closebtn" onclick="this.parentElement.style.display='none';">×</span> -->
<!-- <h3>Find the 'store' button</h3> <strong>Hint:</strong> It is hidden on the top half of the navbar, and you can only see it when you hover on it. -->
<!-- </div> -->
<!-- </center> -->
<body>
<div class="h1">
<h1>Questions!</h1>
</div>
<div class="navbar">
<a href="Home2.html">Home</a>
<a href="Atom2.html">Research</a>
<div class="dropdown">
<button class="dropbtn">Class
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content2">
<div class="header">
<h1>Classes</h1>
</div>
<div class="row2">
<div class="column2">
<h2><b><u>Programing</u></b></h2>
<br>
<h3>Html/Css</h3>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
<div class="column2">
<h2><b><u>Space & beyond</u></b></h2>
<br>
<h3>Solar Systum</h3>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
<div class="column2">
<h2><b><u>Quantum Mechanics</u></b></h2>
<br>
<h3>The Atom</h3>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
<div class="column2">
<h3>Javascript/VBS</h3>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="Class_Vbs.html">Vbs assistant</a>
</div>
<div class="column2">
<h3>Space</h3>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
<div class="column2">
<h3>Other particals</h3>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
</div>
</div>
</div>
<a href="Contact2.html">Contact</a>
<a href="About2.html">About Us</a>
<div class="move">
<a href="" style="opacity: 0.6; cursor: not-allowed;">Join us</a>
</div>
<a href="password.html">Log out</a>
<a href="SeC2.html">COVID-19</a>
<div class="dropdown">
<button class="dropbtn">Other
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="Window.html">Games</a>
<a href="history.html">History</a>
<a href="photo.html">Photo Page</a>
<a href="math_page.html">Math tools</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn">Animations
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="move.html">Hulk</a>
<a href="bub.html">Buble</a>
<a href="animation.html">Broken-</a>
</div>
</div>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a></a>
<a class="active" href="pro2.html"><img style="width: 40px; height: 40px; border-radius: 100%; " src="pff.png" alt="Avatar" class="avatar"></a>
</div>
<div style="background-color:grey;float: left; width: 300px; height: 100%;">
<div href="#1234" style="color: black; margin: 20px; height: 80px; width: 82%; background-color: lightgrey;">
<a style="color: black;" href=""><img src="play.png" style=" margin-top: 3px;" width="70px" height="70px"></img></a>
<a style="color: black;" href=""><p style="float: right; font-size: 18px; margin-right: 68px; margin-top: 1px;"><b><u>VBS assistant</u></b></p></a>
<a style="color: black;" href=""><p style="float: right; margin-top: -50px; font-size: 13px; margin-right: 40%;">Notepad++</p>
<a style="color: black;" href=""><p style="float: right; margin-top: -30px; font-size: 13px; margin-right: 45%;">VBscript</p></a>
</div>
<div href="#1234" style="color: black; margin: 20px; height: 80px; width: 82%; background-color: lightgrey;">
<a style="color: black;" href=""><img src="vbs.png" style=" margin-left: -3px;" width="73px" height="80px"></img></a>
<a style="color: black;" href=""><p style="float: right; font-size: 18px; margin-right: 68px; margin-top: 1px;"><b><u>VBS assistant</u></b></p></a>
<a style="color: black;" href=""><p style="float: right; margin-top: -50px; font-size: 13px; margin-right: 40%;">Notepad++</p>
<a style="color: black;" href=""><p style="float: right; margin-top: -30px; font-size: 13px; margin-right: 45%;">VBscript</p></a>
</div>
<div href="#1234" style="color: black; margin: 20px; height: 80px; width: 82%; background-color: lightgrey;">
<a style="color: black;" href=""><img src="vbs.png" style=" margin-left: -3px;" width="73px" height="80px"></img></a>
<a style="color: black;" href=""><p style="float: right; font-size: 18px; margin-right: 68px; margin-top: 1px;"><b><u>VBS assistant</u></b></p></a>
<a style="color: black;" href=""><p style="float: right; margin-top: -50px; font-size: 13px; margin-right: 40%;">Notepad++</p>
<a style="color: black;" href=""><p style="float: right; margin-top: -30px; font-size: 13px; margin-right: 45%;">VBscript</p></a>
</div>
<div href="#1234" style="color: black; margin: 20px; height: 80px; width: 82%; background-color: lightgrey;">
<a style="color: black;" href=""><img src="vbs.png" style=" margin-left: -3px;" width="73px" height="80px"></img></a>
<a style="color: black;" href=""><p style="float: right; font-size: 18px; margin-right: 68px; margin-top: 1px;"><b><u>VBS assistant</u></b></p></a>
<a style="color: black;" href=""><p style="float: right; margin-top: -50px; font-size: 13px; margin-right: 40%;">Notepad++</p>
<a style="color: black;" href=""><p style="float: right; margin-top: -30px; font-size: 13px; margin-right: 45%;">VBscript</p></a>
</div>
<div href="#1234" style="color: black; margin: 20px; height: 80px; width: 82%; background-color: lightgrey;">
<a style="color: black;" href=""><img src="vbs.png" style=" margin-left: -3px;" width="73px" height="80px"></img></a>
<a style="color: black;" href=""><p style="float: right; font-size: 18px; margin-right: 68px; margin-top: 1px;"><b><u>VBS assistant</u></b></p></a>
<a style="color: black;" href=""><p style="float: right; margin-top: -50px; font-size: 13px; margin-right: 40%;">Notepad++</p>
<a style="color: black;" href=""><p style="float: right; margin-top: -30px; font-size: 13px; margin-right: 45%;">VBscript</p></a>
</div>
<div href="#1234" style="color: black; margin: 20px; height: 80px; width: 82%; background-color: lightgrey;">
<a style="color: black;" href=""><img src="vbs.png" style=" margin-left: -3px;" width="73px" height="80px"></img></a>
<a style="color: black;" href=""><p style="float: right; font-size: 18px; margin-right: 68px; margin-top: 1px;"><b><u>VBS assistant</u></b></p></a>
<a style="color: black;" href=""><p style="float: right; margin-top: -50px; font-size: 13px; margin-right: 40%;">Notepad++</p>
<a style="color: black;" href=""><p style="float: right; margin-top: -30px; font-size: 13px; margin-right: 45%;">VBscript</p></a>
</div>
<br><br><br><br><br><br><br><br>
</div>
<div style="margin-left: 400px; margin-top: 10px; background-color: #F4A460; width: 740px;">
<div id="quiz"></div>
<br>
<button id="submit">Get Results</button>
<div id="results" style="font-size: 20px;"></div>
</div>
<br style="clear: left;" />
<a href="Class_Vbs.html"><button id="GFG_DIV" style="position: sticky; border: none; height: 70px; width:130px; outline:none; left:100%; bottom: 30px; background-color: lightgreen;"><b style="font-size:20px;">Back <<<</b></button></a>
<script>
var myQuestions = [
{
question: "What dose VBS stand for",
answers: {
a: 'Visilbly Best Script',
b: 'Visilbly Bent Script',
c: 'Visilbly Biii Script'
},
correctAnswer: 'c'
},
{
question: "When did Vbscript come to life",
answers: {
a: '1933',
b: '1996',
c: '1939'
},
correctAnswer: 'b'
},
{
question: "Who started Vbscript",
answers: {
a: 'Google',
b: 'Mirosoft',
c: 'Jonh kenoty'
},
correctAnswer: 'b'
},
{
question: "What webserver did Vbs go on first",
answers: {
a: 'Internet expoler',
b: 'Safi',
c: 'Goole'
},
correctAnswer: 'a'
}
];
var quizContainer = document.getElementById('quiz');
var resultsContainer = document.getElementById('results');
var submitButton = document.getElementById('submit');
generateQuiz(myQuestions, quizContainer, resultsContainer, submitButton);
function generateQuiz(questions, quizContainer, resultsContainer, submitButton){
function showQuestions(questions, quizContainer){
// we'll need a place to store the output and the answer choices
var output = [];
var answers;
// for each question...
for(var i=0; i<questions.length; i++){
// first reset the list of answers
answers = [];
// for each available answer...
for(letter in questions[i].answers){
// ...add an html radio button
answers.push(
'<label>'
+ '<input type="radio" name="question'+i+'" value="'+letter+'">'
+ letter + ': '
+ questions[i].answers[letter]
+ '</label>'
);
}
// add this question and its answers to the output
output.push(
'<div class="question">' + questions[i].question + '</div>'
+ '<div class="answers">' + answers.join('') + '</div>'
);
}
// finally combine our output list into one string of html and put it on the page
quizContainer.innerHTML = output.join('');
}
function showResults(questions, quizContainer, resultsContainer){
// gather answer containers from our quiz
var answerContainers = quizContainer.querySelectorAll('.answers');
// keep track of user's answers
var userAnswer = '';
var numCorrect = 0;
// for each question...
for(var i=0; i<questions.length; i++){
// find selected answer
userAnswer = (answerContainers[i].querySelector('input[name=question'+i+']:checked')||{}).value;
// if answer is correct
if(userAnswer===questions[i].correctAnswer){
// add to the number of correct answers
numCorrect++;
// color the answers green
answerContainers[i].style.color = 'green';
}
// if answer is wrong or blank
else{
// color the answers red
answerContainers[i].style.color = 'red';
}
}
// show number of correct answers out of total
resultsContainer.innerHTML = numCorrect + ' out of ' + questions.length;
}
// show questions right away
showQuestions(questions, quizContainer);
// on submit, show results
submitButton.onclick = function(){
showResults(questions, quizContainer, resultsContainer);
}
if (numCorrect === 3){
alert("You passed");
}else{
alert("try again");
}
}
</script>
<div class=footer>
<br/>Owner of THINK S.P.A.R.K. and this website: Divyang Verma
<br/><i>Contact: +1 123-456-7890.</i>
<br/>Maybe subject to copyright<br/>
</div>
</body>
</html>