Skip to content

Commit 09a8e49

Browse files
committed
fix progress numbers
1 parent 1c768dd commit 09a8e49

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

LongevityWorldCup.Website/wwwroot/onboarding/convergence.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
517517
break;
518518
case 4:
519519
// Stage 4: Almost There
520-
document.querySelector('h2').textContent = "4. Almost There";
520+
document.querySelector('h2').textContent = "4/a. Almost There";
521521
updateIllustration("headshot", "jpg", webpSource, jpegSource, illustrationImage);
522522
illustrationImage.alt = "Headshot";
523523
illustrationImage.loading = "lazy";
@@ -548,7 +548,7 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
548548
break;
549549
case 5:
550550
// Stage 5: Don't Trust Verify
551-
document.querySelector('h2').textContent = "5. Don't Trust Verify";
551+
document.querySelector('h2').textContent = "4/b. Don't Trust Verify";
552552
updateIllustration("proof", "jpg", webpSource, jpegSource, illustrationImage);
553553
illustrationImage.alt = "Proof Image";
554554
illustrationImage.loading = "lazy";
@@ -614,12 +614,13 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
614614
break;
615615
case 6:
616616
// Stage 6: Final Details
617-
document.querySelector('h2').textContent = "6. Final Details";
617+
document.querySelector('h2').textContent = "5. Final Details";
618618
updateIllustration("finish", "jpg", webpSource, jpegSource, illustrationImage);
619619
illustrationImage.alt = "Finish Line";
620620
illustrationImage.loading = "lazy";
621621
document.getElementById('finalDetailsText').style.display = '';
622622
document.getElementById('finalDetails').style.display = '';
623+
updateSubProgress(5);
623624

624625
illustrationImage.classList.remove('clickable');
625626
nextButton.innerHTML = 'Next&nbsp;<i class="fas fa-arrow-right"></i>';
@@ -638,7 +639,7 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
638639
break;
639640
case 7:
640641
// Stage 7: Application
641-
document.querySelector('h2').textContent = "5. Application";
642+
document.querySelector('h2').textContent = "Application";
642643
updateIllustration("account-creation", "jpg", webpSource, jpegSource, illustrationImage);
643644
illustrationImage.alt = "Application";
644645
illustrationImage.loading = "lazy";
@@ -648,7 +649,7 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
648649
illustrationImage.classList.remove('clickable');
649650
nextButton.textContent = 'Apply';
650651
nextButton.setAttribute('type', 'submit');
651-
updateSubProgress(5);
652+
updateSubProgress(99);
652653

653654
const accountEmailInput = document.getElementById('accountEmail');
654655
accountEmailInput.addEventListener('input', checkFormValidityStage7);

LongevityWorldCup.Website/wwwroot/partials/sub-progress-bar.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
margin-top: -7px; /* Adjusted value for the sub-progress bar */
5555
}
5656
</style>
57-
<div class="sub-progress-container">
57+
<div id="subProgressContainerItem" class="sub-progress-container">
5858
<div class="progress-bar">
5959
<div class="progress-fill" id="subProgressFill"></div>
6060
</div>
@@ -97,6 +97,14 @@
9797
// Update sub-progress bar fill
9898
const subProgressPercentage = ((currentSubStage - 1) / (subStages.length - 1)) * 100;
9999
subProgressFill.style.width = `${subProgressPercentage}%`;
100+
101+
const subProgressContainerItem = document.getElementById('subProgressContainerItem');
102+
if (currentSubStage == 99) {
103+
subProgressContainerItem.style.display = 'none';
104+
}
105+
else {
106+
subProgressContainerItem.style.display = 'block';
107+
}
100108
}
101109

102110
// Example usage:

0 commit comments

Comments
 (0)