Skip to content

Commit

Permalink
Fixed "Donate Us" button popup in the Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
LismaxB authored Oct 9, 2024
1 parent 22a851f commit ec7430b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div id="nav-text" class="nav_buttons">
<a href="#" class="nav_button">HOME</a>
<a href="#donates" class="nav_button showPopupButton" data-popup-trigger="donate">DONATE</a>
<a href="#donates" class="nav_button showPopupButton">DONATE</a>
<a href="./about.html" class="nav_button">ABOUT US</a>
<a href="#footer" class="nav_button">CONTACT US</a>
</div>
Expand Down Expand Up @@ -256,7 +256,7 @@ <h2 class="quick-links">Quick Links</h2>
button.addEventListener("click", function() {
// Determine which button was clicked and show the popup accordingly
const trigger = button.getAttribute("data-popup-trigger");
if (trigger === "donate" || trigger === "cover-page" || trigger === "navbar") {
if (trigger === "cover-page" || trigger === "navbar") {
popup.style.display = "block";
overlay.style.display = "block";
}
Expand Down

0 comments on commit ec7430b

Please sign in to comment.