AI update: בדוק את קוד המקור הנוכחי של הדף (HTML/JS) וחפש את כל המופעים של: (א) סקריפט הפופ-אפ המשותף (script src המכיל /pay/popup.
This commit is contained in:
+19
-2
@@ -400,6 +400,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
<script src="https://emilio.clientscenter.co.il/pay/popup.js" data-src="cmt03bn4j000zpa01tof4ddvw" data-name="אורלי חן עיצוב שיער" data-origin="https://emilio.clientscenter.co.il"></script>
|
<script>
|
||||||
|
(function() {
|
||||||
|
var defined = {
|
||||||
|
siteId: 'cmt03bn4j000zpa01tof4ddvw',
|
||||||
|
bizName: 'אורלי חן עיצוב שיער',
|
||||||
|
paymentPage: 'https://nwk3ywktc2n8ttnibdhgonlx.sites.clientscenter.co.il'
|
||||||
|
};
|
||||||
|
function goToPay() {
|
||||||
|
var url = defined.paymentPage +
|
||||||
|
'?site=' + encodeURIComponent(defined.siteId) +
|
||||||
|
'&biz=' + encodeURIComponent(defined.bizName);
|
||||||
|
window.top.location.href = url;
|
||||||
|
}
|
||||||
|
window.openPaymentPopup = goToPay;
|
||||||
|
var fab = document.getElementById('fabButton');
|
||||||
|
if (fab) fab.addEventListener('click', goToPay);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -232,15 +232,4 @@
|
|||||||
// Initialize popup
|
// Initialize popup
|
||||||
initPopup();
|
initPopup();
|
||||||
|
|
||||||
// FAB Button - triggers payment popup from external script
|
})();
|
||||||
var fabBtn = document.getElementById('fabButton');
|
|
||||||
if (fabBtn) {
|
|
||||||
fabBtn.addEventListener('click', function() {
|
|
||||||
// The external payment script handles the popup
|
|
||||||
if (window.openPaymentPopup) {
|
|
||||||
window.openPaymentPopup();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
Reference in New Issue
Block a user