{"id":1107,"date":"2024-08-05T13:22:27","date_gmt":"2024-08-05T13:22:27","guid":{"rendered":"https:\/\/hub.ajabu.co.ke\/?page_id=1107"},"modified":"2024-12-13T11:52:59","modified_gmt":"2024-12-13T11:52:59","slug":"appointments","status":"publish","type":"page","link":"https:\/\/hub.ajabu.co.ke\/index.php\/appointments\/","title":{"rendered":"Appointments"},"content":{"rendered":"<style type=\"text\/css\">\r\n#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{width:49% !important}#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{min-width:200px !important}#dex_bccf_pform .ui-datepicker:not(.ui-datepicker-multi){min-width:200px}#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{max-width:400px !important}#dex_bccf_pform .ui-datepicker:not(.ui-datepicker-multi){max-width:400px}#dex_bccf_pform tr th span,#dex_bccf_pform tr th a,#dex_bccf_pform tr td span, #dex_bccf_pform tr td a{padding:0px}<\/style><form class=\"cpp_form\" name=\"dex_bccf_pform\" id=\"dex_bccf_pform\" action=\"\" method=\"post\" enctype=\"multipart\/form-data\" onsubmit=\"return doValidate(this);\"><input name=\"dex_bccf_post\" type=\"hidden\" value=\"1\" \/><input type=\"hidden\" name=\"_wpnonce\" value=\"36827bcefe\" \/>\r\n<script>\r\nvar pathCalendar = \"\/\";\r\n<\/script>\r\n<div style=\"display:none\" id=\"bccfcalselectionarea\">\r\nCalendar:<br \/><select name=\"dex_item\" id=\"dex_item\" onchange=\"dex_updateItem()\"><option value=1>Calendar Item 1<\/option><\/select><br \/><br \/>\r\n<\/div>\r\n<div id=\"bccfcalarea\">\r\n<label id=\"bccfselectdates\">Select start and end dates:<\/label>\r\n<div id=\"calarea1\" style=\"display:none\" class=\"rcalendar\"><\/div><div id=\"bccf_display_price\" >\r\nPrice:\r\n<\/div>\r\n<\/div>\r\n<div id=\"selddiv\" style=\"font-weight: bold;margin-top:0px;padding-top:0px;padding-right:3px;padding-left:3px;\"><\/div>\r\n<script type=\"text\/javascript\"> var dex_current_calendar_item;\r\n function dex_updateItem()\r\n {\r\n    document.getElementById(\"calarea\"+dex_current_calendar_item).style.display = \"none\";\r\n    var i = document.dex_bccf_pform.dex_item.options.selectedIndex;\r\n    var selecteditem = document.dex_bccf_pform.dex_item.options[i].value;\r\n    dex_do_init(selecteditem);\r\n }\r\n function dex_do_init(id)\r\n {\r\nmyjQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;\r\n  try{$testjq = myjQuery} catch (e) {}\r\n  if (typeof $testjq == 'undefined')\r\n  {\r\n    setTimeout(\"dex_do_init(\"+id+\");\");\r\n    return;\r\n  }    \r\n  myjQuery(function(){\r\n    (function($) {         \r\n        dex_current_calendar_item = id;\r\n        document.getElementById(\"calarea\"+dex_current_calendar_item).style.display = \"\";\r\n        $calendarjQuery = myjQuery;\r\n        $calendarjQuery(function() {\r\n        $calendarjQuery(\"#calarea\"+id).rcalendar({\"calendarId\":id,\r\n                                                    \"partialDate\":true,\r\n                                                    \"defaultColor\":'F66',\r\n                                                    \"partial_defaultColor\":'F66',\r\n                                                    \"edition\":false,\r\n                                                    \"minDate\":\"04\/08\/2026\",\r\n                                                    \"maxDate\":\"\",\r\n                                                    \"dformat\":\"dd\/mm\/yy\",\r\n                                                    \"workingDates\":[0,1,1,1,1,1,1],\r\n\t    \t\t\t                                \"holidayDates\":[],\r\n\t    \t\t\t                                \"startReservationWeekly\":[0,1,1,1,1,1,0],\r\n\t    \t\t\t                                \"startReservationDates\":[],\r\n\t    \t\t\t                                \"fixedReservationDates\":true,\r\n\t    \t\t\t                                \"fixedReservationDates_length\":1,\r\n                                                    \"language\":\"\",\r\n                                                    \"firstDay\":1,\r\n                                                    \"numberOfMonths\":2                                                    });\r\n        });\r\n        $calendarjQuery(\"#calarea\"+id).addClass('notranslate');\r\n        document.getElementById(\"selddiv\").innerHTML = \"\";\r\n    })(myjQuery);\r\n    });\r\n }\r\n function bccf_init_cal(){\r\n    if (window.jQuery){\r\n        dex_do_init(1);\r\n    }\r\n    else{\r\n       window.setTimeout(\"bccf_init_cal();\",100);\r\n    }\r\n }\r\n bccf_init_cal();\r\n var bccf_d1 = \"\";\r\n var bccf_d2 = \"\";\r\n var bccf_ser = \"\";\r\n function updatedate()\r\n {\r\n    try\r\n    {\r\n        var a = (document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value != '');\r\n        var b = (document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value != '');\r\n        var c = false;\r\n        if (a)\r\n        {\r\n          if (!b && false)\r\n          {\r\n            b = a;              \r\n            document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value;\r\n            document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value;\r\n            document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value;\r\n          }\r\n          if (b)\r\n            c = true;    \r\n        }\r\n        if (c)\r\n        {\r\n            var d1 = document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value;\r\n            var d2 = document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value;\r\n            $dexQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;\r\n            var ser = \"\";            if (bccf_d1 != d1 || bccf_d2 != d2 || bccf_ser != ser)\r\n            {\r\n                bccf_d1 = d1;\r\n                bccf_d2 = d2;\r\n                bccf_ser = ser;\r\n                $dexQuery.ajax({\r\n                  type: \"GET\",\r\n                  url: \"\/?dex_bccf=getcost\"+String.fromCharCode(38)+\"inAdmin=1\"+String.fromCharCode(38)+\"dex_item=\"+dex_current_calendar_item+\"\"+String.fromCharCode(38)+\"from=\"+d1+\"\"+String.fromCharCode(38)+\"to=\"+d2+\"\"+ser\r\n                }).done(function( html ) {\r\n                    document.getElementById(\"bccf_display_price\").innerHTML = '';\r\n                    $dexQuery(\"#bccf_display_price\").append('<b>Cost:<\/b> USD '+html);\r\n                });\r\n            }\r\n        }\r\n        else\r\n        {\r\n            bccf_d1 = \"\";\r\n            bccf_d2 = \"\";\r\n            document.getElementById(\"bccf_display_price\").innerHTML = '';\r\n        }\r\n    } catch (e) {}\r\n }\r\n setInterval('updatedate()',200); var cp_bccf_ready_to_go = false;\r\n function doValidate(form)\r\n {\r\n    if (cp_bccf_ready_to_go) return;\r\n    $dexQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;    var d1 = new Date(document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value,document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value-1,document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value);\r\n    var d2 = new Date(document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value,document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value-1,document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value);\r\n    var ONE_DAY = 1000 * 60 * 60 * 24;\r\n    var nights = Math.round(Math.abs(d2.getTime() - d1.getTime()) \/ ONE_DAY);        document.dex_bccf_pform.dex_bccf_ref_page.value = document.location;    if (document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item).value == '' || document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item).value == '')\r\n    {\r\n        alert('Please select start and end dates.');\r\n        return false;\r\n    }\r\n    if (nights < 0){\r\n        alert('The minimum number of nights to book is 0');\r\n        return false;\r\n    }\r\n    if (nights > 365){\r\n        alert('The maximum number of nights to book is 365');\r\n        return false;\r\n    }     if ($dexQuery(\"#hdcaptcha_dex_bccf_post\").val() == '')\r\n    {\r\n        setTimeout( \"cpbccf_cerror()\", 100);\r\n        return false;\r\n    }\r\n    var result = $dexQuery.ajax({\r\n        type: \"GET\",\r\n        url: \"?inAdmin=1\"+String.fromCharCode(38)+\"hdcaptcha_dex_bccf_post=\"+$dexQuery(\"#hdcaptcha_dex_bccf_post\").val(),\r\n        async: false\r\n    }).responseText;\r\n    if (result.indexOf(\"captchafailed\") != -1)\r\n    {\r\n        $dexQuery(\"#dex_bccf_captchaimg\").attr('src', $dexQuery(\"#dex_bccf_captchaimg\").attr('src')+'&'+Math.floor((Math.random() * 99999) + 1));\r\n        setTimeout( \"cpbccf_cerror()\", 100);\r\n        return false;\r\n    }\r\n    else     {\r\n        var cpefb_error = 0;\r\n        $dexQuery(\"#dex_bccf_pform\").find(\".cpefb_error\").each(function(index){\r\n            if ($dexQuery(this).css(\"display\")!=\"none\")\r\n                cpefb_error++;    \r\n            });\r\n        if (cpefb_error) return false;    \r\n        cp_bccf_ready_to_go = true;\r\n        cpbccf_blink(\".pbSubmit\");        \r\n        document.getElementById(\"form_structure\").value = '';        \r\n        return true;\r\n    }    \r\n }\r\n function cpbccf_cerror(){$dexQuery = jQuery.noConflict();$dexQuery(\"#hdcaptcha_error\").css('top',$dexQuery(\"#hdcaptcha_dex_bccf_post\").outerHeight());$dexQuery(\"#hdcaptcha_error\").css(\"display\",\"inline\");} \r\n function cpbccf_blink(selector){\r\n        try {   \r\n            $dexQuery = jQuery.noConflict();\r\n            $dexQuery(selector).fadeOut(1000, function(){\r\n                $dexQuery(this).fadeIn(1000, function(){\r\n                    try {\r\n                        if (cp_bccf_ready_to_go)\r\n                            cpbccf_blink(this); \r\n                    } catch (e) {}  \r\n                });\r\n            });        \r\n        } catch (e) {}             \r\n }\r\n<\/script><input type=\"hidden\" name=\"dex_bccf_pform_process\" value=\"1\" \/><input type=\"hidden\" name=\"dex_bccf_id\" value=\"1\" \/><input type=\"hidden\" name=\"dex_bccf_ref_page\" value=\"\" \/><input type=\"hidden\" name=\"form_structure\" id=\"form_structure\" size=\"180\" value=\"[[{&quot;name&quot;:&quot;email&quot;,&quot;index&quot;:0,&quot;title&quot;:&quot;Email&quot;,&quot;ftype&quot;:&quot;femail&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;required&quot;:true,&quot;predefined&quot;:&quot;&quot;,&quot;size&quot;:&quot;medium&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;subject&quot;,&quot;index&quot;:1,&quot;title&quot;:&quot;Subject&quot;,&quot;required&quot;:true,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;size&quot;:&quot;medium&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;message&quot;,&quot;index&quot;:2,&quot;size&quot;:&quot;large&quot;,&quot;required&quot;:true,&quot;title&quot;:&quot;Message&quot;,&quot;ftype&quot;:&quot;ftextarea&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;}],[{&quot;title&quot;:&quot;&quot;,&quot;description&quot;:&quot;&quot;,&quot;formlayout&quot;:&quot;top_aligned&quot;}]]\" \/>\r\n  <div id=\"fbuilder\">\r\n      <div id=\"formheader\"><\/div>\r\n      <div id=\"fieldlist\"><\/div>\r\n  <\/div>\r\n<div style=\"display:none\">  \r\n<div id=\"cpcaptchalayer\">\r\n  <div class=\"fields\" id=\"field-ck2\"><label><\/label><div class=\"dfield\">Please enter the security code:<br \/><img decoding=\"async\" src=\"https:\/\/hub.ajabu.co.ke\/wp-content\/plugins\/booking-calendar-contact-form\/captcha\/captcha.php?width=180&#038;inAdmin=1&#038;height=60&#038;letter_count=5&#038;min_size=30&#038;max_size=35&#038;noise=200&#038;noiselength=4&#038;bcolor=223107&#038;border=000000&#038;font=font-1.ttf\"  id=\"dex_bccf_captchaimg\" alt=\"security code\" border=\"0\" class=\"skip-lazy\"  \/>\r\n  <div class=\"clearer\"><\/div><\/div><\/div>\r\n  <div class=\"fields\" id=\"field-c2\"><label>Security Code (lowercase letters):<\/label>\r\n   <div class=\"dfield\">\r\n    <input type=\"text\" size=\"20\" name=\"hdcaptcha_dex_bccf_post\" id=\"hdcaptcha_dex_bccf_post\" value=\"\" \/>\r\n    <div class=\"cpefb_error message\" id=\"hdcaptcha_error\" generated=\"true\" style=\"display:none;position: absolute; left: 0px; top: 25px;\">Please enter a valid captcha code.<\/div>\r\n    <div class=\"clearer\"><\/div>\r\n   <\/div>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"cp_subbtn\" class=\"cp_subbtn\">Continue<\/div>\r\n<\/form>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1107","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/pages\/1107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/comments?post=1107"}],"version-history":[{"count":3,"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/pages\/1107\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/pages\/1107\/revisions\/1304"}],"wp:attachment":[{"href":"https:\/\/hub.ajabu.co.ke\/index.php\/wp-json\/wp\/v2\/media?parent=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}