Skip to content

Commit 5825991

Browse files
committed
click scroll donate
1 parent 6a30a00 commit 5825991

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

LongevityWorldCup.Website/wwwroot/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ <h2><i class="fas fa-hourglass-half"></i> Beta Testing Ends In:</h2>
441441
</div>
442442

443443
<!-- Bitcoin Donation Section -->
444-
<div class="section-container contribute-section" data-aos="fade" data-aos-duration="700" data-aos-delay="350">
444+
<div id="donation-section" class="section-container contribute-section" data-aos="fade" data-aos-duration="700" data-aos-delay="350">
445445
<div class="progress-overlay"></div>
446446
<div class="contribute-content">
447447
<!-- In the Contribute section -->

LongevityWorldCup.Website/wwwroot/partials/leaderboard-content.html

+17
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@
571571
align-items: center;
572572
clip-path: polygon(0 30%, 100% 0, 100% 100%, 0% 100%);
573573
transition: clip-path 0.3s ease-in-out;
574+
pointer-events: auto; /* Enable click events */
575+
cursor: pointer; /* Indicate that it's clickable */
574576
}
575577

576578
.podium-item-lower:hover {
@@ -1308,6 +1310,7 @@ <h3>Proofs</h3>
13081310
podiumItem.setAttribute('data-aos-duration', '700');
13091311
podiumItem.setAttribute('data-aos-delay', '50');
13101312

1313+
subscribeLowerPodiumClick();
13111314
});
13121315

13131316
// Attach click event listeners to athlete names
@@ -1396,6 +1399,20 @@ <h3>Proofs</h3>
13961399
});
13971400
}
13981401

1402+
function subscribeLowerPodiumClick() {
1403+
const targetElement = document.querySelector("#donation-section");
1404+
if (!targetElement) {
1405+
console.error("Donation section (#donation-section) not found.");
1406+
return;
1407+
}
1408+
1409+
document.querySelectorAll('.podium-item-lower').forEach(moneyArea => {
1410+
moneyArea.addEventListener('click', () => {
1411+
targetElement.scrollIntoView({ behavior: 'smooth' });
1412+
});
1413+
});
1414+
}
1415+
13991416
// Usage
14001417
addClickListenerToImages('.portrait, .podium-portrait, #modalProfilePic', function () {
14011418
openEnlargedView(this);

0 commit comments

Comments
 (0)