{"id":9,"date":"2022-02-26T10:28:59","date_gmt":"2022-02-26T10:28:59","guid":{"rendered":"http:\/\/turnealo.com\/?page_id=9"},"modified":"2022-02-28T17:17:57","modified_gmt":"2022-02-28T17:17:57","slug":"contacto","status":"publish","type":"page","link":"https:\/\/turnealo.com\/?page_id=9","title":{"rendered":"Contacto"},"content":{"rendered":"\n<script src=\"https:\/\/www.google.com\/recaptcha\/api.js\"><\/script>\n\n<script type=\"text\/javascript\">\n\n  function enviarFormulario(){\n\n      const data = new FormData(document.getElementById('formulario'));\n\n      fetch('..\/turnealo\/public\/index.php\/api\/contacto', {\n      method: 'POST',\n      body: data\n      })\n      .then(function(response) {\n      if(response.ok) {\n         return response.json()\n      } else {\n         notificarError(response);\n      }\n\n      })\n      .then(function(datos) {\n         alert(datos.nota);\n         window.location.href = '.\/';\n      })\n      .catch(function(err) {\n          console.log(err);\n      });\n\n\n  }\n\n\nasync function notificarError(response){\n      const respuesta = await response.json();   \n      alert(respuesta.nota)\n}\n\n<\/script>\n\n\n\n\n\n<div class=\"container\">\n    <div class=\"row\">\n        <div class=\"col-md-12\">\n            <div class=\"well well-sm\">\n                <form class=\"form-horizontal\" id=\"formulario\" name=\"formulario\" enctype=\"multipart\/form-data\">\n                    <fieldset>\n                        <legend class=\"text-center header\"> Contacto <\/legend>\n\n                        <div class=\"form-group\">\n                            <span class=\"col-md-1 col-md-offset-2 text-center\"><i class=\"fa fa-user bigicon\"><\/i><\/span>\n                            <div class=\"col-md-8\">\n                                <input id=\"nombre\" name=\"nombre\" type=\"text\" placeholder=\" Ingrese su nombre \" class=\"form-control\">\n                            <\/div>\n                        <\/div>\n\n\n                        <div class=\"form-group\">\n                            <span class=\"col-md-1 col-md-offset-2 text-center\"><i class=\"fa fa-envelope\"><\/i><\/span>\n                            <div class=\"col-md-8\">\n                                <input id=\"email\" name=\"email\" type=\"text\" placeholder=\"Ingrese su email\" class=\"form-control\">\n                            <\/div>\n                        <\/div>\n\n                        <div class=\"form-group\">\n                            <span class=\"col-md-1 col-md-offset-2 text-center\"><i class=\"fa fa-phone-square bigicon\"><\/i><\/span>\n                            <div class=\"col-md-8\">\n                                <input id=\"telefono\" name=\"telefono\" type=\"text\" placeholder=\"Ingrese su telefono\" class=\"form-control\">\n                            <\/div>\n                        <\/div>\n\n                        <div class=\"form-group\">\n                            <span class=\"col-md-1 col-md-offset-2 text-center\"><i class=\"fa fa-pencil-square-o bigicon\"><\/i><\/span>\n                            <div class=\"col-md-8\">\n                                <textarea class=\"form-control\" id=\"consulta\" name=\"consulta\" placeholder=\"Dejanos tu consulta, sugerencia o reclamo y nos pondremos en contacto a la brevedad.\" rows=\"7\"><\/textarea>\n                            <\/div>\n                        <\/div>\n\n                        <div class=\"form-group\">\n\n                            <div class=\"col-md-8\">\n                                  <div class=\"g-recaptcha\" data-sitekey=\"6Ld3QLEUAAAAAFJiVoI26GzlVrFPjMsyr4T1_rw-\"><\/div>\n                            <\/div>\n                        <\/div>\n\n\n\n                        <div class=\"form-group\">\n                            <div class=\"col-md-12 text-center\">\n                                <button type=\"button\" class=\"btn btn-primary\" onclick=\"enviarFormulario()\"> Enviar <\/button>\n                            <\/div>\n                        <\/div>\n                    <\/fieldset>\n                <\/form>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contacto Enviar<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"class_list":["post-9","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/turnealo.com\/index.php?rest_route=\/wp\/v2\/pages\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/turnealo.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/turnealo.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/turnealo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/turnealo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9"}],"version-history":[{"count":51,"href":"https:\/\/turnealo.com\/index.php?rest_route=\/wp\/v2\/pages\/9\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/turnealo.com\/index.php?rest_route=\/wp\/v2\/pages\/9\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/turnealo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}