'; if (AllCorrect == false){ Output += Incorrect; } ShowMessage(Output); setTimeout('WriteToInstructions(Output)', 50); Score = TotalScore; CompileGuesses(); if ((AllCorrect == true)||(Finished == true)){ TimeOver = true; Locked = true; Finished = true; } } function TrackFocus(BoxNumber){ CurrentWord = BoxNumber; InTextBox = true; } function LeaveGap(){ InTextBox = false; } function CheckBeginning(Guess, Answer){ var OutString = ''; var i = 0; var UpperGuess = ''; var UpperAnswer = ''; if (CaseSensitive == false) { UpperGuess = Guess.toUpperCase(); UpperAnswer = Answer.toUpperCase(); } else { UpperGuess = Guess; UpperAnswer = Answer; } while (UpperGuess.charAt(i) == UpperAnswer.charAt(i)) { OutString += Guess.charAt(i); i++; } OutString += Answer.charAt(i); return OutString; } function GetGapValue(GNum){ var RetVal = ''; if ((GNum<0)||(GNum>=I.length)){return RetVal;} if (document.getElementById('Gap' + GNum) != null){ RetVal = document.getElementById('Gap' + GNum).value; RetVal = TrimString(RetVal); } else{ RetVal = State[GNum].Guesses[State[GNum].Guesses.length-1]; } return RetVal; } function SetGapValue(GNum, Val){ if ((GNum<0)||(GNum>=I.length)){return;} if (document.getElementById('Gap' + GNum) != null){ document.getElementById('Gap' + GNum).value = Val; document.getElementById('Gap' + GNum).focus(); } } function SetCorrectAnswer(GNum, Val){ if ((GNum<0)||(GNum>=I.length)){return;} if (document.getElementById('GapSpan' + GNum) != null){ document.getElementById('GapSpan' + GNum).innerHTML = Val; } } function FindCurrent() { var x = 0; FoundCurrent = -1; //Test the current word: //If its state is not set to already correct, check the word. if (State[CurrentWord].AnsweredCorrectly == false){ if (CheckAnswer(CurrentWord, false) < 0){ return CurrentWord; } } x=CurrentWord + 1; while (x
Cloze passages
Gap-fill exercise
Fill in all the gaps, then press "Check" to check your answers. Use the "Hint" button to get a free letter if an answer is giving you trouble. You can also click on the "[?]" button to get a clue. Note that you will lose points if you ask for hints or clues!