From d251782842ea4213db9489c8946c61efac1b2422 Mon Sep 17 00:00:00 2001 From: "gauthier.chombart" Date: Sun, 19 Jul 2026 17:08:59 +0200 Subject: [PATCH] Ajoute une page unique de correction des exercices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Nouvelle page corriger-exercice.html : sélection de l'exercice (BioCID, FDS, TP Nuisibles) + zone de dépôt PDF - Le PDF déposé est transmis à la page de correction dédiée qui se charge automatiquement (?auto=1) - Carte 'Corriger un exercice' ajoutée à la section Exercices de l'index - Slide 6 BioCID : suppression du bouton biocid-anses.fr, alignement des boutons Télécharger / Corriger / Recommencer - Le bouton 'Corriger un rendu' redirige vers la nouvelle page --- exercices/Exo_BioCID.html | 5 +- exercices/correction-biocid.html | 18 ++ exercices/correction-fds.html | 18 ++ exercices/correction-tp-nuisibles.html | 18 ++ exercices/corriger-exercice.html | 317 +++++++++++++++++++++++++ index.html | 13 + 6 files changed, 385 insertions(+), 4 deletions(-) create mode 100644 exercices/corriger-exercice.html diff --git a/exercices/Exo_BioCID.html b/exercices/Exo_BioCID.html index edb93f1..4093958 100644 --- a/exercices/Exo_BioCID.html +++ b/exercices/Exo_BioCID.html @@ -603,10 +603,7 @@
- ✔ Corriger un rendu -
-
- biocid-anses.fr ↗ + ✔ Corriger un rendu
diff --git a/exercices/correction-biocid.html b/exercices/correction-biocid.html index a7784af..9b3f242 100644 --- a/exercices/correction-biocid.html +++ b/exercices/correction-biocid.html @@ -502,6 +502,24 @@ dropzone.addEventListener("drop", e => { if (file) handleFile(file); }); document.getElementById("filePicker").addEventListener("change", e => handleFile(e.target.files?.[0])); + +// Chargement automatique depuis la page « Corriger un exercice » (?auto=1) +(function autoLoadFromHub() { + const params = new URLSearchParams(location.search); + if (params.get("auto") !== "1") return; + const dataUrl = localStorage.getItem("correctionFile"); + const name = localStorage.getItem("correctionFileName") || "rendu.pdf"; + localStorage.removeItem("correctionFile"); + localStorage.removeItem("correctionFileName"); + localStorage.removeItem("correctionExo"); + if (!dataUrl) return; + try { + const bin = atob(dataUrl.split(",").pop()); + const bytes = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i); + handleFile(new File([bytes], name, { type: "application/pdf" })); + } catch (e) { console.error(e); } +})(); diff --git a/exercices/correction-fds.html b/exercices/correction-fds.html index 6003004..68b90c7 100644 --- a/exercices/correction-fds.html +++ b/exercices/correction-fds.html @@ -599,6 +599,24 @@ dropzone.addEventListener("drop", e => { if (file) handleFile(file); }); document.getElementById("filePicker").addEventListener("change", e => handleFile(e.target.files?.[0])); + +// Chargement automatique depuis la page « Corriger un exercice » (?auto=1) +(function autoLoadFromHub() { + const params = new URLSearchParams(location.search); + if (params.get("auto") !== "1") return; + const dataUrl = localStorage.getItem("correctionFile"); + const name = localStorage.getItem("correctionFileName") || "rendu.pdf"; + localStorage.removeItem("correctionFile"); + localStorage.removeItem("correctionFileName"); + localStorage.removeItem("correctionExo"); + if (!dataUrl) return; + try { + const bin = atob(dataUrl.split(",").pop()); + const bytes = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i); + handleFile(new File([bytes], name, { type: "application/pdf" })); + } catch (e) { console.error(e); } +})(); diff --git a/exercices/correction-tp-nuisibles.html b/exercices/correction-tp-nuisibles.html index 8355993..1034bd1 100644 --- a/exercices/correction-tp-nuisibles.html +++ b/exercices/correction-tp-nuisibles.html @@ -645,6 +645,24 @@ dropzone.addEventListener("drop", e => { if (file) handleFile(file); }); document.getElementById("filePicker").addEventListener("change", e => handleFile(e.target.files?.[0])); + +// Chargement automatique depuis la page « Corriger un exercice » (?auto=1) +(function autoLoadFromHub() { + const params = new URLSearchParams(location.search); + if (params.get("auto") !== "1") return; + const dataUrl = localStorage.getItem("correctionFile"); + const name = localStorage.getItem("correctionFileName") || "rendu.pdf"; + localStorage.removeItem("correctionFile"); + localStorage.removeItem("correctionFileName"); + localStorage.removeItem("correctionExo"); + if (!dataUrl) return; + try { + const bin = atob(dataUrl.split(",").pop()); + const bytes = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i); + handleFile(new File([bytes], name, { type: "application/pdf" })); + } catch (e) { console.error(e); } +})(); diff --git a/exercices/corriger-exercice.html b/exercices/corriger-exercice.html new file mode 100644 index 0000000..cd004d7 --- /dev/null +++ b/exercices/corriger-exercice.html @@ -0,0 +1,317 @@ + + + + + +Corriger un exercice — Certibiocide + + + + + +
+ + +
+ +
+
Certibiocide — Correction des rendus
+

Corriger un exercice

+

Sélectionnez l'exercice concerné, puis déposez le fichier PDF exporté par le groupe. La lecture du rendu s'ouvre automatiquement.

+ +

1 Choisissez l'exercice à corriger

+
+
+ + +
+
+ + +
+
+ + +
+
+ +

2 Déposez le rendu PDF

+
+
📄
+

Déposez le PDF du groupe ici

+

ou cliquez pour sélectionner le fichier exporté depuis l'exercice

+ +
Sélectionnez d'abord un exercice ci-dessus.
+
+
+ + + + + + diff --git a/index.html b/index.html index cfdf9a5..b72dd84 100644 --- a/index.html +++ b/index.html @@ -137,6 +137,19 @@ Jouer + + +
+
+
✔️
+

Corriger un exercice

+

Correction des rendus

+
+
+

Déposez le PDF exporté par un groupe et obtenez la lecture de son rendu. Page unique de correction pour l'ensemble des exercices.

+ Corriger +
+