{"id":289,"date":"2021-09-11T12:51:13","date_gmt":"2021-09-11T12:51:13","guid":{"rendered":"https:\/\/numeriquepourtous.fr\/?page_id=289"},"modified":"2021-09-11T13:25:35","modified_gmt":"2021-09-11T13:25:35","slug":"rendez-vous-en-ligne","status":"publish","type":"page","link":"https:\/\/numeriquepourtous.fr\/?page_id=289","title":{"rendered":"RDV en ligne"},"content":{"rendered":"\n<p><code><\/p> <!-- this p tag fixes a IE bug -->\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/numeriquepourtous.fr\/wp-content\/plugins\/appointment-booking-calendar\/inc\/..\/TDE_AppCalendar\/modern\/all-css.css\" \/>\n<script>\nvar pathCalendar = \"\";\nvar cpabc_global_date_format = '1';\nvar cpabc_global_military_time = '1';\nvar cpabc_global_start_weekday = '1';\nvar cpabc_global_mindate = '4\/3\/2026';\nvar cpabc_global_maxdate = '';\nvar cpabc_global_close_on_select = true;\nvar cpabc_global_cancel_text = 'Cancel';\nvar cpabc_global_pagedate = '4\/2026';\n<\/script>\n<script type=\"text\/javascript\">\n var cpabc_current_calendar_item;\n var cpabc_current_calendar_initialized = false;\n function apc_clear_date()\n {\n    document.getElementById(\"selDaycal\"+cpabc_current_calendar_item ).value = \"\";\n    cpabc_updateItem();\n }\n function cpabc_updateItem()\n {\n    document.getElementById(\"calarea_\"+cpabc_current_calendar_item).style.display = \"none\";\n    var i = document.FormEdit.cpabc_item.options.selectedIndex;\n    var selecteditem = document.FormEdit.cpabc_item.options[i].value;\n    cpabc_do_init(selecteditem);\n }\n function cpabc_do_init(id)\n {\n    try {\n        cpabc_current_calendar_item = id;\n        document.getElementById(\"calarea_\"+cpabc_current_calendar_item).style.display = \"\";\n        initAppCalendar(\"cal\"+cpabc_current_calendar_item,1,2,\"FR\",{m1:\"Please select the appointment time.\"});        cpabc_current_calendar_initialized = true;\n    } catch (e) {}    \n }\n function updatedate()\n {\n    if (document.getElementById(\"selDaycal\"+cpabc_current_calendar_item ).value != '')\n    {\n        var timead = \"\";\n        var hour = document.getElementById(\"selHourcal\"+cpabc_current_calendar_item ).value;\n        if (cpabc_global_military_time == '0')\n        {\n            if (parseInt(hour) > 12)\n            {\n                timead = \" pm\";\n                hour = parseInt(hour)-12;\n            }\n            else\n                timead = \" am\";\n        }\n        var minute = document.getElementById(\"selMinutecal\"+cpabc_current_calendar_item ).value;\n        if (minute.length == 1)\n            minute = \"0\"+minute;\n        minute = hour + \":\" + minute + timead;\n    }\n }\n <\/script>\n<form class=\"cpp_form\" id=\"cp_abcform_pform\" name=\"FormEdit\" action=\"\" method=\"post\" onsubmit=\"return doValidate(this);\">\r\n<input name=\"cpabc_appointments_post\" type=\"hidden\" value=\"1\" \/><input name=\"cpabc_appointments_utime\" type=\"hidden\"  value=\"\" \/>\r\n<div style=\"display:none\">\r\n  Calendar<br \/>\r\n  <select name=\"cpabc_item\" id=\"cpabc_item\" onchange=\"cpabc_updateItem()\"><option value=1>RDV en ligne<\/option><\/select><br \/><br \/>\r\n<\/div>\r\n<div class=\"abc_selectdate fields\">Select date and time:<\/div><div id=\"calarea_1\" style=\"display:none\"><input name=\"selDaycal1\" type=\"hidden\" id=\"selDaycal1\" \/><input name=\"selMonthcal1\" type=\"hidden\" id=\"selMonthcal1\" \/><input name=\"selYearcal1\" type=\"hidden\" id=\"selYearcal1\" \/><input name=\"selHourcal1\" type=\"hidden\" id=\"selHourcal1\" \/><input name=\"selMinutecal1\" type=\"hidden\" id=\"selMinutecal1\" \/><div class=\"appContainer\"><div style=\"z-index:1000;\" class=\"appContainer2\"><div id=\"cal1Container\"><\/div><\/div><\/div> <div style=\"clear:both;\"><\/div><div id=\"listcal1\" class=\"listcal\"><\/div><\/div><div style=\"clear:both;\"><\/div>\r\nYour phone number:<br \/>\r\n<input type=\"text\" name=\"phone\" value=\"\"><br \/>\r\nYour name:<br \/>\r\n<input type=\"text\" name=\"name\" value=\"\"><br \/>\r\nYour email:<br \/>\r\n<input type=\"email\" name=\"email\" value=\"\"><br \/>\r\nComments\/Questions:<br \/>\r\n<textarea name=\"question\" style=\"width:100%\"><\/textarea><br \/>\r\n  Please enter the security code:<br \/>\r\n  <img src=\"\/?cpabc_app=captcha&inAdmin=1&letter_count=4&noise=50&noiselength=1&font=font3\"  id=\"captchaimg\" alt=\"security code\" border=\"0\" class=\"skip-lazy\"  \/>\r\n  <br \/>\r\n  Security Code:<br \/>\r\n  <div class=\"dfield\">\r\n  <input type=\"text\" size=\"20\" name=\"hdcaptcha\" id=\"hdcaptcha\" value=\"\" \/>\r\n  <div class=\"error message\" id=\"hdcaptcha_error\" generated=\"true\" style=\"display:none;position: absolute; left: 0px; top: 25px;\"><\/div>\r\n  <\/div>\r\n  <br \/>\r\n<input type=\"submit\" name=\"subbtn\" class=\"cp_subbtn\" value=\"Continuer\">\r\n<\/form>\r\n\r\n\r\n<script type=\"text\/javascript\">\n var cpabc_click_enabled = true;  \n var cpabc_max_slots = 3;\n var cpabc_max_slots_text = 'Please select a maximum of %1 time-slots. Currently selected: %2 time-slots.';\n cpabc_max_slots_text = cpabc_max_slots_text.replace('%1',cpabc_max_slots);\n cpabc_max_slots_text = cpabc_max_slots_text.replace('%2',cpabc_max_slots);\n cpabc_current_calendar_item = 1;\n cpabc_do_init(cpabc_current_calendar_item);\n setInterval('updatedate()',200);\n function doValidate(form)\n {\n    if (!cpabc_click_enabled) return false;\n    var visitortime = new Date();\n    form.cpabc_appointments_utime.value = \"GMT \" + -visitortime.getTimezoneOffset()\/60;\n    if (form.phone.value == '')\n    {\n        alert('Please enter a valid phone number.');\n        return false;\n    }\n    if (form.email.value == '')\n    {\n        alert('Please enter a valid email address.');\n        return false;\n    }\n    if (form.name.value == '')\n    {\n        alert('Please write your name.');\n        return false;\n    }\n    var selst = \"\"+document.getElementById(\"selDaycal\"+cpabc_current_calendar_item).value;    \n    if (selst == '')\n    {\n        alert('Please select date and time.');\n        return false;\n    }\n    selst = selst.match(\/;\/g);selst = selst.length;\n    if (selst < 1)\n    {\n        var almsg = 'Please select at least %1 time-slots. Currently selected: %2 time-slots.';\n        almsg = almsg.replace('%1','1');\n        almsg = almsg.replace('%2',selst);\n        alert(almsg);\n        return false;\n    }\n    if (selst > 3)\n    {\n        var almsg = 'Please select a maximum of %1 time-slots. Currently selected: %2 time-slots.';\n        almsg = almsg.replace('%1','3');\n        almsg = almsg.replace('%2',selst);\n        alert(almsg);\n        return false;\n    } \n     if (form.hdcaptcha.value == '')\n    {\n        alert('Please enter the captcha verification code.');\n        return false;\n    }\n    $dexQuery = jQuery.noConflict();\n    var result = $dexQuery.ajax({\n        type: \"GET\",\n        url: \"?inAdmin=1\"+String.fromCharCode(38)+\"abcc=1\"+String.fromCharCode(38)+\"hdcaptcha=\"+form.hdcaptcha.value,\n        async: false\n    }).responseText;\n    if (result.indexOf(\"captchafailed\") != -1)\n    {\n        $dexQuery(\"#captchaimg\").attr('src', $dexQuery(\"#captchaimg\").attr('src')+String.fromCharCode(38)+Math.floor((Math.random() * 99999) + 1));\n        alert('Incorrect captcha code. Please try again.');\n        return false;\n    }\n    else     {\n        cpabc_click_enabled = false;\n        cpabc_blink(\".cp_subbtn\");\n        return true;\n    }\n }\n function cpabc_blink(selector){\n     try \n     {\n         $dexQuery = jQuery.noConflict();\n         $dexQuery(selector).fadeOut(1000, function(){\n             $dexQuery(this).fadeIn(1000, function(){\n                 if (!cpabc_click_enabled)\n                     cpabc_blink(this); \n             });\n         });\n     } catch (e) {}\n }\n<\/script>    \n    <\/code><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=\/wp\/v2\/pages\/289"}],"collection":[{"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289"}],"version-history":[{"count":2,"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=\/wp\/v2\/pages\/289\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=\/wp\/v2\/pages\/289\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/numeriquepourtous.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}