webseite/assets/js/contact_form_toggle.js
Brain 3b14c01591
All checks were successful
continuous-integration/drone/pr Build is passing
Only load or do things if necessary
2022-08-24 15:27:20 +02:00

8 lines
312 B
JavaScript

/* Unhide contact form if JS is enabled */
window.addEventListener('DOMContentLoaded', (event) => {
const contact_form_wrapper = document.getElementsByClassName('content__contact_form_wrapper')[0];
if (contact_form_wrapper) {
contact_form_wrapper.style.setProperty('display', 'block');
}
});