Compare commits

...

5 Commits

2 changed files with 10 additions and 8 deletions

View File

@ -28,9 +28,11 @@ function calcul_section(data) {
epreuve.entries.forEach(entry => { epreuve.entries.forEach(entry => {
let field = document.getElementById(entry + "-note"); let field = document.getElementById(entry + "-note");
if (field.value) caduque = false; if (field.value && field.checkValidity()) {
if (field.value || field.required) { points_epreuve += epreuve.coef * arrondi_dixieme(parseFloat(field.value));
points_epreuve += epreuve.coef * arrondi_dixieme(parseFloat((field.value) ? field.value : 0)); coefficients += epreuve.coef;
caduque = false;
} else if (field.required) {
coefficients += epreuve.coef; coefficients += epreuve.coef;
} }
}); });

View File

@ -225,19 +225,19 @@ div.ln div.null {
width: 100%; width: 100%;
} }
div.ln div {
flex-grow: 1;
}
div.ln { div.ln {
margin-top: 10px; margin-top: 10px;
} }
div.ln div:nth-child(1) { div.ln div:nth-child(1) {
width: calc(70vw + 10px); width: calc(70vw + 5px);
} }
div.ln div:nth-child(3), div.ln div:nth-child(4) { div.ln div:nth-child(3), div.ln div:nth-child(4) {
width: 35vw; width: 35vw;
} }
div.ln div:nth-child(2), div.ln div:nth-child(5) {
width: calc(30vw - 30px);
}
} }