'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function DisplayExercise(){ //Build the output string var OutString = ''; OutString += ''; OutString += ' '; OutString += '
'; OutString += TitleCode; OutString += Buttons1; OutString += BuiltExercise; OutString += Buttons2; OutString += BuiltClues; OutString += NavBar; OutString += '
'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame BottomFrame.document.clear(); BottomFrame.document.open(); BottomFrame.document.write(OutString); BottomFrame.document.close(); } function BuildClue(ClueNum,x,y,Across){ var OutString = ''; if (Across == true){ if (ClueNum >= A.length){ return ''; } if (A[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j= D.length){ return ''; } if (D[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i 0){ OutString += '
'; } OutString = OutString + 'Verticalement ' + ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } L = new Array(); L[0] = new Array('','','I','','','','','','','','D','','','','','','','','',''); L[1] = new Array('','','S','A','R','A','G','O','S','S','E','','L','A','N','C','E','L','O','T'); L[2] = new Array('O','','E','','','','','C','','','C','','','','','','','','','R'); L[3] = new Array('I','','U','','','','','','','G','A','U','L','O','I','S','','','','I'); L[4] = new Array('L','A','T','I','N','','C','','','','S','','','','','','','C','','S'); L[5] = new Array('','R','','','','','H','','','','Y','','','M','O','R','H','O','L','T'); L[6] = new Array('','T','','','J','E','R','U','S','A','L','E','M','','','','','C','','A'); L[7] = new Array('','H','','','O','','E','','','','L','','','','G','','','T','','N'); L[8] = new Array('','U','','','N','O','T','R','E','D','A','M','E','','A','U','D','E','',''); L[9] = new Array('','R','','','G','','I','','','','B','','','','N','','','A','',''); L[10] = new Array('','','','','L','','E','','','J','E','A','N','D','E','M','E','U','N','G'); L[11] = new Array('','','A','','E','','N','','','','','','','','L','','','','',''); L[12] = new Array('','','L','O','U','I','S','I','X','','','','','R','O','M','A','N','E','S'); L[13] = new Array('','','I','','R','','','','','','M','','R','','N','','','','P',''); L[14] = new Array('','','E','','','','','','','','A','','I','','','','','','I',''); L[15] = new Array('M','O','N','T','C','O','R','B','I','E','R','','M','A','R','C','','','T',''); L[16] = new Array('','','O','','','','','','','','S','','B','','','','','','A',''); L[17] = new Array('B','E','R','N','A','R','D','','','F','I','N','A','M','O','R','','','P',''); L[18] = new Array('','','','','','','','','','','L','','U','','','','','','H',''); L[19] = new Array('','','','','','L','A','I','S','S','E','','D','','C','O','N','T','E',''); C = new Array(); C[0] = new Array(0,0,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,0,0,6); C[2] = new Array(7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(9,10,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,12,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0); C[8] = new Array(0,0,0,0,16,0,0,0,0,0,0,0,0,0,17,0,0,0,0,0); C[9] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,20,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,22,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,23,0,24,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(25,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(27,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(0,0,0,0,0,29,0,0,0,0,0,0,0,0,30,0,0,0,0,0); G = new Array(); G[0] = new Array('','','','','','','','','','','','','','','','','','','',''); G[1] = new Array('','','','','','','','','','','','','','','','','','','',''); G[2] = new Array('','','','','','','','','','','','','','','','','','','',''); G[3] = new Array('','','','','','','','','','','','','','','','','','','',''); G[4] = new Array('','','','','','','','','','','','','','','','','','','',''); G[5] = new Array('','','','','','','','','','','','','','','','','','','',''); G[6] = new Array('','','','','','','','','','','','','','','','','','','',''); G[7] = new Array('','','','','','','','','','','','','','','','','','','',''); G[8] = new Array('','','','','','','','','','','','','','','','','','','',''); G[9] = new Array('','','','','','','','','','','','','','','','','','','',''); G[10] = new Array('','','','','','','','','','','','','','','','','','','',''); G[11] = new Array('','','','','','','','','','','','','','','','','','','',''); G[12] = new Array('','','','','','','','','','','','','','','','','','','',''); G[13] = new Array('','','','','','','','','','','','','','','','','','','',''); G[14] = new Array('','','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[3]='Ville chrétienne assiégée par Charlemagne'; A[5]='Le chevalier amant de la reine Guenièvre'; A[8]='Habitant de la Gaule'; A[9]='La langue vulgaire à l\'origine du roman'; A[13]='Le monstre tué par Tristan'; A[14]='La ville que les croisés devaient délivrer des infidèles'; A[16]='Pour la prier, Villon a écrit une ballade célèbre'; A[17]='La fiancée de Roland qui meurt de douleur'; A[18]='Un des auteurs du Roman de la Rose'; A[20]='Le roi qui meurt de la peste pendant la VIIIe croisade'; A[21]='Ainsi sont appelées les langues issues du latin'; A[25]='Le véritable nom de Villon était François de...'; A[26]='Le mari de Iseut la Blonde'; A[27]='Le saint qui a prêché la IIe croisade'; A[28]='Ainsi on appelle l\'amour courtois'; A[29]='La strophe de la chanson de geste'; A[30]='En ancien français a le sens général de récit'; D = new Array(); D[1]='Amoureuse de Tristan'; D[2]='Le vers de la chanson de geste'; D[4]='Langue romane à l\'origine du provençal'; D[6]='Épouse Iseut aux Blanches Mains'; D[7]='Langue romane dont fait partie le francien'; D[10]='La légende de ce roi a été écrite en roman par le clerc Wace'; D[11]='En 1291, battus par les musulmans, quittent la Palestine'; D[12]='Auteur du script du film L\'éternel retour'; D[14]='Il chantait des poèmes en s\'accompagnant de musique'; D[15]='Il trahit Roland'; D[19]='La reine mère de Richard au Coeur de Lion'; D[22]='Un autre titre pour La ballade des pendus'; D[23]='Roi de Saragosse'; D[24]='L\'auteur du Bal des pendus'; function StartUp(){ BuildExercise(); WriteFeedback(Instructions); DisplayExercise(); } function CheckAnswers(){ var AllCorrect = true; var TotLetters = 0; var CorrectLetters = 0; //Check each letter for (var i=0; i'; } Output += YourScoreIs + ' ' + Score + '%.
'; if (AllCorrect == false){ Output += '
' + Incorrect; Penalties++; } BuildExercise(); WriteFeedback(Output); DisplayExercise(); } function DoNothing(){} function Blank(){ return ' ©Half-Baked Software. Loading... '; } //--> //]]> -->