{"id":2959,"date":"2016-02-09T16:09:12","date_gmt":"2016-02-09T16:09:12","guid":{"rendered":"http:\/\/ultimatebridalbeauty.com\/new-page-2-2\/"},"modified":"2021-05-20T19:17:08","modified_gmt":"2021-05-20T19:17:08","slug":"contact","status":"publish","type":"page","link":"https:\/\/ultimatebridalbeauty.com\/?page_id=2959","title":{"rendered":"Contact"},"content":{"rendered":"\r\n<!-- START JS for Form ID: 4126 -->\r\n<script type=\"text\/javascript\">\r\njQuery(document).ready(function($) {\r\n\r\n    jQuery(\"#preloader-jhusan\").fadeOut(500, function() {\r\n        jQuery(\"#ecf-form-jhusan\").fadeIn(100);\r\n    });\r\n\r\n    Ladda.bind('.ladda-button');\r\n\r\n    $(function() {\r\n\r\n        \r\n        \/* Validation *\/\r\n        $(\"#form-jhusan\").validate({\r\n            \/* Rules for form validation *\/\r\n            rules: {\r\n                name0:{required: true},email1:{required: true,email: true},text2:{required: true},text3:{required: true},text4:{required: true},text5:{required: true},text6:{required: true},message7:{required: true,minlength: 10},\r\n\r\n                            },\r\n            \/* Messages for form validation *\/\r\n            messages: {\r\n                name0:{required: \"This field is required\"},email1:{required: \"This field is required\"},text2:{required: \"This field is required\"},text3:{required: \"This field is required\"},text4:{required: \"This field is required\"},text5:{required: \"This field is required\"},text6:{required: \"This field is required\"},message7:{required: \"This field is required\"}            },\r\n            \/* Do not change code below *\/\r\n            errorPlacement: function(error, element) {\r\n                error.insertAfter(element.parent());\r\n            },\r\n\r\n            submitHandler: function(form) {\r\n                                ecf_onsubmit(jQuery('.form-jhusan'));\r\n\r\n                \r\n            },\r\n\r\n            invalidHandler: function(form) {\r\n                Ladda.stopAll();\r\n            },\r\n\r\n            onkeyup: false,\r\n            onfocusout: false,\r\n            onclick: false\r\n\r\n        });\r\n    });\r\n\r\n\r\n    \/* Form Submit ( Ajax ) *\/\r\n    function ecf_onsubmit(form) {\r\n\r\n        if (form.attr('action') == '#') {\r\n\r\n            data = {};\r\n            eldat = [];\r\n            data['action'] = 'ecf_deliver_mail';\r\n            data['formid'] = '4126';\r\n            data['security'] = 'a18ef6049f';\r\n\r\n\r\n            \r\n            jQuery('input, textarea', form).each(function(key) {\r\n\r\n                items = {};\r\n\r\n                if (typeof $(this).data('type') === 'undefined') {\r\n                    return true;\r\n                }\r\n\r\n\r\n                \r\n                items['type'] = $(this).data('type');\r\n                items['label'] = $(this).data('label');\r\n                items['value'] = this.value;\r\n                items['name'] = this.name;\r\n\r\n                eldat.push(items);\r\n\r\n            });\r\n\r\n\r\n                        data['allelmnt'] = eldat;\r\n\r\n            submitForm();\r\n\r\n            return false;\r\n\r\n        }\r\n\r\n    }\r\n\r\n    \/* Start submitForm\t *\/\r\n    function submitForm() {\r\n\r\n        jQuery.ajax({\r\n            url: 'https:\/\/ultimatebridalbeauty.com\/wp-admin\/admin-ajax.php',\r\n            type: 'POST',\r\n            dataType: 'json',\r\n            data: data,\r\n            success: function(data) {\r\n\r\n                if (data.Ok == true) {\r\n\r\n                    $(\"#form-jhusan\").get(0).reset();\r\n\r\n                    if (data.msg == 'redirect') {\r\n                        window.location = \"http:\/\/\";\r\n                    } else {\r\n                        notifyme('Your Message Submitted Successfully', 'n', 'success',\r\n                            'left middle');\r\n                    }\r\n\r\n                } else {\r\n                    notifyme(data.msg, 'n', 'error', 'left middle');\r\n                }\r\n\r\n                Ladda.stopAll();\r\n\r\n            }\r\n        });\r\n\r\n        \r\n    }\r\n\r\n\r\n    \/* Notify *\/\r\n    function notifyme(msg, b, typ, pos) {\r\n        if (b == 'n') {\r\n            b = 'cf-submittedjhusan';\r\n        } else {\r\n            b = 'atcjhusan';\r\n        }\r\n\r\n        $(\"#\" + b).gnotify(msg, {\r\n            style: \"nbootstrap\",\r\n            elementPosition: pos,\r\n            className: typ\r\n        });\r\n\r\n        msg = null;\r\n        typ = null;\r\n\r\n    }\r\n\r\n});\r\n<\/script>\r\n<!-- END JS for Form ID: 4126 -->\r\n\r\n<!-- START Form Markup for Form ID: 4126 -->\r\n<div id=\"preloader-jhusan\" class=\"ecfpreloader\"><\/div>\r\n<div id=\"ecf-form-jhusan\" class=\"ecf-body\">\r\n    <form method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-jhusan\" class=\"ecf-form form-jhusan\">\r\n        <header>Contact Us<\/header>        <fieldset>\r\n            <section><label class=\"label\">Name<\/label><label class=\"input\"><input data-type=\"name\" data-label=\"Name\" id=\"name0\" type=\"text\" name=\"name0\" \/><\/label><\/section><section><label class=\"label\">Email<\/label><label class=\"input\"><input data-type=\"email\" data-label=\"Email\" id=\"email1\" type=\"text\" name=\"email1\" \/><\/label><\/section><section><label class=\"label\">Phone<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Phone\" id=\"text2\" type=\"text\" name=\"text2\" \/><\/label><\/section><section><label class=\"label\">Address<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Address\" id=\"text3\" type=\"text\" name=\"text3\" \/><\/label><\/section><section><label class=\"label\">Date of Event<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Date of Event\" id=\"text4\" type=\"text\" name=\"text4\" \/><\/label><\/section><section><label class=\"label\">Location of Event<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Location of Event\" id=\"text5\" type=\"text\" name=\"text5\" \/><\/label><\/section><section><label class=\"label\">How did you find us?<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"How did you find us?\" id=\"text6\" type=\"text\" name=\"text6\" \/><\/label><\/section><section><label class=\"label\">Message<\/label><label class=\"textarea\"><textarea data-type=\"message\" data-label=\"Message\" id=\"message7\" name=\"message7\" rows=\"7\"><\/textarea><\/label><\/section>        <\/fieldset>\r\n        <footer>\r\n            <button data-style=\"slide-down\" id=\"cf-submittedjhusan\" class=\"ecfbutton ladda-button\" type=\"submit\" name=\"cf-submittedjhusan\"><span class=\"ladda-label\">SEND<\/span><\/button>\r\n        <\/footer>\r\n    <\/form>\r\n\r\n    \r\n<\/div>\r\n<!-- END Form Markup for Form ID: 4126 -->\r\n\r\n\r\n\t\t\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-2959","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=\/wp\/v2\/pages\/2959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2959"}],"version-history":[{"count":17,"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=\/wp\/v2\/pages\/2959\/revisions"}],"predecessor-version":[{"id":4178,"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=\/wp\/v2\/pages\/2959\/revisions\/4178"}],"wp:attachment":[{"href":"https:\/\/ultimatebridalbeauty.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}