AI update: תיקון פופ-אפ תשלום — Hair On Top. חפש בכל קבצי העמוד (HTML/JS) כל קוד תשלום קיים: iframe לכתובת SmartPay/pay.smartpay.co
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user