// Check if the visitor has already seen the popup
$(document).ready(function () {
if (sessionStorage.getItem("visitedOnce") === null) {
// Mark that the visitor has been to one page
sessionStorage.setItem("visitedOnce", "true");
console.log('User first visited page');
} else if (sessionStorage.getItem("visitedOnce") === "true" && !sessionStorage.getItem("popupShown")) {
// Show the donation popup on the second page
console.log('User second visited page');
//showDonationPopup();
sessionStorage.setItem("popupShown", "true"); // Ensure popup shows only once
}
});
function showDonationPopup() {
// Code to display your popup
$("#donationPopup").show(); // Using jQuery to show the popup
}