Clarification des coefficients des options

This commit is contained in:
Valentin Moguérou 2023-07-15 16:38:43 +02:00
parent 77aba02569
commit 783b204c3d
3 changed files with 24 additions and 20 deletions

View File

@ -129,8 +129,8 @@ function update() {
total_options += points_lca_1re; total_options += points_lca_1re;
document.getElementById("points-lca-1re").innerHTML = points_lca_1re.toLocaleString("fr"); document.getElementById("points-lca-1re").innerHTML = points_lca_1re.toLocaleString("fr");
} else { } else {
document.getElementById("coef-lca-1re").innerHTML = "0"; document.getElementById("coef-lca-1re").innerHTML = "<del>2</del> 0";
document.getElementById("points-lca-1re").innerHTML = "0"; document.getElementById("points-lca-1re").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-lca-tle").checked) { if (document.getElementById("check-lca-tle").checked) {
@ -140,8 +140,8 @@ function update() {
total_options += points_lca_tle; total_options += points_lca_tle;
document.getElementById("points-lca-tle").innerHTML = points_lca_tle.toLocaleString("fr"); document.getElementById("points-lca-tle").innerHTML = points_lca_tle.toLocaleString("fr");
} else { } else {
document.getElementById("coef-lca-tle").innerHTML = "0"; document.getElementById("coef-lca-tle").innerHTML = "<del>2</del> 0";
document.getElementById("points-lca-tle").innerHTML = "0"; document.getElementById("points-lca-tle").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-opt1-1re").checked) { if (document.getElementById("check-opt1-1re").checked) {
@ -151,8 +151,8 @@ function update() {
total_options += points_opt1_1re; total_options += points_opt1_1re;
document.getElementById("points-opt1-1re").innerHTML = points_opt1_1re.toLocaleString("fr"); document.getElementById("points-opt1-1re").innerHTML = points_opt1_1re.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt1-1re").innerHTML = "0"; document.getElementById("coef-opt1-1re").innerHTML = "<del>2</del> 0";
document.getElementById("points-opt1-1re").innerHTML = "0"; document.getElementById("points-opt1-1re").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-opt1-tle").checked) { if (document.getElementById("check-opt1-tle").checked) {
@ -162,8 +162,8 @@ function update() {
total_options += points_opt1_tle; total_options += points_opt1_tle;
document.getElementById("points-opt1-tle").innerHTML = points_opt1_tle.toLocaleString("fr"); document.getElementById("points-opt1-tle").innerHTML = points_opt1_tle.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt1-tle").innerHTML = "0"; document.getElementById("coef-opt1-tle").innerHTML = "<del>2</del> 0";
document.getElementById("points-opt1-tle").innerHTML = "0"; document.getElementById("points-opt1-tle").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-opt2").checked) { if (document.getElementById("check-opt2").checked) {
@ -173,8 +173,8 @@ function update() {
total_options += points_opt2; total_options += points_opt2;
document.getElementById("points-opt2").innerHTML = points_opt2.toLocaleString("fr"); document.getElementById("points-opt2").innerHTML = points_opt2.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt2").innerHTML = "0"; document.getElementById("coef-opt2").innerHTML = "<del>2</del> 0";
document.getElementById("points-opt2").innerHTML = "0"; document.getElementById("points-opt2").innerHTML = "<del>2</del> 0";
} }
document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr"); document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr");

View File

@ -145,8 +145,8 @@ function update() {
total_options += points_lca_1re; total_options += points_lca_1re;
document.getElementById("points-lca-1re").innerHTML = points_lca_1re.toLocaleString("fr"); document.getElementById("points-lca-1re").innerHTML = points_lca_1re.toLocaleString("fr");
} else { } else {
document.getElementById("coef-lca-1re").innerHTML = "0"; document.getElementById("coef-lca-1re").innerHTML = "<del>2</del> 0";
document.getElementById("points-lca-1re").innerHTML = "0"; document.getElementById("points-lca-1re").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-lca-tle").checked) { if (document.getElementById("check-lca-tle").checked) {
@ -156,8 +156,8 @@ function update() {
total_options += points_lca_tle; total_options += points_lca_tle;
document.getElementById("points-lca-tle").innerHTML = points_lca_tle.toLocaleString("fr"); document.getElementById("points-lca-tle").innerHTML = points_lca_tle.toLocaleString("fr");
} else { } else {
document.getElementById("coef-lca-tle").innerHTML = "0"; document.getElementById("coef-lca-tle").innerHTML = "<del>2</del> 0";
document.getElementById("points-lca-tle").innerHTML = "0"; document.getElementById("points-lca-tle").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-opt1-1re").checked) { if (document.getElementById("check-opt1-1re").checked) {
@ -167,8 +167,8 @@ function update() {
total_options += points_opt1_1re; total_options += points_opt1_1re;
document.getElementById("points-opt1-1re").innerHTML = points_opt1_1re.toLocaleString("fr"); document.getElementById("points-opt1-1re").innerHTML = points_opt1_1re.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt1-1re").innerHTML = "0"; document.getElementById("coef-opt1-1re").innerHTML = "<del>2</del> 0";
document.getElementById("points-opt1-1re").innerHTML = "0"; document.getElementById("points-opt1-1re").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-opt1-tle").checked) { if (document.getElementById("check-opt1-tle").checked) {
@ -178,8 +178,8 @@ function update() {
total_options += points_opt1_tle; total_options += points_opt1_tle;
document.getElementById("points-opt1-tle").innerHTML = points_opt1_tle.toLocaleString("fr"); document.getElementById("points-opt1-tle").innerHTML = points_opt1_tle.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt1-tle").innerHTML = "0"; document.getElementById("coef-opt1-tle").innerHTML = "<del>2</del> 0";
document.getElementById("points-opt1-tle").innerHTML = "0"; document.getElementById("points-opt1-tle").innerHTML = "<del>2</del> 0";
} }
if (document.getElementById("check-opt2").checked) { if (document.getElementById("check-opt2").checked) {
@ -189,8 +189,8 @@ function update() {
total_options += points_opt2; total_options += points_opt2;
document.getElementById("points-opt2").innerHTML = points_opt2.toLocaleString("fr"); document.getElementById("points-opt2").innerHTML = points_opt2.toLocaleString("fr");
} else { } else {
document.getElementById("coef-opt2").innerHTML = "0"; document.getElementById("coef-opt2").innerHTML = "<del>2</del> 0";
document.getElementById("points-opt2").innerHTML = "0"; document.getElementById("points-opt2").innerHTML = "<del>2</del> 0";
} }
document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr"); document.getElementById("total-coef-options").innerHTML = coef_options.toLocaleString("fr");

View File

@ -177,3 +177,7 @@ footer {
padding: 10px; padding: 10px;
text-align: center; text-align: center;
} }
del {
color: #666;
}