Skip to content

Commit 5d7bfb1

Browse files
committed
js -> html
1 parent 13b0ee3 commit 5d7bfb1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

LongevityWorldCup.Website/wwwroot/onboarding/pheno-age.html

+5-7
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,11 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="250">The Blood Pact
258258
</button>
259259
</form>
260260

261-
<div id="phenoAgeResult" class="bioageform" data-aos="fade" data-aos-duration="700" data-aos-delay="400"></div>
261+
<div id="phenoAgeResult" class="bioageform" data-aos="fade" data-aos-duration="700" data-aos-delay="400">
262+
<div style="font-size: 1rem; color: #2c3e50; text-align: center;">Your biological age is:</div>
263+
<div style="font-size: 2.5rem; color: #4CAF50; font-weight: bold; text-align: center;"><span id="animatedAge">0</span></div>
264+
<div id="yearsText" style="font-size: 1rem; color: #2c3e50; text-align: center;">years</div>
265+
</div>
262266

263267
<div class="options-container" data-aos="fade" data-aos-duration="700" data-aos-delay="400">
264268
<button id="continueButton" class="option-button already-have" onclick="proceedToNextPage()">
@@ -424,12 +428,6 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="250">The Blood Pact
424428

425429
// Setting up the animated counter effect
426430
let displayAge = 0;
427-
resultElement.innerHTML = `
428-
<div style="font-size: 1rem; color: #2c3e50; text-align: center;">Your biological age is:</div>
429-
<div style="font-size: 2.5rem; color: #4CAF50; font-weight: bold; text-align: center;"><span id="animatedAge">0</span></div>
430-
<div id="yearsText" style="font-size: 1rem; color: #2c3e50; text-align: center;">years</div>
431-
`;
432-
433431
if (isFirstTimeAnimation) {
434432
// Set the flag to false after the first run
435433
isFirstTimeAnimation = false;

0 commit comments

Comments
 (0)