{"id":716,"date":"2025-03-22T19:59:15","date_gmt":"2025-03-22T18:59:15","guid":{"rendered":"https:\/\/yohan-driver-lametayel.com\/?page_id=716"},"modified":"2025-03-23T10:40:13","modified_gmt":"2025-03-23T09:40:13","slug":"elementor-716","status":"publish","type":"page","link":"https:\/\/yohan-driver-lametayel.com\/index.php\/elementor-716\/","title":{"rendered":"Elementor #716"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"716\" class=\"elementor elementor-716\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d155901 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d155901\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cb7250\" data-id=\"7cb7250\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-21c6b88 elementor-widget elementor-widget-html\" data-id=\"21c6b88\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n  const dateInput = document.getElementById('date-picker');\r\n  const allerSelect = document.getElementById('departure-selector');\r\n  const retourSelect = document.getElementById('retour-selector');\r\n  const volsContainer = document.getElementById('vols-dynamiques-placeholder');\r\n  const autreVolField = document.getElementById('autre-vol-field');\r\n  const adresseDepartGroup = document.querySelector('[data-group=\"adresse-depart\"]');\r\n  const heureDepartGroup = document.querySelector('[data-group=\"heure-depart\"]');\r\n\r\n  function loadVols(airport) {\r\n    const selectedDate = dateInput.value;\r\n    if (airport && selectedDate) {\r\n      const jour = new Date(selectedDate).toLocaleDateString('fr-FR', { weekday: 'long' });\r\n      const data = new FormData();\r\n      data.append('action', 'get_vols_dynamique');\r\n      data.append('aeroport', airport);\r\n      data.append('jour', jour.charAt(0).toUpperCase() + jour.slice(1));\r\n\r\n      fetch('\/wp-admin\/admin-ajax.php', {\r\n        method: 'POST',\r\n        body: data\r\n      })\r\n      .then(response => response.text())\r\n      .then(html => {\r\n        volsContainer.innerHTML = `\r\n          <p class=\"has-text-align-right\"><label>\u05d1\u05d7\u05e8 \u05d8\u05d9\u05e1\u05d4<\/label><\/p>\r\n          <select id=\"vol-dynamique-select\" class=\"wpcf7-form-control wpcf7-select\" required>\r\n            ${html}\r\n            <option value=\"autre\">\u05d0\u05d7\u05e8<\/option>\r\n          <\/select>\r\n        `;\r\n        autreVolField.style.display = 'none';\r\n\r\n        const selectVol = document.getElementById('vol-dynamique-select');\r\n        selectVol.addEventListener('change', function() {\r\n          autreVolField.style.display = this.value === 'autre' ? 'block' : 'none';\r\n        });\r\n      });\r\n    }\r\n  }\r\n\r\n  function updateForm() {\r\n    const aller = allerSelect.value;\r\n\r\n    volsContainer.innerHTML = '';\r\n    autreVolField.style.display = 'none';\r\n    adresseDepartGroup?.closest('span.wpcf7cf-group')?.style.setProperty('display', 'none');\r\n    heureDepartGroup?.closest('span.wpcf7cf-group')?.style.setProperty('display', 'none');\r\n\r\n    if (aller.includes('CDG') || aller.includes('Orly')) {\r\n      const airport = aller.includes('CDG') ? 'CDG' : 'ORY';\r\n      loadVols(airport);\r\n\r\n      retourSelect.querySelectorAll('option').forEach(opt => {\r\n        if (opt.value.includes('CDG') || opt.value.includes('Orly')) {\r\n          opt.style.display = 'none';\r\n        } else {\r\n          opt.style.display = '';\r\n        }\r\n      });\r\n\r\n    } else {\r\n      retourSelect.querySelectorAll('option').forEach(opt => opt.style.display = '');\r\n    }\r\n\r\n    if (['Paris', 'Hotel Disney', 'Parc Disney', 'Versailles'].some(loc => aller.includes(loc))) {\r\n      adresseDepartGroup?.closest('span.wpcf7cf-group')?.style.setProperty('display', 'block');\r\n      heureDepartGroup?.closest('span.wpcf7cf-group')?.style.setProperty('display', 'block');\r\n    }\r\n  }\r\n\r\n  allerSelect.addEventListener('change', updateForm);\r\n  dateInput.addEventListener('change', updateForm);\r\n});\r\n<\/script>\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b489a63 elementor-widget elementor-widget-shortcode\" data-id=\"b489a63\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\"><div role=\"form\" class=\"wpcf7\" id=\"wpcf7-f715-o1\" lang=\"fr-FR\" dir=\"ltr\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/index.php\/wp-json\/wp\/v2\/pages\/716#wpcf7-f715-o1\" method=\"post\" class=\"wpcf7-form init\" novalidate=\"novalidate\" data-status=\"init\">\n<div style=\"display: none;\">\n<input type=\"hidden\" name=\"_wpcf7\" value=\"715\" \/>\n<input type=\"hidden\" name=\"_wpcf7_version\" value=\"5.5.6\" \/>\n<input type=\"hidden\" name=\"_wpcf7_locale\" value=\"fr_FR\" \/>\n<input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f715-o1\" \/>\n<input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/>\n<input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/>\n<input type=\"hidden\" name=\"_wpcf7cf_hidden_group_fields\" value=\"[]\" \/>\n<input type=\"hidden\" name=\"_wpcf7cf_hidden_groups\" value=\"[]\" \/>\n<input type=\"hidden\" name=\"_wpcf7cf_visible_groups\" value=\"[]\" \/>\n<input type=\"hidden\" name=\"_wpcf7cf_repeaters\" value=\"[]\" \/>\n<input type=\"hidden\" name=\"_wpcf7cf_steps\" value=\"{}\" \/>\n<input type=\"hidden\" name=\"_wpcf7cf_options\" value=\"{&quot;form_id&quot;:715,&quot;conditions&quot;:[{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Orly (\\u05d0\\u05d5\\u05e8\\u05dc\\u05d9)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;CDG (\\u200f\\u05e9\\u05d0\\u05e8\\u05dc \\u05d3\\u05d4 \\u05d2\\u05d5\\u05dc)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Paris (\\u200f\\u05de\\u05dc\\u05d5\\u05df \\u05d0\\u05d5 \\u05d3\\u05d9\\u05e8\\u05d4 \\u05d1\\u05e4\\u05e8\\u05d9\\u05d6)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Hotel Disney (\\u200f\\u05de\\u05dc\\u05d5\\u05df \\u05d0\\u05d5 \\u05d3\\u05d9\\u05e8\\u05d4 \\u05d1\\u05d3\\u05d9\\u05e1\\u05e0\\u05d9 \\u200f\\u05d0\\u05d5 \\u05d1\\u05d0\\u05d6\\u05d5\\u05e8)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;retour&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Paris (\\u200f\\u05de\\u05dc\\u05d5\\u05df \\u05d0\\u05d5 \\u05d3\\u05d9\\u05e8\\u05d4 \\u05d1\\u05e4\\u05e8\\u05d9\\u05d6)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;retour&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Hotel Disney (\\u200f\\u200f\\u05de\\u05dc\\u05d5\\u05df \\u05d0\\u05d5 \\u05d3\\u05d9\\u05e8\\u05d4 \\u05d1\\u05d3\\u05d9\\u05e1\\u05e0\\u05d9 \\u200f\\u05d0\\u05d5 \\u05d1\\u05d0\\u05d6\\u05d5\\u05e8)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Paris (\\u200f\\u05de\\u05dc\\u05d5\\u05df \\u05d0\\u05d5 \\u05d3\\u05d9\\u05e8\\u05d4 \\u05d1\\u05e4\\u05e8\\u05d9\\u05d6)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Hotel Disney (\\u200f\\u05de\\u05dc\\u05d5\\u05df \\u05d3\\u05d9\\u05e1\\u05e0\\u05d9)&quot;}]},{&quot;then_field&quot;:&quot;-1&quot;,&quot;and_rules&quot;:[{&quot;if_field&quot;:&quot;aller&quot;,&quot;operator&quot;:&quot;equals&quot;,&quot;if_value&quot;:&quot;Parc Disney (\\u200f\\u05e4\\u05d0\\u05e8\\u05e7 \\u05d3\\u05d9\\u05e1\\u05e0\\u05d9)&quot;}]}],&quot;settings&quot;:{&quot;animation&quot;:&quot;yes&quot;,&quot;animation_intime&quot;:200,&quot;animation_outtime&quot;:200,&quot;conditions_ui&quot;:&quot;normal&quot;,&quot;notice_dismissed&quot;:false,&quot;notice_dismissed_update-cf7-5.6&quot;:true}}\" \/>\n<\/div>\n<p class=\"has-text-align-right\"><label> \u200f\u05e9\u05dd \u05de\u05dc\u05d0 (\u05d1\u05dc\u05d5\u05e2\u05d6\u05d9\u05ea)<br \/>\n  <span class=\"wpcf7-form-control-wrap your-name\"><input type=\"text\" name=\"your-name\" value=\"\" size=\"40\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"\u05e9\u05dd \u05e4\u05e8\u05d8\u05d9 \u05d5\u05de\u05e9\u05e4\u05d7\u05d4\" \/><\/span><\/label><\/p>\n<p class=\"has-text-align-right\"><label> \u05ea\u05d0\u05e8\u05d9\u05da \u05d4\u05e0\u05e1\u05d9\u05e2\u05d4<br \/>\n  <span class=\"wpcf7-form-control-wrap date-130\"><input type=\"date\" name=\"date-130\" value=\"\" class=\"wpcf7-form-control wpcf7-date wpcf7-validates-as-required wpcf7-validates-as-date\" id=\"date-picker\" aria-required=\"true\" aria-invalid=\"false\" \/><\/span><\/label><\/p>\n<p><!-- D\u00e9part uniquement --><\/p>\n<p class=\"has-text-align-right\"><label> \u05de\u05e7\u05d5\u05dd \u05d0\u05d9\u05e1\u05d5\u05e3<br \/>\n  <span class=\"wpcf7-form-control-wrap aller\"><select name=\"aller\" class=\"wpcf7-form-control wpcf7-select wpcf7-validates-as-required\" id=\"departure-selector\" aria-required=\"true\" aria-invalid=\"false\"><option value=\"\">---<\/option><option value=\"CDG (\u05e9\u05d0\u05e8\u05dc \u05d3\u05d4 \u05d2\u05d5\u05dc)\">CDG (\u05e9\u05d0\u05e8\u05dc \u05d3\u05d4 \u05d2\u05d5\u05dc)<\/option><option value=\"Orly (\u05d0\u05d5\u05e8\u05dc\u05d9)\">Orly (\u05d0\u05d5\u05e8\u05dc\u05d9)<\/option><option value=\"Paris (\u05e4\u05e8\u05d9\u05d6)\">Paris (\u05e4\u05e8\u05d9\u05d6)<\/option><option value=\"Parc Disney (\u05e4\u05d0\u05e8\u05e7 \u05d3\u05d9\u05e1\u05e0\u05d9)\">Parc Disney (\u05e4\u05d0\u05e8\u05e7 \u05d3\u05d9\u05e1\u05e0\u05d9)<\/option><option value=\"Hotel Disney (\u05de\u05dc\u05d5\u05df \u05d1\u05d3\u05d9\u05e1\u05e0\u05d9)\">Hotel Disney (\u05de\u05dc\u05d5\u05df \u05d1\u05d3\u05d9\u05e1\u05e0\u05d9)<\/option><option value=\"Versailles (\u05d5\u05e8\u05e1\u05d0\u05d9)\">Versailles (\u05d5\u05e8\u05e1\u05d0\u05d9)<\/option><\/select><\/span><\/label><\/p>\n<p><!-- Liste dynamique de vols pour CDG\/Orly --><\/p>\n<div id=\"vols-dynamiques-placeholder\"><\/div>\n<p><!-- Champ texte libre si Autres vol est choisi --><\/p>\n<div id=\"autre-vol-field\" style=\"display:none;\">\n<p class=\"has-text-align-right\"><label> \u05de\u05e1\u05e4\u05e8 \u05d8\u05d9\u05e1\u05d4 \u05d9\u05d3\u05e0\u05d9<br \/>\n  <span class=\"wpcf7-form-control-wrap autre-vol-manuel\"><input type=\"text\" name=\"autre-vol-manuel\" value=\"\" size=\"40\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"\u05dc\u05d3\u05d5\u05d2\u05f3 AF1234\" \/><\/span><\/label><\/p>\n<\/div>\n<p><!-- Adresse + heure de prise en charge --><\/p>\n<div data-id=\"adresse-depart\" data-orig_data_id=\"adresse-depart\"  data-class=\"wpcf7cf_group\">\n<p class=\"has-text-align-right\"><label> \u05db\u05ea\u05d5\u05d1\u05ea \u05d0\u05d5 \u05e9\u05dd \u05de\u05dc\u05d5\u05df<br \/>\n    <span class=\"wpcf7-form-control-wrap adresse-depart-field\"><input type=\"text\" name=\"adresse-depart-field\" value=\"\" size=\"40\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"\u05db\u05ea\u05d5\u05d1\u05ea \u05de\u05dc\u05d0\u05d4 \u05d0\u05d5 \u05e9\u05dd \u05de\u05dc\u05d5\u05df\" \/><\/span><\/label><\/p>\n<\/div>\n<div data-id=\"heure-depart\" data-orig_data_id=\"heure-depart\"  data-class=\"wpcf7cf_group\">\n<p class=\"has-text-align-right\"><label> \u05e9\u05e2\u05ea \u05d0\u05d9\u05e1\u05d5\u05e3<br \/>\n    <span class=\"wpcf7-form-control-wrap heure-depart-field\"><input type=\"text\" name=\"heure-depart-field\" value=\"\" size=\"40\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"\u05dc\u05d3\u05d5\u05d2\u05f3 08:00\" \/><\/span><\/label><\/p>\n<\/div>\n<p><!-- D\u00e9p\u00f4t --><\/p>\n<div id=\"depot-wrapper\">\n<p class=\"has-text-align-right\"><label> \u05d9\u05e2\u05d3<br \/>\n    <span class=\"wpcf7-form-control-wrap retour\"><select name=\"retour\" class=\"wpcf7-form-control wpcf7-select wpcf7-validates-as-required\" id=\"retour-selector\" aria-required=\"true\" aria-invalid=\"false\"><option value=\"\">---<\/option><option value=\"CDG (\u05e9\u05d0\u05e8\u05dc \u05d3\u05d4 \u05d2\u05d5\u05dc)\">CDG (\u05e9\u05d0\u05e8\u05dc \u05d3\u05d4 \u05d2\u05d5\u05dc)<\/option><option value=\"Orly (\u05d0\u05d5\u05e8\u05dc\u05d9)\">Orly (\u05d0\u05d5\u05e8\u05dc\u05d9)<\/option><option value=\"Paris (\u05e4\u05e8\u05d9\u05d6)\">Paris (\u05e4\u05e8\u05d9\u05d6)<\/option><option value=\"Parc Disney (\u05e4\u05d0\u05e8\u05e7 \u05d3\u05d9\u05e1\u05e0\u05d9)\">Parc Disney (\u05e4\u05d0\u05e8\u05e7 \u05d3\u05d9\u05e1\u05e0\u05d9)<\/option><option value=\"Hotel Disney (\u05de\u05dc\u05d5\u05df \u05d1\u05d3\u05d9\u05e1\u05e0\u05d9)\">Hotel Disney (\u05de\u05dc\u05d5\u05df \u05d1\u05d3\u05d9\u05e1\u05e0\u05d9)<\/option><option value=\"Versailles (\u05d5\u05e8\u05e1\u05d0\u05d9)\">Versailles (\u05d5\u05e8\u05e1\u05d0\u05d9)<\/option><\/select><\/span><\/label><\/p>\n<\/div>\n<p><!-- Infos compl\u00e9mentaires --><\/p>\n<p class=\"has-text-align-right\"><label> \u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3<br \/>\n  <span class=\"wpcf7-form-control-wrap Informationscomplementaires\"><textarea name=\"Informationscomplementaires\" cols=\"40\" rows=\"10\" class=\"wpcf7-form-control wpcf7-textarea\" aria-invalid=\"false\" placeholder=\"\u05d4\u05e2\u05e8\u05d5\u05ea \u05de\u05d9\u05d5\u05d7\u05d3\u05d5\u05ea \u05d0\u05d5 \u05d1\u05e7\u05e9\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d5\u05ea\"><\/textarea><\/span><\/label><\/p>\n<p class=\"has-text-align-right\"><input type=\"submit\" value=\"\u05e9\u05dc\u05d7\" class=\"wpcf7-form-control has-spinner wpcf7-submit\" \/><\/p>\n<div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div><\/form><\/div><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"_links":{"self":[{"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/pages\/716"}],"collection":[{"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/comments?post=716"}],"version-history":[{"count":37,"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/pages\/716\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/pages\/716\/revisions\/788"}],"wp:attachment":[{"href":"https:\/\/yohan-driver-lametayel.com\/index.php\/wp-json\/wp\/v2\/media?parent=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}