<input type="hidden" id="sigurnost" name="sigurnost" value="dd1c07ab65" /><input type="hidden" name="_wp_http_referer" value="/hr/wp-json/wp/v2/pages/1755/" />{"id":1755,"date":"2017-01-04T22:10:36","date_gmt":"2017-01-04T22:10:36","guid":{"rendered":"https:\/\/villaburic.com\/?page_id=1755\/"},"modified":"2017-05-08T08:38:57","modified_gmt":"2017-05-08T08:38:57","slug":"e-postkarta","status":"publish","type":"page","link":"https:\/\/villaburic.com\/hr\/e-postkarta\/","title":{"rendered":"E-Postkarta"},"content":{"rendered":"<p>Odaberite razglednicu i po\u0161aljite je dragoj osobi!<\/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=\"2200\"  checked><label for=\"ecard-img-0\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/cropped-IMG_8114_5_6-300x300.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/cropped-IMG_8114_5_6.jpg\"><div class=\"ecard-tooltip\"><p>https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/cropped-IMG_8114_5_6.jpg<\/p><\/div><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-1\" type=\"radio\" name=\"vbImg\" value=\"490\" ><label for=\"ecard-img-1\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/IMG_7834_5_6-Kopie-300x200.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/IMG_7834_5_6-Kopie-1024x683.jpg\"><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-2\" type=\"radio\" name=\"vbImg\" value=\"485\" ><label for=\"ecard-img-2\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/IMG_8327_8_92-300x200.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2015\/09\/IMG_8327_8_92-1024x683.jpg\"><div class=\"ecard-tooltip\"><p>Villa Buric - Insel Krk<\/p><\/div><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-3\" type=\"radio\" name=\"vbImg\" value=\"3983\" ><label for=\"ecard-img-3\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2019\/08\/IMG_7979_80_81-300x200.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2019\/08\/IMG_7979_80_81-1024x682.jpg\"><\/label><\/div><div class=\"ecard-img-container\"><input data-ecard id=\"ecard-img-4\" type=\"radio\" name=\"vbImg\" value=\"3986\" ><label for=\"ecard-img-4\"><img decoding=\"async\" src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2019\/08\/Hundestrand-Cizici-300x169.jpg\" data-preview-src=\"https:\/\/villaburic.com\/wp-content\/uploads\/2019\/08\/Hundestrand-Cizici.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=\"Primateljevo ime\">\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\">Email primatelja<\/label>\n\t\t\t<input id=\"friend-input-email\" type=\"email\" name=\"vbFriendEmail\" placeholder=\"Email primatelja:\">\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\">Va\u0161a poruka:<\/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=\"\/hr\/wp-json\/wp\/v2\/pages\/1755\/\" \/>\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\">Koliko je <strong class=\"user-input-captcha-expression\">4 + 7<\/strong> ?<\/label>\n\t\t\t<input type=\"text\" name=\"captcha_result\">\n\t\t\t<input type=\"hidden\" name=\"captchar\" value=\"6512bd43d9caa6e02c990b0a82652dca\">\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=\"Po\u0161alji\">\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 += \"Molimo unesite pravilnu email adresu\";\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(\"Va\u0161 upit se obra\u0111uje, molimo pri\u010dekajte...\");\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 = \"Va\u0161a je poruka uspje\u0161no poslana!\";\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 provjera nije uspjela, molimo poku\u0161ajte ponovno\";\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 = \"Desila se gre\u0161ka, molimo poku\u0161ajte ponovno ili nas kontaktirajte putem telefona.\";\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\/>Broj gostiju nije valjan\";\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>Odaberite razglednicu i po\u0161aljite je dragoj osobi!<\/p>\n<p>  <a href=\"https:\/\/villaburic.com\/hr\/e-postkarta\/\">&nbsp;&raquo;&nbsp;Read more about: E-Postkarta &nbsp;&raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/pages\/1755\/"}],"collection":[{"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/pages\/"}],"about":[{"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/types\/page\/"}],"author":[{"embeddable":true,"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/users\/2\/"}],"replies":[{"embeddable":true,"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/comments\/?post=1755"}],"version-history":[{"count":3,"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/pages\/1755\/revisions\/"}],"predecessor-version":[{"id":2714,"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/pages\/1755\/revisions\/2714\/"}],"wp:attachment":[{"href":"https:\/\/villaburic.com\/hr\/wp-json\/wp\/v2\/media\/?parent=1755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}