Fix Progress Bar Register
This commit is contained in:
parent
0015d64a1a
commit
c41b95fa62
2 changed files with 4 additions and 4 deletions
6
resources/js/front/progress-infos.js
vendored
6
resources/js/front/progress-infos.js
vendored
|
|
@ -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) + "%";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue