From 5dec9ab20b572544c0e24d26473d54f85c3aced4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Sun, 16 Jul 2023 10:07:03 +0200 Subject: [PATCH] Options bac technologique --- BCT/calcul.js | 47 ++++++++++++++---------------------- BCT/index.html | 65 +++++++++++++++++++------------------------------- 2 files changed, 42 insertions(+), 70 deletions(-) diff --git a/BCT/calcul.js b/BCT/calcul.js index 93d7f62..2bd4a7c 100755 --- a/BCT/calcul.js +++ b/BCT/calcul.js @@ -122,28 +122,6 @@ function update() { let total_options = 0; let coef_options = 0; - if (document.getElementById("check-lca-1re").checked) { - document.getElementById("coef-lca-1re").innerHTML = "2"; - coef_options += 2; - let points_lca_1re = 2*document.getElementById("note-lca-1re").value; - total_options += points_lca_1re; - document.getElementById("points-lca-1re").innerHTML = points_lca_1re.toLocaleString("fr"); - } else { - document.getElementById("coef-lca-1re").innerHTML = "2"; - document.getElementById("points-lca-1re").innerHTML = "0"; - } - - if (document.getElementById("check-lca-tle").checked) { - document.getElementById("coef-lca-tle").innerHTML = "2"; - coef_options += 2; - let points_lca_tle = 2*document.getElementById("note-lca-tle").value; - total_options += points_lca_tle; - document.getElementById("points-lca-tle").innerHTML = points_lca_tle.toLocaleString("fr"); - } else { - document.getElementById("coef-lca-tle").innerHTML = "2"; - document.getElementById("points-lca-tle").innerHTML = "0"; - } - if (document.getElementById("check-opt1-1re").checked) { document.getElementById("coef-opt1-1re").innerHTML = "2"; coef_options += 2; @@ -166,15 +144,26 @@ function update() { document.getElementById("points-opt1-tle").innerHTML = "0"; } - if (document.getElementById("check-opt2").checked) { - document.getElementById("coef-opt2").innerHTML = "2"; + if (document.getElementById("check-opt2-1re").checked) { + document.getElementById("coef-opt2-1re").innerHTML = "2"; coef_options += 2; - let points_opt2 = 2*document.getElementById("note-opt2").value; - total_options += points_opt2; - document.getElementById("points-opt2").innerHTML = points_opt2.toLocaleString("fr"); + let points_opt2_1re = 2*document.getElementById("note-opt2-1re").value; + total_options += points_opt2_1re; + document.getElementById("points-opt2-1re").innerHTML = points_opt2_1re.toLocaleString("fr"); } else { - document.getElementById("coef-opt2").innerHTML = "2"; - document.getElementById("points-opt2").innerHTML = "0"; + document.getElementById("coef-opt2-1re").innerHTML = "2"; + document.getElementById("points-opt2-1re").innerHTML = "0"; + } + + if (document.getElementById("check-opt2-tle").checked) { + document.getElementById("coef-opt2-tle").innerHTML = "2"; + coef_options += 2; + let points_opt2_tle = 2*document.getElementById("note-opt2-tle").value; + total_options += points_opt2_tle; + document.getElementById("points-opt2-tle").innerHTML = points_opt2_tle.toLocaleString("fr"); + } else { + document.getElementById("coef-opt2-tle").innerHTML = "2"; + document.getElementById("points-opt2-tle").innerHTML = "0"; } document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr"); diff --git a/BCT/index.html b/BCT/index.html index 7015a51..af31df8 100755 --- a/BCT/index.html +++ b/BCT/index.html @@ -341,43 +341,14 @@ Points - Langues et cultures de l'Antiquité - - - - - 2 - - - - - - - - - - - - 2 - - - - - - - - - - Option suivie au cours du cycle terminal (ex: Arts/LV3) + Option 1 2 - + @@ -390,7 +361,7 @@ 2 - + @@ -399,20 +370,32 @@ - Option suivie uniquement en classe de Terminale (ex: Maths/DGEMC) - + Option 2 - - + + - 2 + 2 - - + + - + + + + + + + 2 + + + + + +