{"id":1069,"date":"2019-12-31T22:32:25","date_gmt":"2019-12-31T20:32:25","guid":{"rendered":"http:\/\/esquaredtutoring.co.za\/?page_id=1069"},"modified":"2025-09-17T22:19:01","modified_gmt":"2025-09-17T20:19:01","slug":"register","status":"publish","type":"page","link":"https:\/\/esquaredtutoring.co.za\/?page_id=1069","title":{"rendered":"REGISTER"},"content":{"rendered":"\n<div class=\"wp-block-bookly-cancellation-confirmation-cancellation-form\"><div id=\"bookly-tbs\" class=\"bookly-js-cancellation-confirmation\">\n            <div class=\"text-center\">\n            <div>\n                <i class=\"fa fa-fw fas fa-exclamation-triangle fa-2x text-danger\"><\/i> Oops!            <\/div>\n            <div>This appointment does not exist.<\/div>\n        <\/div>\n    <\/div>\n<script type=\"text\/javascript\">\n    let booklyCancelConfirmationUrl = \"https:\\\/\\\/esquaredtutoring.co.za\\\/wp-admin\\\/admin-ajax.php?action=bookly_cancel_appointment\";\n    \/\/ Click on 'Do not cancel' button\n    let links = document.getElementsByClassName('bookly-js-cancellation-confirmation-no');\n    for (var i = 0; i < links.length; i++) {\n        if (links[i].onclick == undefined) {\n            links[i].onclick = function (e) {\n                e.preventDefault();\n                var container = this.closest('.bookly-js-cancellation-confirmation'),\n                    buttons = container.getElementsByClassName('bookly-js-cancellation-confirmation-buttons')[0],\n                    message = container.getElementsByClassName('bookly-js-cancellation-confirmation-message')[0];\n                buttons.style.display = 'none';\n                message.style.display = 'inline';\n            };\n        }\n    }\n    \/\/ Click on 'Confirm cancellation' button\n    links = document.getElementsByClassName('bookly-js-cancellation-confirmation-yes');\n    for (i = 0; i < links.length; i++) {\n        if (links[i].onclick == undefined) {\n            links[i].onclick = function (e) {\n                e.preventDefault();\n                var url = booklyCancelConfirmationUrl + String.fromCharCode(38) + 'token=' + this.dataset.token,\n                    $reason = this.closest('.bookly-js-cancellation-confirmation-buttons').querySelector('.bookly-js-cancellation-confirmation-reason');\n                if ($reason !== null) {\n                    url += String.fromCharCode(38) + 'reason=' + encodeURIComponent($reason.value)\n                }\n                window.location.replace(url)\n            };\n        }\n    }\n    <\/script><\/div>\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":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"class_list":["post-1069","page","type-page","status-publish","hentry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=\/wp\/v2\/pages\/1069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1069"}],"version-history":[{"count":7,"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=\/wp\/v2\/pages\/1069\/revisions"}],"predecessor-version":[{"id":2849,"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=\/wp\/v2\/pages\/1069\/revisions\/2849"}],"wp:attachment":[{"href":"https:\/\/esquaredtutoring.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}