{"id":173,"date":"2014-05-13T15:31:05","date_gmt":"2014-05-13T14:31:05","guid":{"rendered":"http:\/\/www.fouencamps.fr\/?page_id=173"},"modified":"2014-05-13T15:31:45","modified_gmt":"2014-05-13T14:31:45","slug":"contact","status":"publish","type":"page","link":"https:\/\/www.fouencamps.fr\/?page_id=173","title":{"rendered":"Contact"},"content":{"rendered":"\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f172-o1\" lang=\"fr-FR\" dir=\"ltr\" data-wpcf7-id=\"172\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F173#wpcf7-f172-o1\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Formulaire de contact\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"172\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.5\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"fr_FR\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f172-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/>\n<\/fieldset>\n<p>Votre nom (obligatoire)\n<\/p>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" value=\"\" type=\"text\" name=\"your-name\" \/><\/span>\n<\/p>\n<p>Votre email (obligatoire)\n<\/p>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-email\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-email\" aria-required=\"true\" aria-invalid=\"false\" value=\"\" type=\"email\" name=\"your-email\" \/><\/span>\n<\/p>\n<p>Sujet\n<\/p>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-subject\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" value=\"\" type=\"text\" name=\"your-subject\" \/><\/span>\n<\/p>\n<p>Votre message\n<\/p>\n<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-message\"><textarea cols=\"40\" rows=\"10\" maxlength=\"2000\" class=\"wpcf7-form-control wpcf7-textarea\" aria-invalid=\"false\" name=\"your-message\"><\/textarea><\/span>\n<\/p>\n<p>\n            <div id=\"mosparo-box-69ef43913446e\"><\/div>\n            <script>\n                \n            if (typeof mosparoInstances === \"undefined\") {\n                var mosparoInstances = [];\n            }\n            \n            (function () {\n                let scriptEl = null;\n                if (typeof mosparo === \"undefined\") {\n                    scriptEl = document.createElement(\"script\");\n                    scriptEl.setAttribute(\"src\", \"https:\/\/mosparo.sommenumerique.fr\/build\/mosparo-frontend.js\");\n                    document.body.appendChild(scriptEl);\n                }\n                \n                let initializeMosparo = function (ev) {\n                    let id = \"mosparo-box-69ef43913446e\";\n                    if (typeof mosparoInstances[id] !== \"undefined\") {\n                        return;\n                    }\n                    \n                    let mosparoFieldEl = document.getElementById(id);\n                    if (!mosparoFieldEl) {\n                        return;\n                    }\n                    \n                    let formEl = null;\n                    let el = mosparoFieldEl;\n                    while ((el = el.parentNode) && el !== document) {\n                        if (el.matches(\"form\")) {\n                            formEl = el;\n                            break;\n                        }\n                    }\n                \n                    let options = {\"loadCssResource\":true,\"cssResourceUrl\":\"https:\\\/\\\/mosparo.sommenumerique.fr\\\/resources\\\/ecd57580-84da-4dc7-a54e-db0e62ec8b00\\\/3504c42e774718af195a594bb4999eed9082b3de96803b06556a5a869d4bdb3a.css\"};\n                    let resetMosparoField = function () {\n                        if (!mosparoInstances[id]) {\n                            return;\n                        }\n                        \n                        mosparoInstances[id].resetState();\n                        mosparoInstances[id].requestSubmitToken();\n                    };\n                    \n                    \n                    let wpcf7FormEl = null;\n                    let parentEl = mosparoFieldEl;\n                    while ((parentEl = parentEl.parentNode) && parentEl !== document) {\n                        if (parentEl.matches(\".wpcf7-form\")) {\n                            wpcf7FormEl = parentEl;\n                            break;\n                        }\n                    }\n                    \n                    if (typeof wpcf7 !== \"undefined\" && wpcf7FormEl !== null) {\n                        options.onSwitchToInvisible = function () {\n                            wpcf7.blocked = true;\n                            wpcf7FormEl.classList.add(\"wpcf7__mosparo__invisible\");\n                        };\n                        options.onCheckForm = function (result) {\n                            if (result && mosparoInstances[id].invisible) {\n                                wpcf7.blocked = false;\n                            }\n                        };\n                        \n                        if (typeof wpcf7.cached !== \"undefined\" && wpcf7.cached) {\n                            options.requestSubmitTokenOnInit = false;\n                        }\n                        \n                        wpcf7FormEl.addEventListener(\"wpcf7invalid\", function () {\n                            if (mosparoInstances[id].invisible) {\n                                wpcf7.blocked = true;\n                            }\n                            \n                            resetMosparoField();\n                        });\n                        \n                        wpcf7FormEl.addEventListener(\"wpcf7spam\", function () {\n                            if (mosparoInstances[id].invisible) {\n                                wpcf7.blocked = true;\n                            }\n                                \n                            resetMosparoField();\n                        });\n                        \n                        \/\/ Add the required logic for other wpcf7 forms without mosparo in it.\n                        document.querySelectorAll(\".wpcf7-form\").forEach(function (form) {\n                            form.addEventListener(\"submit\", function () {\n                                if (wpcf7.blocked && form.querySelectorAll(\".mosparo__container\").length === 0) {\n                                    \/\/ If this form does not contain a mosparo field, unblock the form and submit it again.\n                                    wpcf7.blocked = false; \n                                    \n                                    if (form.querySelector(\".wpcf7-submit\")) {\n                                        form.querySelector(\".wpcf7-submit\").click();\n                                    } else {\n                                        form.submit();\n                                    }\n                                }\n                            });\n                            form.addEventListener(\"wpcf7submit\", function () {\n                                if (document.querySelectorAll(\".wpcf7__mosparo__invisible\").length > 0) {\n                                    \/\/ If we have at least one form with the invisible mosparo mode, we need to block it again.\n                                    wpcf7.blocked = true;\n                                }\n                            });\n                        });\n                    }\n                \n                    \n                    mosparoInstances[id] = new mosparo(id, \"https:\/\/mosparo.sommenumerique.fr\", \"ecd57580-84da-4dc7-a54e-db0e62ec8b00\", \"N7KBZSaiTXQZXjHlnpP_rr0A3hSk4FyvqIKZMvTKu5s\", options);\n                };\n                \n                if (scriptEl !== null) {\n                    scriptEl.addEventListener(\"load\", function () {\n                        initializeMosparo();\n                    });\n                } else if (document.readyState !== \"loading\") {\n                    initializeMosparo();\n                } else {\n                    document.addEventListener(\"DOMContentLoaded\", initializeMosparo);\n                }\n                document.addEventListener(\"mosparo_integration_initialize_fields\", initializeMosparo);\n                \n                \n            })();\n            <\/script>\n<\/p>\n<p><input class=\"wpcf7-form-control wpcf7-submit has-spinner\" type=\"submit\" value=\"Envoyer\" \/>\n<\/p><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_crdt_document":"","rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"class_list":["post-173","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=\/wp\/v2\/pages\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":2,"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=\/wp\/v2\/pages\/173\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=\/wp\/v2\/pages\/173\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/www.fouencamps.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}