Options bac technologique

This commit is contained in:
Valentin Moguérou 2023-07-16 10:07:03 +02:00
parent 14515340d1
commit 5dec9ab20b
2 changed files with 42 additions and 70 deletions

View File

@ -122,28 +122,6 @@ function update() {
let total_options = 0; let total_options = 0;
let coef_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 = "<del>2</del>";
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 = "<del>2</del>";
document.getElementById("points-lca-tle").innerHTML = "0";
}
if (document.getElementById("check-opt1-1re").checked) { if (document.getElementById("check-opt1-1re").checked) {
document.getElementById("coef-opt1-1re").innerHTML = "2"; document.getElementById("coef-opt1-1re").innerHTML = "2";
coef_options += 2; coef_options += 2;
@ -166,15 +144,26 @@ function update() {
document.getElementById("points-opt1-tle").innerHTML = "0"; document.getElementById("points-opt1-tle").innerHTML = "0";
} }
if (document.getElementById("check-opt2").checked) { if (document.getElementById("check-opt2-1re").checked) {
document.getElementById("coef-opt2").innerHTML = "2"; document.getElementById("coef-opt2-1re").innerHTML = "2";
coef_options += 2; coef_options += 2;
let points_opt2 = 2*document.getElementById("note-opt2").value; let points_opt2_1re = 2*document.getElementById("note-opt2-1re").value;
total_options += points_opt2; total_options += points_opt2_1re;
document.getElementById("points-opt2").innerHTML = points_opt2.toLocaleString("fr"); document.getElementById("points-opt2-1re").innerHTML = points_opt2_1re.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt2").innerHTML = "<del>2</del>"; document.getElementById("coef-opt2-1re").innerHTML = "<del>2</del>";
document.getElementById("points-opt2").innerHTML = "0"; 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 = "<del>2</del>";
document.getElementById("points-opt2-tle").innerHTML = "0";
} }
document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr"); document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr");

View File

@ -341,43 +341,14 @@
<th>Points</th> <th>Points</th>
</tr> </tr>
<tr> <tr>
<td>Langues et cultures de l'Antiquité</td> <td>Option 1</td>
<td>
<label for="check-lca-1re">Activation LCA, première</label>
<input type="checkbox" name="check-lca-1re" id="check-lca-1re">
</td>
<td id="coef-lca-1re">2</td>
<td>
<label for="note-lca-1re">Note de langues et cultures de l'Antiquité - première</label>
<input type="number" name="note-lca-1re"
id="note-lca-1re" class="note" min="0" max="20" step=".1">
</td>
<td>
<span id="points-lca-1re"></span>
</td>
<td>
<label for="check-lca-tle">Activation LCA, terminale</label>
<input type="checkbox" name="check-lca-tle" id="check-lca-tle">
</td>
<td id="coef-lca-tle">2</td>
<td>
<label for="note-lca-tle">Note d'option suivie au cours du cycle terminal - terminale</label>
<input type="number" name="note-lca-tle"
id="note-lca-tle" class="note" min="0" max="20" step=".1">
</td>
<td>
<span id="points-lca-tle"></span>
</td>
</tr>
<tr>
<td>Option suivie au cours du cycle terminal (ex: Arts/LV3)</td>
<td> <td>
<label for="check-opt1-1re">Activation option 1, première</label> <label for="check-opt1-1re">Activation option 1, première</label>
<input type="checkbox" name="check-opt1-1re" id="check-opt1-1re"> <input type="checkbox" name="check-opt1-1re" id="check-opt1-1re">
</td> </td>
<td id="coef-opt1-1re">2</td> <td id="coef-opt1-1re">2</td>
<td> <td>
<label for="note-opt1-1re">Note d'option suivie au cours du cycle terminal - première</label> <label for="note-opt1-1re">Note d'option 1 - première</label>
<input type="number" name="note-opt1-1re" <input type="number" name="note-opt1-1re"
id="note-opt1-1re" class="note" min="0" max="20" step=".1"> id="note-opt1-1re" class="note" min="0" max="20" step=".1">
</td> </td>
@ -390,7 +361,7 @@
</td> </td>
<td id="coef-opt1-tle">2</td> <td id="coef-opt1-tle">2</td>
<td> <td>
<label for="note-opt1-tle">Note d'option suivie au cours du cycle terminal - terminale</label> <label for="note-opt1-tle">Note d'option 1 - terminale</label>
<input type="number" name="note-opt1-tle" <input type="number" name="note-opt1-tle"
id="note-opt1-tle" class="note" min="0" max="20" step=".1"> id="note-opt1-tle" class="note" min="0" max="20" step=".1">
</td> </td>
@ -399,20 +370,32 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Option suivie uniquement en classe de Terminale (ex: Maths/DGEMC)</td> <td>Option 2</td>
<td colspan="4" class="null"></td>
<td> <td>
<label for="check-opt2">Activation option 2</label> <label for="check-opt2-1re">Activation option 2, première</label>
<input type="checkbox" name="check-opt2" id="check-opt2"> <input type="checkbox" name="check-opt2-1re" id="check-opt2-1re">
</td> </td>
<td id="coef-opt2">2</td> <td id="coef-opt2-1re">2</td>
<td> <td>
<label for="note-opt2">Note d'option suivie uniquement en classe de Terminale</label> <label for="note-opt2-1re">Note d'option 2 - première</label>
<input type="number" name="note-opt2" <input type="number" name="note-opt2-1re"
id="note-opt2" class="note" min="0" max="20" step=".1"> id="note-opt2-1re" class="note" min="0" max="20" step=".1">
</td> </td>
<td> <td>
<span id="points-opt2"></span> <span id="points-opt2-1re"></span>
</td>
<td>
<label for="check-opt2-tle">Activation option 2, terminale</label>
<input type="checkbox" name="check-opt2-tle" id="check-opt2-tle">
</td>
<td id="coef-opt2-tle">2</td>
<td>
<label for="note-opt2-tle">Note d'option 2 - terminale</label>
<input type="number" name="note-opt2-tle"
id="note-opt2-tle" class="note" min="0" max="20" step=".1">
</td>
<td>
<span id="points-opt2-tle"></span>
</td> </td>
</tr> </tr>
<tr class="total"> <tr class="total">