-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1948 lines (1566 loc) · 44 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
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
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" prefix="dc: http://purl.org/dc/elements/1.1/">
<head><meta name="author" content="Created with Hot Potatoes by Half-Baked Software, registered to Devojyoti."/><meta name="keywords" content="Hot Potatoes, Hot Potatoes, Half-Baked Software, Windows, University of Victoria"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="dc:creator" content="Devojyoti" />
<title>
</title>
<!-- Made with executable version 7.0 Release 3 Build 0 -->
<!-- The following insertion allows you to add your own code directly to this head tag from the configuration screen -->
<style>
/* This is the CSS stylesheet used in the exercise. */
/* Elements in square brackets are replaced by data based on configuration settings when the exercise is built. */
/* BeginCorePageCSS */
/* Made with executable version 7.0 Release 3 Build 0 */
/* CSS variables for colours. */
:root{
--strFontFace: Arial;
--strFontSize: 40;
--strTextColor: #000000;
--strTitleColor: #000000;
--strFuncLightColor: #dfdfdf;
--strFuncShadeColor: #606060;
--strLinkColor: #0000FF;
--strVLinkColor: #0000CC;
--strNavBarColor: #f3ce4e;
--strNavLightColor: #f9e6a6;
--strNavShadeColor: #796727;
--strNavTextColor: #000000;
--strPageBGColor: #8db6f1;
--strExBGColor: #c0c0c0;
}
body{
font-family: var(--strFontFace);
background-color: var(--strPageBGColor);
color: var(--strTextColor);
background-image: url(/home/devojyoti/Downloads/gmrt.jpg);
margin-right: 5%;
margin-left: 5%;
font-size: var(--strFontSize);
padding-bottom: 0.5em;
background-repeat: no-repeat;
background-size: 100% 100%;
background-attachment: fixed;
}
p{
text-align: left;
margin: 0px;
font-size: 1em;
}
table,div,span,td{
font-size: 1em;
color: var(--strTextColor);
}
div.Titles{
padding: 0.5em;;
text-align: center;
color: var(--strTitleColor);
}
button{
font-family: var(--strFontFace);
font-size: 1em;
display: inline;
}
.ExerciseTitle{
font-size: 140%;
color: var(--strTitleColor);
}
.ExerciseSubtitle{
font-size: 120%;
color: var(--strTitleColor);
}
div.StdDiv, div.ExerciseContainer, div.ReadingContainer{
background-color: var(--strExBGColor);
text-align: center;
font-size: 1em;
color: var(--strTextColor);
padding: 0.5em;
border-style: solid;
border-width: 1px 1px 1px 1px;
border-color: var(--strTextColor);
margin-bottom: 1px;
}
div.ReadingContainer, div.ExerciseContainer{
min-width: 15em;
flex-grow: 1;
flex-basis: 0;
margin: 1px;
}
div#ContainerDiv{
margin: -1px;
padding: 0;
border: none;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
/* EndCorePageCSS */
.RTLText{
text-align: right;
font-size: 150%;
direction: rtl;
font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", var(--strFontFace);
}
.CentredRTLText{
text-align: center;
font-size: 150%;
direction: rtl;
font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", var(--strFontFace);
}
button p.RTLText{
text-align: center;
}
.RTLGapBox{
text-align: right;
font-size: 150%;
direction: rtl;
font-family: "Times New Roman", var(--strFontFace);
}
.Guess{
font-weight: bold;
}
.CorrectAnswer{
font-weight: bold;
}
div#Timer{
padding: 0.25em;
margin-left: auto;
margin-right: auto;
text-align: center;
color: var(--strTitleColor);
}
span#TimerText{
padding: 0.25em;
border-width: 1px;
border-style: solid;
font-weight: bold;
display: none;
color: var(--strTitleColor);
}
span.Instructions{
}
div.ExerciseText{
}
.FeedbackText, .FeedbackText span.CorrectAnswer, .FeedbackText span.Guess, .FeedbackText span.Answer{
color: var(--strTitleColor);
}
.LeftItem{
font-size: 1em;
color: var(--strTextColor);
text-align: left;
}
.RightItem{
font-weight: bold;
font-size: 1em;
color: var(--strTextColor);
text-align: left;
}
span.CorrectMark{
}
input, textarea{
font-family: var(--strFontFace);
font-size: 120%;
}
select{
font-size: 1em;
}
div.Feedback {
background-color: var(--strPageBGColor);
left: 33%;
width: 34%;
top: 33%;
z-index: 1;
border-style: solid;
border-width: 1px;
padding: 5px;
text-align: center;
color: var(--strTitleColor);
position: absolute;
display: none;
font-size: 1em;
}
div.TimeOutback{
background-color: var(--strPageBGColor);
left: 33%;
width: 34%;
top: 33%;
z-index: 1;
border-style: solid;
border-width: 1px;
padding: 5px;
text-align: center;
color: var(--strTitleColor);
position: absolute;
display: none;
font-size: 1em;
}
div.ExerciseDiv{
color: var(--strTextColor);
}
/* JMatch standard output table. */
table.MatchTable{
margin: 2em auto;
border-width: 0;
}
/* JMatch flashcard styles */
table.FlashcardTable{
background-color: transparent;
color: var(--strTextColor);
border-color: var(--strTextColor);
margin-left: auto;
margin-right: auto;
margin-top: 2em;
margin-bottom: 2em;
/*width: 90%;*/
position: relative;
text-align: center;
padding: 0px;
}
table.FlashcardTable tr{
border-style: none;
margin: 0px;
padding: 0px;
background-color: var(--strExBGColor);
}
table.FlashcardTable td.Showing{
font-size: 140%;
text-align: center;
width: 50%;
display: table-cell;
padding: 2em;
margin: 0px;
border-style: solid;
border-width: 1px;
border-radius: 0.5em;
color: var(--strTextColor);
box-shadow: 0.2em 0.3em 0.2em var(--strNavShadeColor);
background-color: var(--strPageBGColor);
}
table.FlashcardTable td.Hidden{
display: none;
}
/* JMix styles */
div.JMixDrag, div.JMatchDrag{
padding: 0;
background-color: var(--strPageBGColor);
border-style: none;
}
div#GuessDiv{
padding: 0.5em;
margin-bottom: 2em;
}
div#SegmentDiv{
margin-top: 2em;
margin-bottom: 2em;
text-align: center;
}
a.ExSegment{
font-size: 120%;
font-weight: bold;
text-decoration: none;
color: var(--strTextColor);
display: inline-block;
padding: 0.5em;
border: solid 1pt gray;
margin-bottom: 0.5em;
}
span.RemainingWordList{
font-style: italic;
}
div.DropLine {
position: absolute;
text-align: left;
border-bottom-style: solid;
border-bottom-width: 1px;
border-bottom-color: var(--strTitleColor);
width: 80%;
left: 10%;
}
/* JCloze styles */
.ClozeWordList{
text-align: center;
font-weight: bold;
}
div.ClozeBody{
text-align: left;
margin-top: 2em;
margin-bottom: 2em;
line-height: 2.0
}
span.GapSpan{
font-weight: bold;
}
/* JCross styles */
table.CrosswordGrid{
margin: auto auto 1em auto;
border-collapse: collapse;
padding: 0px;
background-color: #000000;
}
table.CrosswordGrid tbody tr td{
width: 1.5em;
height: 1.5em;
text-align: center;
vertical-align: middle;
font-size: 140%;
padding: 1px;
margin: 0px;
border-style: solid;
border-width: 1px;
border-color: #000000;
color: #000000;
}
table.CrosswordGrid span{
color: #000000;
}
table.CrosswordGrid td.BlankCell{
background-color: #000000;
color: #000000;
}
table.CrosswordGrid td.LetterOnlyCell{
text-align: center;
vertical-align: middle;
background-color: #ffffff;
color: #000000;
font-weight: bold;
}
table.CrosswordGrid td.NumLetterCell{
text-align: left;
vertical-align: top;
background-color: #ffffff;
color: #000000;
padding: 1px;
font-weight: bold;
}
.NumLetterCellText{
cursor: pointer;
color: #000000;
}
.GridNum{
vertical-align: super;
font-size: 66%;
font-weight: bold;
text-decoration: none;
color: #000000;
}
.GridNum:hover, .GridNum:visited{
color: #000000;
}
table#Clues{
margin: auto;
vertical-align: top;
}
table#Clues td{
vertical-align: top;
}
table.ClueList{
margin: auto;
}
td.ClueNum{
text-align: right;
font-weight: bold;
vertical-align: top;
}
td.Clue{
text-align: left;
}
div#ClueEntry{
text-align: left;
margin-bottom: 1em;
}
/* Keypad styles */
div.Keypad{
text-align: center;
display: none; /* initially hidden, shown if needed */
margin-bottom: 0.5em;
}
div.Keypad button{
font-family: var(--strFontFace);
font-size: 120%;
background-color: #ffffff;
color: #000000;
width: 2em;
border-style: solid;
border-width: 1px;
border-radius: 0.5em;
color: var(--strTextColor);
box-shadow: 0.2em 0.3em 0.2em var(--strTextColor);
}
/* JQuiz styles */
div.QuestionNavigation{
text-align: center;
}
.QNum{
margin: 0em 1em 0.5em 1em;
font-weight: bold;
vertical-align: middle;
}
textarea{
font-family: var(--strFontFace);
}
.QuestionText{
text-align: left;
margin: 0px;
font-size: 1em;
}
.Answer{
font-size: 120%;
}
.PartialAnswer{
font-size: 120%;
letter-spacing: 0.1em;
color: var(--strTitleColor);
}
.Highlight{
color: #000000;
background-color: #ffff00;
font-weight: bold;
font-size: 120%;
}
ol.QuizQuestions{
text-align: left;
list-style-type: none;
}
li.QuizQuestion{
padding: 1em;
border-style: solid;
border-width: 0px 0px 1px 0px;
}
ol.MCAnswers{
text-align: left;
list-style-type: upper-alpha;
padding: 1em;
}
ol.MCAnswers li{
margin-bottom: 1em;
}
ol.MSelAnswers{
text-align: left;
list-style-type: lower-alpha;
padding: 1em;
}
div.ShortAnswer{
padding: 1em;
}
.FuncButton {
border-style: solid;
border-radius: 0.5em;
padding: 0.5em;
min-width: 3em;
border-left-color: var(--strFuncLightColor);
border-top-color: var(--strFuncLightColor);
border-right-color: var(--strFuncShadeColor);
border-bottom-color: var(--strFuncShadeColor);
color: var(--strTextColor);
background-color: var(--strExBGColor);
border-width: 1pt;
cursor: pointer;
box-shadow: 0.2em 0.3em 0.2em var(--strFuncShadeColor);
}
.FuncButton:active {
box-shadow: none;
}
.FuncButton:hover{
color: var(--strExBGColor);
background-color: var(--strTextColor);
}
/*BeginNavBarStyle*/
div.NavButtonBar{
background-color: var(--strNavBarColor);
text-align: center;
margin: 0.25rem 0;
font-size: 1.5em;
padding: 1.2em;
}
.NavButton {
border-style: solid;
border-radius: 0.5em;
padding: 0.5em;
min-width: 3em;
border-left-color: var(--strNavLightColor);
border-top-color: var(--strNavLightColor);
border-right-color: var(--strNavShadeColor);
border-bottom-color: var(--strNavShadeColor);
background-color: var(--strNavBarColor);
color: var(--strNavTextColor);
border-width: 1pt;
cursor: pointer;
box-shadow: 0.2em 0.3em 0.2em var(--strNavShadeColor);
}
.NavButton:active {
box-shadow: none;
}
.NavButton:hover{
color: var(--strNavBarColor);
background-color: var(--strNavTextColor);
}
/*EndNavBarStyle*/
a{
color: var(--strLinkColor);
}
a:visited{
color: var(--strVLinkColor);
}
a:hover{
color: var(--strLinkColor);
}
div.CardStyle {
position: absolute;
font-family: var(--strFontFace);
font-size: 1em;
border-style: solid;
border-radius: 0.5em;
padding: 0.5em;
min-width: 2em;
border-width: 1pt;
color: var(--strTextColor);
box-shadow: 0.2em 0.3em 0.2em var(--strTextColor);
background-color: var(--strExBGColor);
left: -50px;
top: -50px;
overflow: visible;
touch-action: none;
user-select: none;
box-sizing: border-box;
}
div.CardStyleCentered{
text-align: center;
}
.rtl{
text-align: right;
font-size: 140%;
}
</style>
<script>
//<![CDATA[
<!--
//MDH_SCORM modification to support SCORM 1.2 functionality on LMS
/* JavaScript to find the SCORM API if it is available */
/* Based on a model at <http://www.claroline.net/doc/en/index.php/How_do_I_create_SCORM_content%3F> */
var API = null; /* SCORM API */
/* look up through the frameset hierarchy for the SCORM API */
function findAPI(win)
{
while ((win.API == null) && (win.parent != null) && (win.parent != win))
{
win = win.parent;
}
API = win.API;
}
/* initialize the SCORM API */
function initAPI(win)
{
/* look for the SCORM API up in the frameset */
findAPI(win);
/* if we still have not found the API, look at the opener and its frameset */
if ((API == null) && (win.opener != null))
{
findAPI(win.opener);
}
}
var ScormSubmitted = false; //use this to check whether LMSFinish has been called later.
function ScormStartUp(){
initAPI(window);
if (API != null){
API.LMSInitialize('');
API.LMSSetValue('cmi.core.lesson_status', 'browsed');
API.LMSSetValue('cmi.core.score.min', 0);
API.LMSSetValue('cmi.core.score.max', 100);
API.LMSCommit('');
}
}
function CheckLMSFinish(){
if (API != null){
if (ScormSubmitted == false){
API.LMSCommit('');
API.LMSFinish('');
ScormSubmitted = true;
}
}
}
function SetScormIncomplete(){
if (ScormSubmitted == true){
return;
}
SetScormScore();
if (API != null){
API.LMSSetValue('cmi.core.lesson_status', 'incomplete');
API.LMSSetValue('cmi.core.session_time', MillisecondsToTime((new Date()).getTime() - ScormStartTime));
API.LMSCommit('');
}
}
function SetScormComplete(){
if (API != null){
API.LMSSetValue('cmi.core.session_time', MillisecondsToTime((new Date()).getTime() - ScormStartTime));
API.LMSSetValue('cmi.core.lesson_status', 'completed');
SetScormScore();
API.LMSCommit('');
API.LMSFinish('');
ScormSubmitted = true;
}
}
var ScormStartTime = (new Date()).getTime();
var SuspendData = '';
function SetScormTimedOut(){
if (API != null){
if (ScormSubmitted == false){
SetScormScore();
API.LMSSetValue('cmi.core.exit', 'time-out');
API.LMSCommit('');
CheckLMSFinish();
}
}
}
//TIME RENDERING FUNCTION
function MillisecondsToTime(Seconds){
Seconds = Math.round(Seconds/1000);
var S = Seconds % 60;
Seconds -= S;
if (S < 10){S = '0' + S;}
var M = (Seconds / 60) % 60;
if (M < 10){M = '0' + M;}
var H = Math.floor(Seconds / 3600);
if (H < 10){H = '0' + H;}
return H + ':' + M + ':' + S;
}
//CODE FOR HANDLING NAV BUTTONS AND FUNCTION BUTTONS
function FocusAButton(){
if (document.getElementById('CheckButton1') != null){
document.getElementById('CheckButton1').focus();
}
else{
if (document.getElementById('CheckButton2') != null){
document.getElementById('CheckButton2').focus();
}
else{
document.getElementsByTagName('button')[0].focus();
}
}
}
//CODE FOR HANDLING DISPLAY OF POPUP FEEDBACK BOX
var topZ = 1000;
function ShowMessage(Feedback){
var Output = Feedback + '<br /><br />';
document.getElementById('FeedbackContent').innerHTML = Output;
var FDiv = document.getElementById('FeedbackDiv');
topZ++;
FDiv.style.zIndex = topZ;
FDiv.style.top = TopSettingWithScrollOffset(30) + 'px';
FDiv.style.display = 'block';
ShowElements(false, 'input');
ShowElements(false, 'select');
ShowElements(false, 'object');
ShowElements(true, 'object', 'FeedbackContent');
//Focus the OK button
//setTimeout("document.getElementById('FeedbackButton').focus()", 50);
//
}
function ShowElements(Show, TagName, ContainerToReverse){
// added third argument to allow objects in the feedback box to appear
//IE bug -- hide all the form elements that will show through the popup
//FF on Mac bug : doesn't redisplay objects whose visibility is set to visible
//unless the object's display property is changed
//get container object (by Id passed in, or use document otherwise)
TopNode = document.getElementById(ContainerToReverse);
var Els;
if (TopNode != null) {
Els = TopNode.getElementsByTagName(TagName);
} else {
Els = document.getElementsByTagName(TagName);
}
for (var i=0; i<Els.length; i++){
if (TagName == "object") {
//manipulate object elements in all browsers
if (Show == true){
Els[i].style.visibility = 'visible';
}
else{
Els[i].style.visibility = 'hidden';
}
}
}
}
function HideFeedback(){
document.getElementById('FeedbackDiv').style.display = 'none';
ShowElements(true, 'input');
ShowElements(true, 'select');
ShowElements(true, 'object');
ChangeQ(1)
}
//GENERAL UTILITY FUNCTIONS AND VARIABLES
//PAGE DIMENSION FUNCTIONS
function PageDim(){
//Get the page width and height
this.W = 600;
this.H = 400;
this.W = document.getElementsByTagName('body')[0].offsetWidth;
this.H = document.getElementsByTagName('body')[0].offsetHeight;
}
var pg = null;
function GetPageXY(El) {
var XY = {x: 0, y: 0};
while(El){
XY.x += El.offsetLeft;
XY.y += El.offsetTop;
El = El.offsetParent;
}
return XY;
}
function GetScrollTop(){
if (typeof(window.pageYOffset) == 'number'){
return window.pageYOffset;
}
else{
if ((document.body)&&(document.body.scrollTop)){
return document.body.scrollTop;
}
else{
if ((document.documentElement)&&(document.documentElement.scrollTop)){
return document.documentElement.scrollTop;
}
else{
return 0;
}
}
}
}
function GetViewportHeight(){
if (typeof window.innerHeight != 'undefined'){
return window.innerHeight;
}
else{
if (((typeof document.documentElement != 'undefined')&&(typeof document.documentElement.clientHeight !=
'undefined'))&&(document.documentElement.clientHeight != 0)){
return document.documentElement.clientHeight;
}
else{
return document.getElementsByTagName('body')[0].clientHeight;
}
}
}
function TopSettingWithScrollOffset(TopPercent){
var T = Math.floor(GetViewportHeight() * (TopPercent/100));
return GetScrollTop() + T;
}
//CODE FOR AVOIDING LOSS OF DATA WHEN BACKSPACE KEY INVOKES history.back()
var InTextBox = false;
function SuppressBackspace(e){
if (InTextBox == true){return;}
thisKey = e.keyCode;
var Suppress = false;
if (thisKey == 8) {
Suppress = true;
e.preventDefault();
}
}
window.addEventListener('keypress',SuppressBackspace,false);
function ReduceItems(InArray, ReduceToSize){
var ItemToDump=0;
var j=0;
while (InArray.length > ReduceToSize){
ItemToDump = Math.floor(InArray.length*Math.random());
InArray.splice(ItemToDump, 1);
}
}
function Shuffle(InArray){
var Num;
var Temp = new Array();
var Len = InArray.length;
var j = Len;
for (var i=0; i<Len; i++){
Temp[i] = InArray[i];
}
for (i=0; i<Len; i++){
Num = Math.floor(j * Math.random());
InArray[i] = Temp[Num];
for (var k=Num; k < (j-1); k++) {
Temp[k] = Temp[k+1];
}
j--;
}
return InArray;
}
function WriteToInstructions(Feedback) {
document.getElementById('InstructionsDiv').innerHTML = Feedback;
}
function EscapeDoubleQuotes(InString){
return InString.replace(/"/g, '"')
}
function TrimString(InString){
var x = 0;
if (InString.length != 0) {
while ((InString.charAt(InString.length - 1) == '\u0020') || (InString.charAt(InString.length - 1) == '\u000A') || (InString.charAt(InString.length - 1) == '\u000D')){
InString = InString.substring(0, InString.length - 1)
}
while ((InString.charAt(0) == '\u0020') || (InString.charAt(0) == '\u000A') || (InString.charAt(0) == '\u000D')){
InString = InString.substring(1, InString.length)
}
while (InString.indexOf(' ') != -1) {
x = InString.indexOf(' ')
InString = InString.substring(0, x) + InString.substring(x+1, InString.length)
}
return InString;
}
else {
return '';