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 @@