AI update: תיקון פופ-אפ תשלום — Hair On Top. חפש בכל קבצי העמוד (HTML/JS) כל קוד תשלום קיים: iframe לכתובת SmartPay/pay.smartpay.co

This commit is contained in:
2026-08-20 22:15:50 +00:00
parent 2b4acc85bb
commit d7c16bf4dc
2 changed files with 20 additions and 327 deletions
+16 -6
View File
@@ -107,7 +107,7 @@
// Sale Popup
const popup = document.getElementById('salePopup');
const popupClose = document.getElementById('popupClose');
const popupButtons = popup ? popup.querySelectorAll('.popup-option-btn, .popup-link') : [];
const fabBtn = document.getElementById('fabBtn');
// Check if popup was already shown in this session
const popupShown = sessionStorage.getItem('popupShown');
@@ -174,12 +174,22 @@
});
}
// Button click handlers (just close popup for demo)
popupButtons.forEach(function(btn) {
btn.addEventListener('click', function() {
// In a real implementation, these would link to actual actions
// FAB button opens popup
if (fabBtn) {
fabBtn.addEventListener('click', function() {
if (popup) {
popup.classList.add('active');
document.body.style.overflow = 'hidden';
}
});
}
// Popup link handler
const popupLink = popup ? popup.querySelector('.popup-link') : null;
if (popupLink) {
popupLink.addEventListener('click', function() {
hidePopup();
});
});
}
})();