2021-09-08 05:26:31 -04:00
|
|
|
import { setupSearch } from './search'
|
|
|
|
|
|
|
|
document
|
|
|
|
.querySelectorAll('[data-ol-contact-form-with-search]')
|
|
|
|
.forEach(setupSearch)
|
|
|
|
|
2021-09-23 05:47:48 -04:00
|
|
|
document
|
|
|
|
.querySelectorAll('[data-ol-open-contact-form-modal="contact-us"]')
|
|
|
|
.forEach(el => {
|
|
|
|
el.addEventListener('click', function (e) {
|
|
|
|
e.preventDefault()
|
|
|
|
$('[data-ol-contact-form-modal="contact-us"]').modal()
|
|
|
|
})
|
2021-09-08 05:26:31 -04:00
|
|
|
})
|
2021-09-22 07:13:18 -04:00
|
|
|
|
|
|
|
document
|
|
|
|
.querySelectorAll('[data-ol-open-contact-form-modal="general"]')
|
|
|
|
.forEach(el => {
|
|
|
|
el.addEventListener('click', function (e) {
|
|
|
|
e.preventDefault()
|
|
|
|
$('[data-ol-contact-form-modal="general"]').modal()
|
|
|
|
})
|
|
|
|
})
|