webseite/assets/js/contact_form_toggle.js

8 lines
312 B
JavaScript
Raw Permalink Normal View History

/* Unhide contact form if JS is enabled */
window.addEventListener('DOMContentLoaded', (event) => {
const contact_form_wrapper = document.getElementsByClassName('content__contact_form_wrapper')[0];
2022-08-24 15:27:20 +02:00
if (contact_form_wrapper) {
contact_form_wrapper.style.setProperty('display', 'block');
}
});