{"id":12129,"date":"2023-10-02T11:54:02","date_gmt":"2023-10-02T10:54:02","guid":{"rendered":"https:\/\/freepackers.com\/i-book-my-place\/"},"modified":"2024-11-11T16:04:08","modified_gmt":"2024-11-11T15:04:08","slug":"book-my-space","status":"publish","type":"page","link":"https:\/\/freepackers.com\/en\/book-my-space\/","title":{"rendered":"Book my space"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"12129\" class=\"elementor elementor-12129 elementor-11688\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5dd6c07 e-flex e-con-boxed e-con e-parent\" data-id=\"5dd6c07\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8d444c jedv-enabled--yes elementor-widget elementor-widget-html\" data-id=\"e8d444c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"page-loader\" style=\"position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 9999; background: rgba(255, 255, 255, 1);\">\r\n    <div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\">\r\n        <div style=\"font-size: 20px; text-align: center; color: var(--e-global-color-primary); display: flex; align-items: center; justify-content: center;\">\r\n            Preparing the data...\r\n            \r\n        <\/div>\r\n        <center>\r\n        <img decoding=\"async\" src=\"https:\/\/freepackers.com\/wp-content\/uploads\/2023\/10\/running-dots-1.gif\" alt=\"Loading...\" style=\"margin-left: 10px; width:10vw;\">\r\n    <\/div><\/center>\r\n<\/div>\r\n\r\n<script>\r\n    window.addEventListener('load', function() {\r\n    var loader = document.getElementById('page-loader');\r\n    if(loader) {\r\n        loader.style.display = 'none';\r\n    }\r\n});\r\n\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-bb9694d jedv-enabled--yes e-flex e-con-boxed e-con e-parent\" data-id=\"bb9694d\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0f3a0b2 elementor-view-default elementor-position-block-start elementor-mobile-position-block-start elementor-widget elementor-widget-icon-box\" data-id=\"0f3a0b2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-box-wrapper\">\n\n\t\t\t\t\t\t<div class=\"elementor-icon-box-icon\">\n\t\t\t\t<span  class=\"elementor-icon\">\n\t\t\t\t<i aria-hidden=\"true\" class=\"fas fa-info-circle\"><\/i>\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t\t\t<div class=\"elementor-icon-box-content\">\n\n\t\t\t\t\t\t\t\t\t<h3 class=\"elementor-icon-box-title\">\n\t\t\t\t\t\t<span  >\n\t\t\t\t\t\t\tYou must access this page from a program.\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/h3>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<p class=\"elementor-icon-box-description\">\n\t\t\t\t\t\tBack to programs \u2192\t\t\t\t\t<\/p>\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4d66b10 jedv-enabled--yes e-flex e-con-boxed e-con e-parent\" data-id=\"4d66b10\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-544e98b elementor-widget elementor-widget-html\" data-id=\"544e98b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\r\n<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function() {\r\n    \/\/ Locate the select element by ID\r\n    const selectField = document.getElementById('duree_1');\r\n\r\n    \/\/ Extract the value of the initial <option> element\r\n    const optionValue = selectField.querySelector('option').textContent;\r\n\r\n    \/\/ Parse the serialized PHP array\r\n    const matches = optionValue.match(\/i:\\d+;s:\\d+:\"(\\d+)\";\/g);\r\n    if (matches) {\r\n        \/\/ Clear the current options\r\n        selectField.innerHTML = '';\r\n\r\n        \/\/ Create and append new <option> elements with \"semaines\" in the label\r\n        matches.forEach(match => {\r\n            const value = match.match(\/\"(\\d+)\"\/)[1];\r\n            const option = document.createElement('option');\r\n            option.value = value;\r\n            option.textContent = `${value} weeks`;\r\n            selectField.appendChild(option);\r\n        });\r\n    }\r\n});\r\n\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45fbc0b elementor-widget elementor-widget-html\" data-id=\"45fbc0b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n    \/\/ Get the select element by its ID for date and duration\r\n    var dateSelect = document.getElementById('date_depart_1');\r\n    var durationSelect = document.getElementById('duree_1');\r\n\r\n    \/\/ Get the input fields where the selected values need to be copied\r\n    var confirmationDateField = document.querySelector('input[name=\"Confirmation-date-depart\"]');\r\n    var confirmationDurationField = document.querySelector('input[name=\"Confirmation-duree\"]');\r\n\r\n    \/\/ Function to update the confirmation fields with the selected values\r\n    function updateConfirmationDateField() {\r\n        var selectedDate = dateSelect.options[dateSelect.selectedIndex].innerText;\r\n        confirmationDateField.value = selectedDate;\r\n    }\r\n\r\n    function updateConfirmationDurationField() {\r\n        var selectedDuration = durationSelect.options[durationSelect.selectedIndex].innerText;\r\n        confirmationDurationField.value = selectedDuration;\r\n    }\r\n\r\n    \/\/ Attach event listener to the select elements to call the functions whenever their values change\r\n    dateSelect.addEventListener('change', updateConfirmationDateField);\r\n    durationSelect.addEventListener('change', updateConfirmationDurationField);\r\n\r\n    \/\/ Call the functions once initially to populate the input fields on page load\r\n    updateConfirmationDateField();\r\n    updateConfirmationDurationField();\r\n});\r\n\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-63e5ee9 e-flex e-con-boxed e-con e-parent\" data-id=\"63e5ee9\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7aec125 elementor-widget elementor-widget-html\" data-id=\"7aec125\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\r\n    document.addEventListener(\"DOMContentLoaded\", function() {\r\n    \/\/ Get the current URL parameters\r\n    const urlParams = new URLSearchParams(window.location.search);\r\n    const programmId = urlParams.get('programm_id');\r\n\r\n    if (programmId) {\r\n        \/\/ Select the links that have the class 'wpml'\r\n        const links = document.querySelectorAll('.wpml-ls-item .jet-mega-menu-item__link');\r\n\r\n        \/\/ Loop through each link and append the `programm_id` query parameter\r\n        links.forEach(link => {\r\n            const url = new URL(link.href);\r\n            url.searchParams.set('programm_id', programmId);\r\n            link.href = url.toString();\r\n        });\r\n    }\r\n});\r\n\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Pr\u00e9paration de votre demande en cours&#8230; Preparing the data&#8230; You must access this page from a program. Back to programs \u2192 Nom du programme * Destination * Date de d\u00e9part dans * &#8211; de 3 mois3 \u00e0 6 mois+ de 6 moisJe ne sais pas dur\u00e9e en semaines * Comment souhaitez-vous \u00eatre recontact\u00e9 ? Je [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_jet_sm_ready_style":"","_jet_sm_style":"","_jet_sm_controls_values":"","_jet_sm_fonts_collection":"","_jet_sm_fonts_links":"","footnotes":""},"type-de-page":[],"class_list":["post-12129","page","type-page","status-publish","hentry","referencer-la-page-dans-la-barre-no"],"_links":{"self":[{"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/pages\/12129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/comments?post=12129"}],"version-history":[{"count":3,"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/pages\/12129\/revisions"}],"predecessor-version":[{"id":16352,"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/pages\/12129\/revisions\/16352"}],"wp:attachment":[{"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/media?parent=12129"}],"wp:term":[{"taxonomy":"type-de-page","embeddable":true,"href":"https:\/\/freepackers.com\/en\/wp-json\/wp\/v2\/type-de-page?post=12129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}