PageSourceSearch

https://www.lafondationhotel.com/res/js/template/form/custom/ui.js?q=1790850967438

js lafondationhotel.com collected 2026-10-05 01:13:57 UTC 1,560 bytes, 59 lines download raw bytes

1var initFormCustom = async (container) => {
2  if (typeof W360_Form === 'undefined') {
3    await lazy.loadScript('/res/js/W360_Form.js')
4  }
5
6  formCustom(container)
7}
8
9function formCustom(container) {
10  const form = container.querySelector('#form-custom')
11  const btnRgpd = form.querySelector('.form-gpdr-btn')
12  const formGpdr = form.querySelector('.form-gpdr')
13  let loadRecaptcha = false
14
15  new W360_Form(form, {
16		customLoader: container.querySelector('.loader'),
17		callback: () => {
18			// console.log('callback')
19		}
20	})
21
22  btnRgpd.addEventListener('click', (e) => {
23    e.preventDefault()
24    e.currentTarget.classList.toggle('active')
25    formGpdr.classList.toggle('active')
26  })
27
28	const today = new Date()
29	today.setMinutes(today.getMinutes() - today.getTimezoneOffset())
30	const todayValue = today.toISOString().slice(0, 10)
31
32	form.querySelectorAll('input[type="date"]').forEach(input => {
33		if (!input.min) {
34			input.min = todayValue
35		}
36	})
37
38	form.querySelectorAll('input[type="file"]').forEach(input => {
39		const label = input.parentNode.querySelector('.file-label')
40
41		input.addEventListener('change', (e) => {
42			const fileName = e.target.files[0] ? e.target.files[0].name : ''
43			label.innerText = fileName
44		})
45	})
46
47	// dates
48	const arrival = document.querySelector('#date-de-votre-événement')
49	const departure = document.querySelector('#date-de-départ')
50
51	arrival.addEventListener('change', (e) => {
52		if (departure.value && departure.value < arrival.value) {
53			departure.value = arrival.value
54		}
55		departure.min = arrival.value
56	})
57
58	
59}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.