From fa09c5f4a1e2e4d1e8606a69a61a535c946436fd Mon Sep 17 00:00:00 2001
From: Patrice Hardouin <patrice.hardouin@ac-normandie.fr>
Date: Wed, 27 Nov 2024 21:57:53 +0000
Subject: [PATCH] Update 2 files

- /public/phenylc.html
- /public/aniridie.html
---
 public/aniridie.html | 82 +++++++++++++++++++++++++++++++-------------
 public/phenylc.html  |  2 +-
 2 files changed, 60 insertions(+), 24 deletions(-)

diff --git a/public/aniridie.html b/public/aniridie.html
index df5bd6b..e02ba56 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 b6ba712..3da75a9 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&egrave;le mutant p est donc masqu&eacute; par l'all&egrave;le normal N.
 						</li>
 						<li class="list-group-item  list-group-item-success">
-- 
GitLab