diff --git a/public/aniridie.html b/public/aniridie.html index df5bd6baedecf5b9db696b069925318663b1ade6..e02ba5610f402bb7864c54c1a7c35acb66610c15 100644 --- a/public/aniridie.html +++ b/public/aniridie.html @@ -12,29 +12,65 @@ <meta name="author" content="Stéphane Rabouin, Patrice Hardouin, and other «bio» group contributors"> <meta name="generator" content="GitLab Pages"> -<script LANGUAGE="Javascript"><!-- -function corriger () { -var txt = ""; -var score = 0; -if (document.forms[0].DomRec.selectedIndex == 2) {score++;} -else {txt = txt + " 1";} -if (document.forms[0].Sur.selectedIndex == 2) { - score++; -} -else {txt = txt + " 2";} -if (document.forms[0].AutGon.selectedIndex == 1) {score++;} -else {txt = txt + " 3";} -if ((document.forms[0].Genotype.value == "(A//n)")||(document.forms[0].Genotype.value == "(n//A)")) {score++;} -else {txt = txt + " 4";} -if (document.forms[0].Proba.value == "1/2") {score++;} -else {txt = txt + " 5";} -if (score <= 1) {msg = "C'est faible ! Erreur(s) au(x) numéro(s) :" + txt ;} -else if (score <= 3) {msg = "Résultat moyen ! Erreurs aux questions :" + txt;} -else if (score==5){msg = "Excellent !";} -else {msg="Bien ! Erreur à la question n° " + txt;} -document.getElementById('correction').innerHTML = score + " bonnes réponses sur 6 possibles, " + msg; -} -//--></script> + <script LANGUAGE="Javascript"><!-- + function corriger() { + var txt = ""; + var score = 0; + + // Vérification des réponses sélectionnées + if (document.forms[0].DomRec.selectedIndex == 2) { + score++; + } else { + txt = txt + " 1"; + } + + if (document.forms[0].Sur.selectedIndex == 2) { + score++; + } else { + txt = txt + " 2"; + } + + if (document.forms[0].AutGon.selectedIndex == 1) { + score++; + } else { + txt = txt + " 3"; + } + + if ((document.forms[0].Genotype.value == "(A//n)") || (document.forms[0].Genotype.value == "(n//A)")) { + score++; + } else { + txt = txt + " 4"; + } + + if (document.forms[0].Proba.value == "1/2") { + score++; + } else { + txt = txt + " 5"; + } + + // Ajout de la condition pour "Indiv" (vide est juste) + if (document.forms[0].Indiv.value.trim() === "" || document.forms[0].Indiv.value.trim() === "III4") { + score++; + } else { + txt = txt + " 6"; + } + + // Gestion des messages de résultat + var msg = ""; + if (score <= 1) { + msg = "C'est faible ! Erreur(s) au(x) numéro(s) :" + txt; + } else if (score <= 3) { + msg = "Résultat moyen ! Erreurs aux questions :" + txt; + } else if (score == 6) { + msg = "Excellent !"; + } else { + msg = "Bien ! Erreur à la question n° " + txt; + } + + document.getElementById('correction').innerHTML = score + " bonnes réponses sur 6 possibles, " + msg; + } + + //--></script> </head> <body> diff --git a/public/phenylc.html b/public/phenylc.html index b6ba712f5ae17cf488088c229b59bb8d6f8680d3..3da75a9529f3b697833cdc362f99f07ead54e740 100644 --- a/public/phenylc.html +++ b/public/phenylc.html @@ -198,7 +198,7 @@ </li> <li class="list-group-item list-group-item-success"> …car <b>des parents sains - ont des enfants malades</b> ce qui est prouvé par les individus <b>II3 ou III5</b>. + ont des enfants malades</b> ce qui est prouvé par les individus <b>II3, III5, IV1 ou IV3</b>. L'allèle mutant p est donc masqué par l'allèle normal N. </li> <li class="list-group-item list-group-item-success">