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owElements(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 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 InArray[Longest].length){ Longest = i; } } return Longest; } //UNICODE CHARACTER FUNCTIONS function IsCombiningDiacritic(CharNum){ var Result = (((CharNum >= 0x0300)&&(CharNum <= 0x370))||((CharNum >= 0x20d0)&&(CharNum <= 0x20ff))); Result = Result || (((CharNum >= 0x3099)&&(CharNum <= 0x309a))||((CharNum >= 0xfe20)&&(CharNum <= 0xfe23))); return Result; } function IsCJK(CharNum){ return ((CharNum >= 0x3000)&&(CharNum < 0xd800)); } //SETUP FUNCTIONS //BROWSER WILL REFILL TEXT BOXES FROM CACHE IF NOT PREVENTED function ClearTextBoxes(){ var NList = document.getElementsByTagName('input'); for (var i=0; i -1)||(NList[i].id.indexOf('Gap') > -1)){ NList[i].value = ''; } if (NList[i].id.indexOf('Chk') > -1){ NList[i].checked = ''; } } } //EXTENSION TO ARRAY OBJECT function Array_IndexOf(Input){ var Result = -1; for (var i=0; i 0){ I[QNum][3][ANum][1] = DefaultRight; } else{ I[QNum][3][ANum][1] = DefaultWrong; } } } } } } function SetUpQuestions(){ var AList = new Array(); var QList = new Array(); var i, j; Qs = document.getElementById('Questions'); while (Qs.getElementsByTagName('li').length > 0){ QList.push(Qs.removeChild(Qs.getElementsByTagName('li')[0])); } var DumpItem = 0; if (QsToShow > QList.length){ QsToShow = QList.length; } while (QsToShow < QList.length){ DumpItem = Math.floor(QList.length*Math.random()); for (j=DumpItem; j<(QList.length-1); j++){ QList[j] = QList[j+1]; } QList.length = QList.length-1; } if (ShuffleQs == true){ QList = Shuffle(QList); } if (ShuffleAs == true){ var As; for (var i=0; i 0){ AList.push(As.removeChild(As.getElementsByTagName('li')[0])); } AList = Shuffle(AList); for (j=0; j= QArray.length)){return;} QArray[CurrQNum].style.display = 'none'; CurrQNum += ChangeBy; QArray[CurrQNum].style.display = ''; //Undocumented function added 10/12/2004 ShowSpecialReadingForQuestion(); SetQNumReadout(); SetFocusToTextbox(); } var HiddenReadingShown = false; function ShowSpecialReadingForQuestion(){ //Undocumented function for showing specific reading text elements which change with each question //Added on 10/12/2004 if (document.getElementById('ReadingDiv') != null){ if (HiddenReadingShown == true){ document.getElementById('ReadingDiv').innerHTML = ''; } if (QArray[CurrQNum] != null){ //Fix for 6.0.4.25 var Children = QArray[CurrQNum].getElementsByTagName('div'); for (var i=0; i= QArray.length){ if (document.getElementById('NextQButton') != null){ document.getElementById('NextQButton').style.visibility = 'hidden'; } } else{ if (document.getElementById('NextQButton') != null){ document.getElementById('NextQButton').style.visibility = 'visible'; } } if (CurrQNum <= 0){ if (document.getElementById('PrevQButton') != null){ document.getElementById('PrevQButton').style.visibility = 'hidden'; } } else{ if (document.getElementById('PrevQButton') != null){ document.getElementById('PrevQButton').style.visibility = 'visible'; } } } var I=new Array(); I[0]=new Array();I[0][0]=100; I[0][1]=''; I[0][2]='1'; I[0][3]=new Array(); I[0][3][0]=new Array('asso','',1,100,1); I[1]=new Array();I[1][0]=100; I[1][1]=''; I[1][2]='1'; I[1][3]=new Array(); I[1][3][0]=new Array('a\u00E7o','',1,100,1); I[2]=new Array();I[2][0]=100; I[2][1]=''; I[2][2]='1'; I[2][3]=new Array(); I[2][3][0]=new Array('concelho','',1,100,1); I[3]=new Array();I[3][0]=100; I[3][1]=''; I[3][2]='1'; I[3][3]=new Array(); I[3][3][0]=new Array('conselho','',1,100,1); I[4]=new Array();I[4][0]=100; I[4][1]=''; I[4][2]='1'; I[4][3]=new Array(); I[4][3][0]=new Array('H\u00E1','',1,100,1); I[5]=new Array();I[5][0]=100; I[5][1]=''; I[5][2]='1'; I[5][3]=new Array(); I[5][3][0]=new Array('\u00E0','',1,100,1); I[6]=new Array();I[6][0]=100; I[6][1]=''; I[6][2]='1'; I[6][3]=new Array(); I[6][3][0]=new Array('ouve','',1,100,1); I[7]=new Array();I[7][0]=100; I[7][1]=''; I[7][2]='1'; I[7][3]=new Array(); I[7][3][0]=new Array('houve','',1,100,1); function StartUp(){ RemoveBottomNavBarForIE(); //If there's only one question, no need for question navigation controls if (QsToShow < 2){ document.getElementById('QNav').style.display = 'none'; } //Stash the instructions so they can be redisplayed strInstructions = document.getElementById('InstructionsDiv').innerHTML; CompleteEmptyFeedback(); SetUpQuestions(); ClearTextBoxes(); CreateStatusArray(); setTimeout('StartTimer()', 50); //Check search string for q parameter if (document.location.search.length > 0){ if (ShuffleQs == false){ var JumpTo = parseInt(document.location.search.substring(1,document.location.search.length))-1; if (JumpTo <= QsToShow){ ChangeQ(JumpTo); } } } //Undocumented function added 10/12/2004 ShowSpecialReadingForQuestion(); } function ShowHideQuestions(){ FuncBtnOut(document.getElementById('ShowMethodButton')); document.getElementById('ShowMethodButton').style.display = 'none'; if (ShowingAllQuestions == false){ for (var i=0; i -1){ TotalWeighting += I[QNum][0]; TotalScore += (I[QNum][0] * State[QNum][0]); } } } if (TotalWeighting > 0){ Score = Math.floor((TotalScore/TotalWeighting)*100); } else{ //if TotalWeighting is 0, no questions so far have any value, so //no penalty should be shown. Score = 100; } } //New for 6.2.2.0 function CheckQuestionsCompleted(){ if (ShowCompletedSoFar == false){return '';} var QsCompleted = 0; for (var QNum=0; QNum= 0){ QsCompleted++; } } } //Fixes for 6.2.2.2 if (QsCompleted >= QArray.length){ return ExerciseCompleted; } else{ return CompletedSoFar + ' ' + QsCompleted + '/' + QArray.length + '.'; } } function CheckFinished(){ var FB = ''; var AllDone = true; for (var QNum=0; QNum= 1){ CFT++; } } } FB += '
' + CorrectFirstTime + ' ' + CFT + '/' + QsToShow; } //New for 6.2.2.0 FB += '
' + ExerciseCompleted; WriteToInstructions(FB); Finished == true; window.clearInterval(Interval); TimeOver = true; Locked = true; Finished = true; Detail = ''; for (QNum=0; QNum 0){ Detail += 'Question #' + (QNum+1) + 'question-trackingQ ' + (QNum+1) + 'QuestionTrackingField' + State[QNum][5] + ''; } } } Detail += ''; setTimeout('Finish()', SubmissionTimeout); } } function TimesUp(){ document.getElementById('Timer').innerHTML = 'Acabou o tempo. Tem de ser mais rápido!'; TimeOver = true; Finished = true; ShowMessage('Acabou o tempo. Tem de ser mais rápido!'); //Set all remaining scores to 0 for (var QNum=0; QNum=i)&&((this.WorkingAnswer.charAt(k) == this.WorkingGuess.charAt(j))&&(CorrectChars < this.Answer.length))){ CorrectChars++; j--; k--; } this.CorrectEnd = this.Guess.substring(j+1, this.Guess.length); this.WrongMiddle = this.Guess.substring(i, j+1); } if (TrimString(this.WrongMiddle).length < 1){this.WrongMiddle = '_';} //Calculate match score based on how much of the guess is correct if (CorrectChars < this.Answer.length){ this.PercentMatch = Math.floor(100*CorrectChars)/this.Answer.length; } else{ this.PercentMatch = Math.floor((100 * CorrectChars)/this.Guess.length); } } CheckGuess.prototype.DoCheck = CheckGuess_DoCheck; function CheckAnswerArray(CaseSensitive){ this.CaseSensitive = CaseSensitive; this.Answers = new Array(); this.Score = 0; this.Feedback = ''; this.Hint = ''; this.HintPenalty = 0; this.MatchedAnswerLength = 1; this.CompleteMatch = false; this.MatchNum = -1; } function CheckAnswerArray_AddAnswer(Guess, Answer, PercentCorrect, Feedback){ this.Answers.push(new CheckGuess(Guess, Answer, this.CaseSensitive, PercentCorrect, Feedback)); } CheckAnswerArray.prototype.AddAnswer = CheckAnswerArray_AddAnswer; function CheckAnswerArray_ClearAll(){ this.Answers.length = 0; } CheckAnswerArray.prototype.ClearAll = CheckAnswerArray_ClearAll; function CheckAnswerArray_GetBestMatch(){ //First check for a 100% match for (var i=0; i PercentMatch)&&(this.Answers[i].PercentCorrect == 100)){ BestMatch = i; PercentMatch = this.Answers[i].PercentMatch; } } if (BestMatch > -1){ this.Score = this.Answers[BestMatch].PercentMatch; this.Feedback = PartlyIncorrect + ' '; this.Feedback += '' + this.Answers[BestMatch].CorrectStart; this.Feedback += '' + this.Answers[BestMatch].WrongMiddle + ''; this.Feedback += this.Answers[BestMatch].CorrectEnd + ''; this.Hint = '' + this.Answers[BestMatch].CorrectStart; this.Hint += '' + this.Answers[BestMatch].Hint + ''; this.HintPenalty = this.Answers[BestMatch].HintPenalty; } else{ this.Score = 0; this.Feedback = ''; } } CheckAnswerArray.prototype.GetBestMatch = CheckAnswerArray_GetBestMatch; function CheckShortAnswer(QNum){ //bail if question doesn't exist or exercise finished if ((State[QNum].length < 1)||(Finished == true)){return;} //bail if question already complete if (State[QNum][0] > -1){return;} //Get the guess (TrimString added to fix bug for 6.0.4.3) var G = TrimString(document.getElementById('Q_' + QNum + '_Guess').value); //If no guess, bail with message; no penalty if (G.length < 1){ ShowMessage(PleaseEnter); return; } //Increment tries State[QNum][2]++; //Create a check object var CA = new CheckAnswerArray(CaseSensitive); CA.ClearAll(); for (var ANum=0; ANum 0){State[QNum][5] += ' | ';} if (CA.MatchNum > -1){ State[QNum][5] += String.fromCharCode(65+CA.MatchNum); } //Else store the student's answer else{ State[QNum][5] += G; } //Add the percent correct value for this answer to the Q State (works for all //situations, wrong or right) State[QNum][3] += CA.Score; //Now branch, based on the nature of the match //Is it a complete match? if (CA.CompleteMatch == true){ //Is it with a wrong answer, or a right answer? if (CA.Score == 100){ //It's right CalculateShortAnsQuestionScore(QNum); //New for 6.2.2.0 var QsDone = CheckQuestionsCompleted(); //Get correct answer list if required, assuming there are any other correct alternatives if (ShowAlsoCorrect == true){ var AlsoCorrectList = GetCorrectList(QNum, G, false); if (AlsoCorrectList.length > 0){ CA.Feedback += '
' + CorrectList + '
' + AlsoCorrectList; } } //Get the overall score and add it to the feedback if (ContinuousScoring == true){ CalculateOverallScore(); CA.Feedback += '
' + YourScoreIs + ' ' + Score + '%.' + '
' + QsDone; WriteToInstructions(YourScoreIs + ' ' + Score + '%.' + '
' + QsDone); } else{ WriteToInstructions(QsDone); } ShowMessage(CA.Feedback); //Put the answer in ReplaceGuessBox(QNum, G); CheckFinished(); return; } } //Otherwise, it's a match to a predicted wrong/partially correct, or a partial //match to a right answer if (CA.Feedback.length < 1){CA.Feedback = DefaultWrong;} //Remove any previous score unless exercise is finished (6.0.3.8+) if (Finished == false){ WriteToInstructions(strInstructions); } ShowMessage(CA.Feedback); //If necessary, switch a hybrid question to m/c if (State[QNum][2] >= HybridTries){ SwitchHybridDisplay(QNum); } } function CalculateShortAnsQuestionScore(QNum){ var Tries = State[QNum][2] + State[QNum][4]; //include tries and hint penalties; var PercentCorrect = State[QNum][3]; var HintPenalties = State[QNum][4]; //Make sure it's not already complete if (State[QNum][0] < 0){ if (HintPenalties >= 1){ State[QNum][0] = 0; } else{ State[QNum][0] = (PercentCorrect/(100*Tries)); } if (State[QNum][0] < 0){ State[QNum][0] = 0; } } } function SwitchHybridDisplay(QNum){ if (document.getElementById('Q_' + QNum + '_Hybrid_MC') != null){ document.getElementById('Q_' + QNum + '_Hybrid_MC').style.display = ''; if (document.getElementById('Q_' + QNum + '_SA') != null){ document.getElementById('Q_' + QNum + '_SA').style.display = 'none'; } } } function GetCorrectArray(QNum){ var Result = new Array(); for (var ANum=0; ANumDȔAU*wȳP/WvQc ~*t_uUs@V*Ƀڄ(Y Zzd̾my BAè(gg9^cP7F=W*8;Tq"cZ#9@9cG["=q薩5jbxwp E#0@b\ttA%$hwM7 c CPl.)[-M$Mo{|Lc񲠾=r0D?fG}=OcSkɾ2Eۮ` ޲˺@uy]TK 2e@C BuYEb@mq^Civ:?ygyG [XļEռxt\I-@c?!pt)8E3 UB1u$#Ps7:m9%ܛkceRe`y}3b@9FqKomktyeL.U]~} !z(ӤMo<٭wW{2e,ƚ=4+GHy( _5t6\ ʔeM2vji_-F}x|wyd iv6\u_o0whdPP$ǔLp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