2021-09-08 09:26:31 +00:00
|
|
|
import { setupSearch } from './search'
|
|
|
|
|
|
|
|
document
|
|
|
|
.querySelectorAll('[data-ol-contact-form-with-search]')
|
|
|
|
.forEach(setupSearch)
|
|
|
|
|
2021-09-23 09:47:48 +00: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 09:26:31 +00:00
|
|
|
})
|
2021-09-22 11:13:18 +00: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()
|
|
|
|
})
|
|
|
|
})
|