Contact
Contact Form
const modal = document.getElementById('contactModal');
const openBtn = document.getElementById('openModal');
const closeBtn = document.querySelector('.close');
openBtn.onclick = function(e){
e.preventDefault();
modal.style.display = 'block';
}
closeBtn.onclick = function(){
modal.style.display = 'none';
}
window.onclick = function(e){
if(e.target == modal){
modal.style.display = 'none';
}
}
window.addEventListener('pageshow', function() {
document.body.style.overflow = 'auto';
});
window.addEventListener('pageshow', function() {
document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';
document.body.style.height = 'auto';
$('.modal').hide();
});