Fix Progress Bar Register

This commit is contained in:
Romain Bonhomme 2021-03-03 17:17:27 +01:00
parent 0015d64a1a
commit c41b95fa62
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ window.ProgressBarInfos = class ProgressBarInfos {
this.bar = bar;
this.text = text;
this.nbFields = formInputs.length - 1;
this.fieldPercentage = Math.round(100 / this.nbFields);
this.fieldPercentage = 100 / this.nbFields;
this.fieldsOk = [];
this.percent = 0;
@ -38,7 +38,7 @@ window.ProgressBarInfos = class ProgressBarInfos {
this.percent += this.fieldPercentage;
this.percent > 100 ? this.percent = 100 : null;
}
this.bar.style.width = this.percent + "%";
this.text.innerHTML = this.percent + "%";
this.bar.style.width = Math.ceil(this.percent) + "%";
this.text.innerHTML = Math.ceil(this.percent) + "%";
}
}

View file

@ -3,7 +3,7 @@
@section('description', "Inscription au Club Le Gaulois")
@section('sub_header')
<div class="sub_header entete-white">
<div class="sub_header">
<div class="content">
<div class="title-health-nutrition">
Inscription au club