diff --git a/resources/js/front/progress-infos.js b/resources/js/front/progress-infos.js index ddb83d4b..77ac6ad7 100644 --- a/resources/js/front/progress-infos.js +++ b/resources/js/front/progress-infos.js @@ -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) + "%"; } } diff --git a/resources/views/front/auth/register.blade.php b/resources/views/front/auth/register.blade.php index ff96eb0c..ccac626b 100644 --- a/resources/views/front/auth/register.blade.php +++ b/resources/views/front/auth/register.blade.php @@ -3,7 +3,7 @@ @section('description', "Inscription au Club Le Gaulois") @section('sub_header') -