Contact us page and popup
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
}
|
||||
primaryContent.setAttribute('aria-hidden', 'true');
|
||||
document.getElementById('overlay').onclick =
|
||||
dlg.querySelector('.close').onclick = function() { closeDlg(dlg); };
|
||||
dlg.querySelector('.close').onclick = function() { console.log('overlay'); closeDlg(dlg); };
|
||||
body.classList.add('has-overlay');
|
||||
dlg.removeAttribute('aria-hidden');
|
||||
dlg.setAttribute('role', 'alertdialog');
|
||||
@@ -106,6 +106,13 @@
|
||||
return false;
|
||||
});
|
||||
});
|
||||
var contactDlg = document.getElementById('contact-dlg');
|
||||
var contactLink = document.getElementById('contact-link');
|
||||
contactLink.addEventListener('click', function(event) {
|
||||
event.preventDefault();
|
||||
openDlg(contactDlg, contactLink);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
var htmlNode = document.documentElement;
|
||||
|
||||
Reference in New Issue
Block a user