{"id":37,"date":"2020-01-21T12:48:09","date_gmt":"2020-01-21T12:48:09","guid":{"rendered":"http:\/\/cristiano.ukrdevs.com\/?page_id=37"},"modified":"2024-08-22T11:37:59","modified_gmt":"2024-08-22T11:37:59","slug":"reservation","status":"publish","type":"page","link":"https:\/\/indianexpress.es\/index.php\/reservation\/","title":{"rendered":"Reservar"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"37\" class=\"elementor elementor-37\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2392fb6 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"2392fb6\" 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-cfd77fe\" data-id=\"cfd77fe\" 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-decc526 elementor-invisible elementor-widget elementor-widget-cristiano_reservation_email\" data-id=\"decc526\" data-element_type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;slideInUp&quot;}\" data-widget_type=\"cristiano_reservation_email.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<section id=\"reservation\" class=\"section-block  has-bg alignfull dzsparallaxer auto-init height-is-based-on-content use-loading\">\n\t\t\t\t\t\t\t<div class=\"divimage dzsparallaxer--target\" style=\"background-image:url(https:\/\/indianexpress.es\/wp-content\/uploads\/2021\/10\/back-indian-expres.jpg); opacity: 0.5\"><\/div>\t\n\t\t\t\t\t\t<div class=\"center\">\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"section-title v1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"font-heading\">Reservar mesa<\/h3>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t<form id=\"reservation-form\" method=\"post\" action=\"https:\/\/indianexpress.es\/wp-admin\/admin-ajax.php\">\t\n\t\t\t\t\t<div id=\"reservation-form-messages\" class=\"submit-form-message\"><\/div>\n\t\t\t\t\t<div class=\"cols-3 margin-large\">\t\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"date\">Fecha<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" format=\"d \\dd\\e MM \\dd\\e yy\" autocomplete=\"off\" name=\"date\" id=\"date\" class=\"required datepicker\">\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"double-form-items\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"time\">Hora<\/label>\n\t\t\t\t\t\t\t<select id=\"time\" name=\"time\" class=\"required\">\n\t\t\t\t\t\t\t<option value=\"13:00\" >13:00<\/option>\n<option value=\"13:30\" >13:30<\/option>\n<option value=\"14:00\" >14:00<\/option>\n<option value=\"14:30\" >14:30<\/option>\n<option value=\"15:00\" >15:00<\/option>\n<option value=\"15:30\" >15:30<\/option>\n<option value=\"16:00\" >16:00<\/option>\n<option value=\"16:30\" >16:30<\/option>\n<option value=\"17:00\"  selected=\"selected\" >17:00<\/option>\n<option value=\"17:30\" >17:30<\/option>\n<option value=\"18:00\" >18:00<\/option>\n<option value=\"18:30\" >18:30<\/option>\n<option value=\"19:00\" >19:00<\/option>\n<option value=\"19:30\" >19:30<\/option>\n<option value=\"20:00\" >20:00<\/option>\n<option value=\"20:30\" >20:30<\/option>\n<option value=\"21:00\" >21:00<\/option>\n<option value=\"21:30\" >21:30<\/option>\n<option value=\"22:00\" >22:00<\/option>\n<option value=\"22:30\" >22:30<\/option>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\t\n\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"number\">N\u00ba de comensales<\/label>\n\t\t\t\t\t\t\t<select id=\"number\" name=\"number\" class=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option selected value=\"2\">2<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"3\">3<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"4\">4<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"5\">5<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"6\">6<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"7\">7<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"8\">8<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"9\">9<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"10\">10<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"11\">11<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"12\">12<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"13\">13<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"14\">14<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option  value=\"15\">15<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"location\">Location<\/label>\n\t\t\t\t\t\t\t<select id=\"location\" name=\"location\" class=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option>Terrace\r<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option>Inside\r<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option>Take Away<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"name\">Nombre<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" class=\"required\" name=\"name\" id=\"name\">\n\t\t\t\t\t\t<\/div>\t\n\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"phone\">Tel\u00e9fono<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" maxlength=\"15\" class=\"required\" name=\"phone\" id=\"phone\">\n\t\t\t\t\t\t<\/div>\t\t\n\t\t\t\t\t\t<div class=\"form-item\">\n\t\t\t\t\t\t\t<label for=\"email\">Email<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" class=\"required\" name=\"email\" id=\"email\">\n\t\t\t\t\t\t<\/div>\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"align-center-margin\">\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<button id=\"reservation-submit\" class=\"btn btn-transparent btn-lg\" type=\"submit\">Reservar<\/button>\n\t\t\t\t\t<\/div>\t\t\t\t\n\t\t\t\t<\/form>\n\t\t\t<\/div>\n\t\t<\/section>\t\t\n\t\t<script>\t\t\t\t\t\t\n\t\t\tjQuery(document).ready(function($) {\t\t\t\t\n\t\t\t\t\n\t\t\t\tfunction validate(){\t\t\t\t  \t\n\t\t\t\t\tvar form = jQuery('#reservation-form');\t\t\n\t\t\t\t\tform.find('[name]').each(function(index, value){\n\t\t\t\t\t\t var that = $(this),\n\t\t\t\t\t\t\t  value = that.val(),\n\t\t\t\t\t\t\t name = that.attr('name');\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t if(that.hasClass('required')) {\n\t\t\t\t\t\t\tif(value == '' || value.length < 3 && value.length > 50) {\n\t\t\t\t\t\t\t\tthat.addClass('error');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthat.removeClass('error');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(name == 'email') {\n\t\t\t\t\t\t\t\tif(!value.match(\/^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$\/i)) {\n\t\t\t\t\t\t\t\t\tthat.addClass('error');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(name == 'phone') {\n\t\t\t\t\t\t\t\tif(!value.match(\/([0-9]{9})|(\\([0-9]{3}\\)\\s+[0-9]{3}\\-[0-9]{4})\/)) {\n\t\t\t\t\t\t\t\t\tthat.addClass('error');\t\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif(form.find('.required').hasClass('error')) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t   }\n\t\t\t\t  jQuery('#reservation-form').on('submit', function(e) {\n\t\t\t\t\t   e.preventDefault();\n\t\t\t\t\t   var formMessages = $('#reservation-form-messages');\n\t\t\t\t\t   var form = jQuery(this);\t\t\n\t\t\t\t\t   if(validate()) {\n\t\t\t\t\t\t\t\t\t\t\t\t   \n\t\t\t\t\t\t\t   var data = {\n\t\t\t\t\t\t\t\taction: 'reservation_submit',\n\t\t\t\t\t\t\t\tform_data: form.serialize()\n\t\t\t\t\t\t\t}; \t\t\n\t\t\t\t\n\t\t\t\t\t\t\tvar test = jQuery.post( form.attr('action'), data, function(response) {\n\t\t\t\t\t\t\t\t\/\/ Make sure that the formMessages div has the 'success' class.\n\t\t\t\t\t\t\t\tvar response  = (jQuery.parseJSON(response));\n\t\t\t\t\t\t\t\t$(formMessages).removeClass('error');\n\t\t\t\t\t\t\t\t$(formMessages).addClass(response.class);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/\/ Set the message text.\n\t\t\t\t\t\t\t\t$(formMessages).text(response.message);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/\/ Reset the Form\n\t\t\t\t\t\t\t\tif(response.class == 'success') {\n\t\t\t\t\t\t\t\t\tform[0].reset();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\/\/$('#reservation-submit').prop(\"disabled\", true);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t  });\n\t\t\t});\n\t\t<\/script>\t\t\n\t\t\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<section class=\"elementor-section elementor-top-section elementor-element elementor-element-102160e elementor-section-content-middle elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default elementor-invisible\" data-id=\"102160e\" data-element_type=\"section\" data-settings=\"{&quot;animation&quot;:&quot;slideInDown&quot;,&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f65b1cf\" data-id=\"f65b1cf\" 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-d540e66 elementor-widget elementor-widget-cristiano_info_blocks\" data-id=\"d540e66\" data-element_type=\"widget\" data-widget_type=\"cristiano_info_blocks.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\n\t\t<section id=\"contact-details\" class=\"section-block reset\">\n\t\t\t<div class=\"center\">\n\t\t\t\t\t\t\t\t\t<div class=\"section-title v2\">\n\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"font-heading\">encu\u00e9ntranos<\/h3>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cols-4 margin-large\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"box\">\n\t\t\t\t\t\t\t\t\t<h3 class=\"font-title\">Tel\u00e9fono<\/h3>\n\t\t\t\t\t\t\t\t\t<div class=\"content\"><p>+34 922 367 254<\/p>\n<\/div>\n\t\t\t\t\t\t\t\t\t<span class=\"icon color-pr-bg fas fa-phone\"><\/span>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"box\">\n\t\t\t\t\t\t\t\t\t<h3 class=\"font-title\">Horario<\/h3>\n\t\t\t\t\t\t\t\t\t<div class=\"content\"><p>Todos los d\u00edas desde:<br \/>\n13:00 - 22:30<\/p>\n<\/div>\n\t\t\t\t\t\t\t\t\t<span class=\"icon color-pr-bg fas fa-clock\"><\/span>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"box\">\n\t\t\t\t\t\t\t\t\t<h3 class=\"font-title\">Direcci\u00f3n<\/h3>\n\t\t\t\t\t\t\t\t\t<div class=\"content\"><p>C\/ Esquivel n\u00ba 18<br \/>\n38400 Puerto de la Cruz<\/p>\n<\/div>\n\t\t\t\t\t\t\t\t\t<span class=\"icon color-pr-bg fas fa-map-marker-alt\"><\/span>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"box\">\n\t\t\t\t\t\t\t\t\t<h3 class=\"font-title\">Email<\/h3>\n\t\t\t\t\t\t\t\t\t<div class=\"content\"><p>info@indianexpress.es<\/p>\n<\/div>\n\t\t\t\t\t\t\t\t\t<span class=\"icon color-pr-bg far fa-envelope\"><\/span>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Reservar mesa Fecha Hora 13:0013:3014:0014:3015:0015:3016:0016:3017:0017:3018:0018:3019:0019:3020:0020:3021:0021:3022:0022:30 N\u00ba de comensales 23456789101112131415 Location Terrace Inside Take Away Nombre Tel\u00e9fono Email Reservar encu\u00e9ntranos Tel\u00e9fono +34 922 367 254 Horario Todos los d\u00edas desde: 13:00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":-7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-37","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/pages\/37"}],"collection":[{"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":32,"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/pages\/37\/revisions"}],"predecessor-version":[{"id":16645,"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/pages\/37\/revisions\/16645"}],"wp:attachment":[{"href":"https:\/\/indianexpress.es\/index.php\/wp-json\/wp\/v2\/media?parent=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}