// DISCO PARTY POPUP - Session-only, 1-second delay, fade-in
document.addEventListener("DOMContentLoaded", function () {
if (window.location.pathname === "/" || window.location.pathname === "/Default.aspx") {
if (sessionStorage.getItem("discoPopupShown")) return;
sessionStorage.setItem("discoPopupShown", "yes");
// Create and style the popup container (hidden at first)
const popup = document.createElement("div");
popup.id = "disco-popup";
popup.style.cssText = `
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.75);
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 1s ease;
pointer-events: none;
`;
// Inner content
popup.innerHTML = `
🪩 Get Ready to Boogie!
Don't miss our Disco Party 🎉
🗓️ August 23, 2025
📍 Rough Riders Clubhouse
Register Now
`;
document.body.appendChild(popup);
// Trigger display after 1 second with fade-in
setTimeout(() => {
popup.style.opacity = "1";
popup.style.pointerEvents = "auto";
}, 1000); // 1-second delay
}
});