Use in a pop-up
-
Hello,
I’m using this website https://dev.joelle.elodieherault.fr/. In the header, when I click on the “Prendre rdv” button, a pop-up containing a Google Calendar iframe appears.
Complianz correctly blocks this iframe. When I accept cookies, the calendar appears.
But if I close the pop-up and reopen it, the calendar no longer loads. This is due to Complianz, as it works by disabling the extension.
Could you help me please?
I’ve tried this code whitout success :
function cmplz_reload_after_consent() {
?>
<script>
document.addEventListener('cmplz_status_change', function (e) {
if (e.detail.category === 'marketing' && e.detail.value==='allow') {
location.reload();
}
});
document.addEventListener('cmplz_status_change_service', function (e) {
if ( e.detail.value ) {
location.reload();
}
});
</script>
<?php
}
I’m not a coder, so I don’t know how to modify it or if it’s appropriate.In advance, thanks !
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Use in a pop-up’ is closed to new replies.