{"id":142,"date":"2021-03-24T20:10:00","date_gmt":"2021-03-24T19:10:00","guid":{"rendered":"https:\/\/www.szymon-palys.pl\/?page_id=142"},"modified":"2021-03-24T20:19:54","modified_gmt":"2021-03-24T19:19:54","slug":"kontakt","status":"publish","type":"page","link":"https:\/\/www.szymon-palys.pl\/?page_id=142","title":{"rendered":"Kontakt"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"142\" class=\"elementor elementor-142\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-287bc7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"287bc7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-26cd91dc\" data-id=\"26cd91dc\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-027f1c6 elementor-widget elementor-widget-shortcode\" data-id=\"027f1c6\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\">\r\n<!-- START JS for Form ID: 150 -->\r\n<script type=\"text\/javascript\">\r\njQuery(document).ready(function($) {\r\n\r\n    jQuery(\"#preloader-obcrzy\").fadeOut(500, function() {\r\n        jQuery(\"#ecf-form-obcrzy\").fadeIn(300);\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-obcrzy\").validate({\r\n            \/* Rules for form validation *\/\r\n            rules: {\r\n                name0:{required: true},email1:{required: true,email: true},text2:{required: true},message3:{required: true,minlength: 10},phone4:{required: true},\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\"},message3:{required: \"This field is required\"},phone4:{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-obcrzy'));\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'] = '150';\r\n            data['security'] = 'a4af7879df';\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'] = JSON.stringify(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:\/\/www.szymon-palys.pl\/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-obcrzy\").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                    $(\"#form-obcrzy\").get(0).reset();\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-submittedobcrzy';\r\n        } else {\r\n            b = 'atcobcrzy';\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: 150 -->\r\n\r\n<!-- START Form Markup for Form ID: 150 -->\r\n<div id=\"preloader-obcrzy\" class=\"ecfpreloader\"><\/div>\r\n<div id=\"ecf-form-obcrzy\" class=\"ecf-body\" style=\"display:none;\">\r\n    <form method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-obcrzy\"\r\n        class=\"ecf-form form-obcrzy\">\r\n        <header>Formularz<\/header>        <fieldset>\r\n            <section><label class=\"label\">Przedstaw si\u0119 \ud83d\ude42<\/label><label class=\"input\"><input data-type=\"name\" data-label=\"Przedstaw si\u0119 :)\" 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\">Tytu\u0142<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Tytu\u0142\" id=\"text2\" type=\"text\" name=\"text2\" \/><\/label><\/section><section><label class=\"label\">Tre\u015b\u0107<\/label><label class=\"textarea\"><textarea data-type=\"message\" data-label=\"Tre\u015b\u0107\" id=\"message3\" name=\"message3\" rows=\"7\" ><\/textarea><\/label><\/section><section><label class=\"input\"><\/label><\/section>        <\/fieldset>\r\n        <footer>\r\n            <button data-style=\"slide-down\" id=\"cf-submittedobcrzy\" class=\"ecfbutton ladda-button\"\r\n                type=\"submit\" name=\"cf-submittedobcrzy\"><span\r\n                    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: 150 -->\r\n\r\n\r\n<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-098e4e9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"098e4e9\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2fdb248\" data-id=\"2fdb248\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-75afc7b elementor-widget elementor-widget-google_maps\" data-id=\"75afc7b\" data-element_type=\"widget\" data-widget_type=\"google_maps.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-custom-embed\">\n\t\t\t<iframe loading=\"lazy\"\n\t\t\t\t\tsrc=\"https:\/\/maps.google.com\/maps?q=Niewistka%20&#038;t=m&#038;z=15&#038;output=embed&#038;iwloc=near\"\n\t\t\t\t\ttitle=\"Niewistka \"\n\t\t\t\t\taria-label=\"Niewistka \"\n\t\t\t><\/iframe>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=\/wp\/v2\/pages\/142"}],"collection":[{"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142"}],"version-history":[{"count":8,"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=\/wp\/v2\/pages\/142\/revisions"}],"predecessor-version":[{"id":156,"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=\/wp\/v2\/pages\/142\/revisions\/156"}],"wp:attachment":[{"href":"https:\/\/www.szymon-palys.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}