diff --git a/R3.01/tp/tp2/ex4/css/style.css b/R3.01/tp/tp2/ex4/css/style.css index 45f71e9..3cd0ec4 100644 --- a/R3.01/tp/tp2/ex4/css/style.css +++ b/R3.01/tp/tp2/ex4/css/style.css @@ -2,3 +2,13 @@ button{ float:right; } + +.bonne-reponse { + color: #1b7f3a; + font-weight: 700; +} + +.mauvaise-reponse { + color: #c62828; + font-weight: 700; +} diff --git a/R3.01/tp/tp2/ex4/score.php b/R3.01/tp/tp2/ex4/score.php index 30876c4..4febf98 100644 --- a/R3.01/tp/tp2/ex4/score.php +++ b/R3.01/tp/tp2/ex4/score.php @@ -1,17 +1,81 @@ + $index, + 'classe' => 'bonne-reponse', + 'message' => 'Bonne reponse', + ]; + } else { + $resultatsParQuestion[] = [ + 'numero' => $index, + 'classe' => 'mauvaise-reponse', + 'message' => 'Mauvaise reponse', + ]; + } + } +} +?> - -
- - -+ Vous avez obtenu + + bonne(s) reponse(s) sur + . +
++ Questions repondues : + . +
++ Revenir au quizz +
+