'; 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('','F','R','O','N','D','E','','','','','','','','V','','','','','F'); L[1] = new Array('','E','','','','','','','V','','','M','A','Z','A','R','I','N','','L'); L[2] = new Array('','R','I','C','H','E','L','I','E','U','','','','','U','','','','','E'); L[3] = new Array('','M','','','','','','','R','','','P','','','G','','','','','U'); L[4] = new Array('R','A','C','I','N','E','','','S','A','C','R','E','','E','','','','','V'); L[5] = new Array('','T','','','','','','','A','','','E','','P','L','E','I','A','D','E'); L[6] = new Array('','','','H','E','N','R','I','I','V','','C','','','A','','','','',''); L[7] = new Array('','','J','','','','','','L','','B','I','E','N','S','E','A','N','C','E'); L[8] = new Array('','','E','','','','','','L','','','O','','','','','','','','D'); L[9] = new Array('P','A','S','C','A','L','I','N','E','','','S','C','A','R','R','O','N','','I'); L[10] = new Array('','','U','','','','','','S','','','I','','','O','','','','','T'); L[11] = new Array('','','I','','P','','','','','','','T','','','I','','','','','D'); L[12] = new Array('A','C','T','I','O','N','','J','A','N','S','E','N','I','S','M','E','','','E'); L[13] = new Array('','','E','','R','','','','','','','','','','O','','','','','N'); L[14] = new Array('','','S','','T','','','','','','','L','U','L','L','Y','','','','A'); L[15] = new Array('','','','','R','','','','','L','','','','','E','','','','','N'); L[16] = new Array('','','','M','O','L','I','E','R','E','','','','','I','','','','','T'); L[17] = new Array('','','','','Y','','','','','V','','','M','A','L','H','E','R','B','E'); L[18] = new Array('','','','','A','','','','','E','','','','','','','','','','S'); L[19] = new Array('B','O','U','I','L','L','O','N','','R','','','','','','','','','',''); C = new Array(); C[0] = new Array(0,1,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,3); C[1] = new Array(0,0,0,0,0,0,0,0,4,0,0,5,0,0,0,0,0,0,0,0); C[2] = new Array(0,6,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,0,0,7,0,0,0,0,0,0,0,0); C[4] = new Array(8,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0); C[6] = new Array(0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,12,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,14); C[8] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(15,0,0,0,0,0,0,0,0,0,0,16,0,0,17,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(19,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,24,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(25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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[1]='Troubles politiques qui secouèrent la France pendant la minorité de Louis XIV'; A[5]='Successeur de Richelieu et amant d\'Anne d\'Autriche'; A[6]='C\'est lui qui affirme que "La monarchie absolue est d\'ordre divin et tous doivent se soumettre"'; A[8]='Le dramaturge dont les héros sont en proie d\'un destin inéluctable'; A[9]='La cérémonie religieuse qui consacre les rois de France'; A[10]='Le groupe de poètes qui, au XVIe siècle, contribue à "illustrer et défendre" la langue française'; A[11]='Le roi père de Louis XIII'; A[13]='Règle du théâtre classique qui interdit de choquer par des audaces scéniques et morales'; A[15]='La première machine à calculer, inventée par Blaise Pascal'; A[16]='Auteur de romans de type picaresque'; A[19]='Troisième unité du théâtre classique, après celle de lieu et de temps'; A[20]='Courant austère du catholicisme'; A[21]='Musicien très apprécié par Luois XIV'; A[23]='Le dramaturge qui renouvela le genre comique'; A[24]='Grammairien du XVIIe siècle qui imposa la double négation (ne...pas) et l\'expression du pronom sujet devant le verbe'; A[25]='Louis XIV en prend une tasse au petit déjeuner'; D = new Array(); D[1]='Fondateur de l\'arithmétique moderne et précurseur du calcul des probabilités'; D[2]='Le grammairien qui affirme que "Le maître des langues c\'est l\'Usage"'; D[3]='Appellatif donné à des romans très longs'; D[4]='Fastueuse résidence de Louis XIV'; D[7]='Courant littéraire qui veut éviter l\'emploi de mots grossiers ou trop concrets et qui utilise excessivement les adverbes superlatifs, les périphrases, les néologismes.'; D[12]='Les plus farouches adversaires des jansénistes'; D[14]='Accordé par Henri IV, il reconnaît la liberté de culte aux protestants, mais sera révoqué par Louis XIV'; D[17]='Appellatif de Louis XIV'; D[18]='L\'abbaye des religieuses jansénistes'; D[22]='La cérémonie qui a lieu à Versailles le matin, quand le roi se réveille'; 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... '; } //--> //]]> -->