Skip to content

Commit 3660308

Browse files
committed
scroll to leaderboard on click
1 parent e326700 commit 3660308

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LongevityWorldCup.Website/wwwroot/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ <h2><i class="fas fa-hourglass-half"></i> Beta Testing Ends In:</h2>
435435
</div>
436436
<!--LEADERBOARD-CONTENT-->
437437
<div style="text-align: center; margin-top: 20px;">
438-
<button id="viewAllAthletesBtn" onclick="window.location.href='/leaderboard/leaderboard.html'" class="rankings-btn" aria-label="View all athletes on the leaderboard" data-aos="fade" data-aos-duration="700" data-aos-delay="300">
438+
<button id="viewAllAthletesBtn" onclick="window.location.href='/leaderboard/leaderboard.html#leaderboardTitle'" class="rankings-btn" aria-label="View all athletes on the leaderboard" data-aos="fade" data-aos-duration="700" data-aos-delay="300">
439439
VIEW ALL ATHLETES
440440
</button>
441441
</div>

LongevityWorldCup.Website/wwwroot/leaderboard/leaderboard.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<body>
77
<!--HEADER-->
88
<main>
9-
<h2>Leaderboard🏆</h2>
9+
<h2 id="leaderboardTitle">Leaderboard🏆</h2>
1010
<!--LEADERBOARD-CONTENT-->
1111
<div class="options-container" data-aos="fade" data-aos-duration="700" data-aos-delay="700">
1212
<button class="option-button back-button" onclick="window.location.href='/'">

0 commit comments

Comments
 (0)