{"id":34,"date":"2016-07-21T20:32:01","date_gmt":"2016-07-21T20:32:01","guid":{"rendered":"http:\/\/cristiano.ukrdevs.com\/?page_id=34"},"modified":"2023-08-19T01:19:21","modified_gmt":"2023-08-18T16:19:21","slug":"contact-us","status":"publish","type":"page","link":"https:\/\/banhangnhat.com\/vi\/contact-us\/","title":{"rendered":"Li\u00ean H\u1ec7"},"content":{"rendered":"<p><span class=\"glf-button-default glf-button \" style='background-color:#ef8b17; color:#FFFFFF !important; font-weight:bold; font-size:18px; padding:15px; border-radius:3px; font-family:\"Arial\", sans-serif; '  data-glf-cuid=\"\" data-glf-ruid=\"3aa5c846-46cd-4e7b-b26d-83c67885876c\"  data-location=\"3aa5c846-46cd-4e7b-b26d-83c67885876c\">Xem MENU & \u0110\u1eb7t M\u00f3n<\/span><script src=\"https:\/\/www.fbgcdn.com\/embedder\/js\/ewm2.js\" defer async ><\/script><style> .glf-ordering-location > span{display:none;} <\/style>\t<section id=\"contact-form\" class=\"section-block \">\r\n\t\t\t\t<div class=\"wrap\">\r\n\t\t\t<div class=\"section-title v1\">\r\n\t\t\t<p class=\"subtitle\">Send us a message<\/p>\r\n\t\t<h3> Contact Form<\/h3>\t\t\r\n<\/div>\t\t\t<form id=\"ajax-contact\" method=\"post\" action=\"https:\/\/banhangnhat.com\/wp-admin\/admin-ajax.php\">\r\n\t\t\t\t<div id=\"form-messages\" class=\"submit-form-message\"><\/div>\r\n\t\t\t\t<div class=\"form-items cols-3\">\r\n\t\t\t\t\t<div class=\"form-item\">\r\n\t\t\t\t\t\t<label for=\"input-name\">Your Name *<\/label>\r\n\t\t\t\t\t\t<input type=\"text\" id=\"input-name\" name=\"name\" class=\"required\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"form-item\">\r\n\t\t\t\t\t\t<label for=\"input-email\">Your Email *<\/label>\r\n\t\t\t\t\t\t<input type=\"email\" id=\"input-email\" name=\"email\" class=\"required\">\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"form-item\">\r\n\t\t\t\t\t\t<label for=\"input-phone\">Your Phone<\/label>\r\n\t\t\t\t\t\t<input type=\"tel\" id=\"input-phone\" name=\"phone\" >\r\n\t\t\t\t\t<\/div>\t\r\n\t\t\t\t\t<div class=\"form-item full-width\">\r\n\t\t\t\t\t\t<label for=\"textarea-message\">Message *<\/label>\r\n\t\t\t\t\t\t<textarea id=\"textarea-message\" name=\"message\" class=\"required\"><\/textarea>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t<div class=\"align-center-margin\">\r\n\t\t\t\t\t\t\t\t\t    \t<div class=\"g-recaptcha\" data-sitekey=\"6LdG7FgmAAAAAB4u1NeQZfb4izUJiwrYXzTNjQGb\"><\/div>\r\n\t\t\t\t    \t\t\t\t\t<button type=\"submit\" class=\"btn-form btn btn-default btn-lg\">Send message<\/button>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/form>\r\n\t\t<\/div>\r\n\t\t\t\t\t\r\n\t<\/section>\r\n\t<script>\r\n\t\tjQuery(document).ready(function($) {\r\n\t\t\r\n\t\t\tfunction validate(){\r\n\t\t\t\tvar form = jQuery('#ajax-contact');\t\t\t\t\r\n\t\t\t\tform.find('[name]').each(function(index, value){\r\n\t\t\t\t\tvar that = $(this),\r\n\t\t\t\t\t\t value = that.val(),\r\n\t\t\t\t\t\tname = that.attr('name');\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(that.hasClass('required')) {\r\n\t\t\t\t\t\tif(value == '' || value.length < 3 && value.length > 50) {\r\n\t\t\t\t\t\t\tthat.addClass('error');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthat.removeClass('error');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(name == 'phone') {\r\n\t\t\t\t\t\t\tif(!value.match(\/[1-4-+]\/g)) {\r\n\t\t\t\t\t\t\t\tthat.addClass('error');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(name == 'email') {\r\n\t\t\t\t\t\t\tif(!value.match(\/^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$\/i)) {\r\n\t\t\t\t\t\t\t\tthat.addClass('error');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tif(form.find('.required').hasClass('error')) {\r\n\t\t\t\t\t\t\t\t\t\t\tgrecaptcha.reset();\r\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tgrecaptcha.execute();\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\r\n\t\tjQuery('#ajax-contact').on('submit', function(e) {\r\n\t\t\r\n\t\t\te.preventDefault();\r\n\t\t\tvar formMessages = $('#form-messages');\r\n\t\t\tvar form = jQuery(this);\t\t\t\t\r\n\t\t\r\n\t\t\tif(validate()) {\r\n\t\t\t\tvar data = {\r\n\t\t\t\t\taction: 'contact_submit',\r\n\t\t\t\t\tform_data: form.serialize(),\r\n\t\t\t\t}; \t\t\r\n\t\t\r\n\t\t\t\tjQuery.post( form.attr('action'), data, function(response) {\r\n\t\t\r\n\t\t\t\t\tvar response  = (jQuery.parseJSON(response));\r\n\t\t\t\t\t\/\/ Make sure that the formMessages div has the 'success' class.\r\n\t\t\t\t\t$(formMessages).removeClass('error');\r\n\t\t\t\t\t$(formMessages).addClass(response.class);\r\n\t\t\t\t\r\n\t\t\t\t\t\/\/ Set the message text.\r\n\t\t\t\t\t$(formMessages).text(response.message);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(response.class == 'success') {\r\n\t\t\t\t\t\tform[0].reset();   \r\n\t\t\t\t\t\t\/\/grecaptcha.reset();\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\/\/$('#reservation-submit').prop(\"disabled\", true);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t  \r\n\t\t});\t\r\n\t\t\/\/ this block can be defined anywhere\r\n\t\t});\t\r\n\t<\/script>\r\n\t<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":853,"parent":0,"menu_order":-6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-34","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/pages\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":5,"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":952,"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/pages\/34\/revisions\/952"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/media\/853"}],"wp:attachment":[{"href":"https:\/\/banhangnhat.com\/vi\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}