window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#25305e"
},
"button": {
"background": "#14a7d0"
}
},
"theme": "classic",
"content": {
"message": "We use cookies to optimize your experience. Don't worry! We NEVER sell your data",
"dismiss": "Got it!",
"link": "Learn more",
"href": "https://app.chezuba.net/Home/PrivacyPolicy/"
}
});
var modal = document.getElementById("myModal");
// Get the form container within the modal
var formContainer = document.querySelector(
".book-demo-modal .form-container"
);
// Get the button that opens the modal
var btns = document.getElementsByClassName("book-demo-link");
// When the user clicks the button, open the modal
for (var i = 0; i < btns.length; i++) {
btns[i].onclick = function () {
modal.style.display = "block";
document.body.style.overflow = "hidden";
};
}
// When the user clicks anywhere outside of the form-container, close it
modal.onclick = function (event) {
modal.style.display = "none";
document.body.style.overflow = "auto"; // allow background to scroll again
};
// Stop propagation of the click event from the form-container to the modal
formContainer.onclick = function (event) {
event.stopPropagation();
};