Skip to content

Commit

Permalink
"JUST $1 PLANTS A TREE" button fixed
Browse files Browse the repository at this point in the history
Now "JUST $1 PLANTS A TREE" button works and shows the popup
  • Loading branch information
LismaxB authored Oct 9, 2024
1 parent ec7430b commit eba775c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
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 === "cover-page" || trigger === "navbar") {
if ((trigger === "donate" || trigger === "cover-page" || trigger === "navbar") {
popup.style.display = "block";
overlay.style.display = "block";
}
Expand Down

0 comments on commit eba775c

Please sign in to comment.