<input type="hidden" id="sigurnost" name="sigurnost" value="dd1c07ab65" /><input type="hidden" name="_wp_http_referer" value="/en/wp-json/wp/v2/pages/2681/" />{"id":2681,"date":"2017-05-05T08:11:13","date_gmt":"2017-05-05T08:11:13","guid":{"rendered":"https:\/\/villaburic.com\/?page_id=2681\/"},"modified":"2017-05-08T08:39:37","modified_gmt":"2017-05-08T08:39:37","slug":"2681-2","status":"publish","type":"page","link":"https:\/\/villaburic.com\/en\/2681-2\/","title":{"rendered":""},"content":{"rendered":"<p>Pick a postcard and send it to someone dear to you!<\/p>\n<form id=\"contact-form\" name=\"contact-form\" style=\"\" class=\"contact-form \" action=\"https:\/\/villaburic.com\/wp-admin\/admin-ajax.php\" method=\"POST\">\n\t\t\t<section id=\"user-input-form\">\n\t\t\t<div class=\"user-input-group ecard-img-gallery\"><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-0\" type=\"radio\" name=\"vbImg\" value=\"3598\"  checked><label for=\"ecard-img-0\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2018\/03\/dekor-cvijee-proljetni-dekor-ureenje-9-300x200.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2018\/03\/dekor-cvijee-proljetni-dekor-ureenje-9.jpg\"><div class=\"ecard-tooltip\"><p>Ostern Gr\u00fcsse<\/p><\/div><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-1\" type=\"radio\" name=\"vbImg\" value=\"4078\" ><label for=\"ecard-img-1\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/IMG_8114_5_6-300x200.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/IMG_8114_5_6-1024x682.jpg\"><div class=\"ecard-tooltip\"><p>Unterkunft am Meer- Krk<\/p><\/div><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-2\" type=\"radio\" name=\"vbImg\" value=\"51\" ><label for=\"ecard-img-2\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/07\/IMG_8327_8_9-300x200.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/07\/IMG_8327_8_9-1024x683.jpg\"><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-3\" type=\"radio\" name=\"vbImg\" value=\"3601\" ><label for=\"ecard-img-3\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2018\/03\/Slika-Tresnje-300x133.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2018\/03\/Slika-Tresnje.jpg\"><\/label><\/div><\/div>\n\t\t\t<div class=\"ecard-container\">\n\t\t\t<div class=\"user-input-group required\">\n\t\t\t<label class=\"user-input-label\" for=\"user-input-first-name\">Your name:<\/label>\n\t\t\t<input id=\"user-input-first-name\" type=\"text\" name=\"vbFullName\" placeholder=\"Your name\">\n\t\t\t<\/div>\n\t\t\t<div class=\"user-input-group required\">\n\t\t\t<label class=\"user-input-label\" for=\"user-input-email\">Your email address:<\/label>\n\t\t\t<input id=\"user-input-email\" type=\"email\" name=\"vbEmail\" placeholder=\"Your email address\">\n\t\t\t<\/div>\n\t\t\t<div class=\"user-input-group required\">\n\t\t\t<label class=\"user-input-label\" for=\"user-input-friend-name\">Your friend's name:<\/label>\n\t\t\t<input id=\"user-input-friend-name\" type=\"text\" name=\"vbFriendName\" placeholder=\"Your friend's name\">\n\t\t\t<\/div>\n\t\t\t<div class=\"user-input-group required\">\n\t\t\t<label class=\"user-input-label\" for=\"friend-input-email\">Your friend's email address:<\/label>\n\t\t\t<input id=\"friend-input-email\" type=\"email\" name=\"vbFriendEmail\" placeholder=\"Your friend's email address\">\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"user-input-group required\">\n\t\t\t<label class=\"user-input-label\" for=\"user-input-message\">Your message:<\/label>\n\t\t\t<textarea id=\"user-input-message\" name=\"vbMessage\" rows=\"6\" placeholder=\"Your message...\"><\/textarea>\n\t\t\t<\/div>\n\t\t\t<div class=\"user-input-group disno\">\n\t\t\t<input type=\"hidden\" name=\"unSpm\" value=\"ne mijenjaj\">\n\t\t\t<input type=\"hidden\" id=\"sigurnost\" name=\"sigurnost\" value=\"dd1c07ab65\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/pages\/2681\/\" \/>\n\t\t\t<input name=\"action\" value=\"send_ecard\" type=\"hidden\">\n\t\t\t<\/div><div class=\"user-input-group required user-input-group-captcha\">\n\t\t<label class=\"user-input-label\" for=\"user-input-captcha\">How much is <strong class=\"user-input-captcha-expression\">4 + 0<\/strong> ?<\/label>\n\t\t\t<input type=\"text\" name=\"captcha_result\">\n\t\t\t<input type=\"hidden\" name=\"captchar\" value=\"a87ff679a2f3e71d9181a67b7542122c\">\n\t\t<\/div><div class=\"user-input-group\">\n\t\t\t<input type=\"submit\" class=\"button style-inverse\" data-preview-ecard value=\"Preview\">\n\t\t\t<\/div>\n\t\t\t<div class=\"user-input-group\">\n\t\t\t<input type=\"submit\" class=\"button style-inverse\" value=\"Send\">\n\t\t\t<\/div>\n\t\t\t<div class=\"user-input-group\">\n\t\t\t<p id=\"help-message\">\n\t\t\t<\/p>\n\t\t\t<\/div>\n\t\t\t<div><!-- ecard-container -->\n\t\t\t<\/section>\n\t\t\t<\/form><div id=\"ecard-backdrop\"><div id=\"ecard-preview-container\"><h1 data-ecard-title><\/h1><div class=\"img-container\"><span data-ecard-overlay><\/span><img decoding=\"async\" src=\"\" data-ecard-img><\/div><p data-ecard-msg><\/p><h3 data-ecard-sig><\/h3><\/div><button class=\"ecard-close\" data-close-ecard>&times;<\/button><\/div><script>\n\t\t\t\t(function($){\n\t\t\t\t\t$(document).ready(function(){\n\t\t\t\t\t\tprepare_ecards();\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tfunction prepare_ecards(){\n\t\t\t\t\t\t$(\"#unspm\").css(\"display\", \"none\");\n\t\t\t\t\t\t$(\"#contact-form\").submit(function(e) {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t$(\"#help-message\").removeClass(\"green\");\n\t\t\t\t\t\t\t$(\"#help-message\").removeClass(\"red\");\n\t\t\t\t\t\t\tvar fail = false;\n\t\t\t\t\t\t\tvar helpMsg = \"\";\n\t\t\t\t\t\t\tvar helpMsgBox = $(\"#contact-form #help-message\");\n\t\t\t\t\t\t\t\/\/check if required fields empty\n\t\t\t\t\t\t\t$(\".fail\", this).removeClass(\"fail\");\n\t\t\t\t\t\t\t$(\".required input\", this).each(function(){\n\t\t\t\t\t\t\t\tif(!$(this).val()){\n\t\t\t\t\t\t\t\t\t$(this).addClass(\"fail\");\n\t\t\t\t\t\t\t\t\tfail = true;\n\t\t\t\t\t\t\t\t\thelpMsg = \"Fields marked with a * must be filled\";\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($(\".required textarea\", this).length && !$(\".required textarea\", this).val()){\n\t\t\t\t\t\t\t\t$(\".required textarea\", this).addClass(\"fail\");\n\t\t\t\t\t\t\t\tfail = true;\n\t\t\t\t\t\t\t\thelpMsg = \"Fields marked with a * must be filled\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$(\".required select\", this).each(function(){\n\t\t\t\t\t\t\t\tif(!$(this).val() || $(this).val() == \"default\"){\n\t\t\t\t\t\t\t\t\t$(this).addClass(\"fail\");\n\t\t\t\t\t\t\t\t\tfail = true;\n\t\t\t\t\t\t\t\t\thelpMsg = \"Fields marked with a * must be filled\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\/\/check if email ok\n\t\t\t\t\t\t\tif($(\".required input[name=\\\"vbEmail\\\"]\").length && !validateEmail($(\".required input[name=\\\"vbEmail\\\"]\").val()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$(\".required input[name=\\\"vbEmailAddress\\\"]\").addClass(\"fail\");\n\t\t\t\t\t\t\t\tfail = true;\n\t\t\t\t\t\t\t\tif(helpMsg.length>0) helpMsg += \"<br\/>\";\n\t\t\t\t\t\t\t\thelpMsg += \"Please enter a valid email address\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!fail){\n\t\t\t\t\t\t\t\thelpMsgBox.removeClass(\"green\").removeClass(\"yellow\").removeClass(\"red\");\n\t\t\t\t\t\t\t\thelpMsgBox.addClass(\"yellow\");\n\t\t\t\t\t\t\t\thelpMsgBox.html(\"Processing your request, please wait...\");\n\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\t\t\t\turl: $(this).attr(\"action\"),\n\t\t\t\t\t\t\t\t\tdata: $(this).serialize(),\n\t\t\t\t\t\t\t\t\tsuccess: function(data) {\n\t\t\t\t\t\t\t\t\t\thelpMsgBox.removeClass(\"green\").removeClass(\"yellow\").removeClass(\"red\");\n\t\t\t\t\t\t\t\t\t\tif(data == \"OK\"){\n\t\t\t\t\t\t\t\t\t\t\thelpMsg = \"Your message has been successfully sent!\";\n\t\t\t\t\t\t\t\t\t\t\thelpMsgBox.html( helpMsg );\n\t\t\t\t\t\t\t\t\t\t\thelpMsgBox.addClass(\"green\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if( data == \"RECAPTCHA FAIL\" ) {\n\t\t\t\t\t\t\t\t\t\t\thelpMsg = \"Recaptcha check failed, please try again\";\n\t\t\t\t\t\t\t\t\t\t\thelpMsgBox.html( helpMsg );\n\t\t\t\t\t\t\t\t\t\t\thelpMsgBox.addClass(\"red\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\thelpMsg = \"An error has occured, please try again or contact us via telephone.\";\n\t\t\t\t\t\t\t\t\t\t\tif( data == \"NO PRICE\" ) {\n\t\t\t\t\t\t\t\t\t\t\t\thelpMsg += \"<br\/>Invalid number of guests\";\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\thelpMsgBox.html( helpMsg );\n\t\t\t\t\t\t\t\t\t\t\thelpMsgBox.addClass(\"red\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tif(helpMsg.length > 0){\n\t\t\t\t\t\t\t\t\thelpMsgBox.html( helpMsg );\n\t\t\t\t\t\t\t\t\thelpMsgBox.removeClass(\"green\").removeClass(\"yellow\");\n\t\t\t\t\t\t\t\t\thelpMsgBox.addClass(\"red\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t\tfunction validateEmail(email) {\n\t\t\t\t\tvar re = \/^(([^<>()[\\]\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$\/;\n\t\t\t\t\treturn re.test(email);\n\t\t\t\t}\n\t\t\t})(jQuery);\n\t\t\t<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Pick a postcard and send it to someone dear to you!<\/p>\n<p>  <a href=\"https:\/\/villaburic.com\/en\/2681-2\/\">&nbsp;&raquo;&nbsp;Read more about:  &nbsp;&raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/pages\/2681\/"}],"collection":[{"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/pages\/"}],"about":[{"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/types\/page\/"}],"author":[{"embeddable":true,"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/users\/1\/"}],"replies":[{"embeddable":true,"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/comments\/?post=2681"}],"version-history":[{"count":2,"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/pages\/2681\/revisions\/"}],"predecessor-version":[{"id":2715,"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/pages\/2681\/revisions\/2715\/"}],"wp:attachment":[{"href":"https:\/\/villaburic.com\/en\/wp-json\/wp\/v2\/media\/?parent=2681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}