{"id":94,"date":"2021-07-22T07:34:19","date_gmt":"2021-07-22T07:34:19","guid":{"rendered":"http:\/\/mxbgmusic.com\/?page_id=98"},"modified":"2023-08-23T20:55:55","modified_gmt":"2023-08-23T18:55:55","slug":"contact","status":"publish","type":"page","link":"https:\/\/maxbecq.com\/index.php\/contact\/","title":{"rendered":"Contact"},"content":{"rendered":"<div class=\"bm-builder clearfix \"><div id=\"\" class=\"module col-0 module-id-1692816730040 bm-wrap row-middle row-left\" data-module-col=\"0\" data-change-color=\"off\" data-backcolor=\"transparent\" data-frontcolor=\"\" data-logocolor=\"\" data-goto-top=\"off\" data-goto-top-spacing=\"0\" data-goto-disable-m=\"off\" data-groupsameheight=\"off\"><div class=\"module-inside group-inside\" style=\"--cornerRadius:0px 0px 0px 0px ; --top-mod: 0px;--bottom-mod: 0px;--top-mod-t: 0px;--bottom-mod-t: 0px;--top-mod-m:0px;--bottom-mod-m:0px;\" ><div class=\"bm-background-img\" style=\"background-image:url(https:\/\/maxbecq.com\/wp-content\/uploads\/2022\/12\/Fils-modulaires-1.jpg);background-attachment:fixed;background-position: 50% 0;--maskOpacity:0.7;--maskColor:#000000;\"><\/div><div id=\"\" class=\"module col-8 module-id-1692816833415\" data-module-col=\"8\"><div class=\"module-inside text-inside\" style=\"--top-mod: 140px;--bottom-mod: 0px;--top-mod-t: 140px;--bottom-mod-t: 0px;--top-mod-m:70px;--bottom-mod-m:0px;\" ><div class=\"text_block_out\"  data-effect=\"standard\" style=\"\"><div class=\"text_block ux-mod-nobg\"><div class=\"text_block_inn\"><div id=\"text-1692816833415\" class=\"text_block_centered text_block_centered_enable_width\"  style=\"\"><p>\n            <div id=\"mailerlite-form_1\" data-temp-id=\"69e04aade222d\">\n                <div class=\"mailerlite-form\">\n                    <form action=\"\" method=\"post\" novalidate>\n                                                    <div class=\"mailerlite-form-title\"><h3>Inscription \u00e0 la newsletter<\/h3><\/div>\n                                                <div class=\"mailerlite-form-description\"><\/div>\n                        <div class=\"mailerlite-form-inputs\">\n                                                                                            <div class=\"mailerlite-form-field\">\n                                    <label for=\"mailerlite-1-field-email\">Email<\/label>\n                                    <input id=\"mailerlite-1-field-email\"\n                                           type=\"email\" required=\"required\"                                            name=\"form_fields[email]\"\n                                           placeholder=\"Email\"\/>\n                                <\/div>\n                                                        <div class=\"mailerlite-form-loader\">Please wait...<\/div>\n                            <div class=\"mailerlite-subscribe-button-container\">\n                                <button class=\"mailerlite-subscribe-submit\" type=\"submit\">\n                                    S&#039;abonner                                <\/button>\n                            <\/div>\n                            <input type=\"hidden\" name=\"form_id\" value=\"1\"\/>\n                            <input type=\"hidden\" name=\"action\" value=\"mailerlite_subscribe_form\"\/>\n                            <input type=\"hidden\" name=\"ml_nonce\" value=\"c10cf2e8d3\"\/>\n                        <\/div>\n                        <div class=\"mailerlite-form-response\">\n                                                            <h4><p><span style=\"color: #339966\">Merci pour votre inscription!<br \/>\n<\/span><\/p>\n<\/h4>\n                                                    <\/div>\n                    <\/form>\n                <\/div>\n            <\/div>\n        <script type=\"text\/javascript\" src='https:\/\/maxbecq.com\/wp-content\/plugins\/official-mailerlite-sign-up-forms\/assets\/js\/localization\/validation-messages.js'><\/script>\n         <script type=\"text\/javascript\"> var selectedLanguage = \"fr\"; var validationMessages = messages[\"en\"]; if(selectedLanguage) { validationMessages = messages[selectedLanguage]; } window.addEventListener(\"load\", function () { var form_container = document.querySelector(`#mailerlite-form_1[data-temp-id=\"69e04aade222d\"] form`); let submitButton = form_container.querySelector('.mailerlite-subscribe-submit'); submitButton.disabled = true; fetch('https:\/\/maxbecq.com\/wp-admin\/admin-ajax.php', { method: 'POST', headers:{ 'Content-Type': 'application\/x-www-form-urlencoded', }, body: new URLSearchParams({ \"action\" : \"ml_create_nonce\", \"ml_nonce\" : form_container.querySelector(\"input[name='ml_nonce']\").value }) }) .then((response) => response.json()) .then((json) => { if(json.success) { form_container.querySelector(\"input[name='ml_nonce']\").value = json.data.ml_nonce; submitButton.disabled = false; } }) .catch((error) => { console.error('Error:', error); }); form_container.addEventListener('submit', (e) => { e.preventDefault(); let data = new URLSearchParams(new FormData(form_container)).toString(); let validationError = false; document.querySelectorAll('.mailerlite-form-error').forEach(el => el.remove()); Array.from(form_container.elements).forEach((input) => { if(input.type !== 'hidden') { if(input.required) { if(input.value == '') { validationError = true; let error = document.createElement(\"span\"); error.className = 'mailerlite-form-error'; error.textContent = validationMessages.required; input.after(error); return false; } } if((input.type == \"email\") && (!validateEmail(input.value))) { validationError = true; let error = document.createElement(\"span\"); error.className = 'mailerlite-form-error'; error.textContent = validationMessages.email; input.after(error); return false; } } }); if(validationError) { return false; } fade.out(form_container.querySelector('.mailerlite-subscribe-button-container'), () => { fade.in(form_container.querySelector('.mailerlite-form-loader')); }); fetch('https:\/\/maxbecq.com\/wp-admin\/admin-ajax.php', { method: 'POST', headers:{ 'Content-Type': 'application\/x-www-form-urlencoded', }, body: data }) .then((response) => { fade.out(form_container.querySelector('.mailerlite-form-inputs'), () => { fade.in(form_container.querySelector('.mailerlite-form-response')); }); }) .catch((error) => { console.error('Error:', error); }); }); }, false); var fade = { out: function(el, fn = false) { var fadeOutEffect = setInterval(function () { if (!el.style.opacity) { el.style.opacity = 1; } if (el.style.opacity > 0) { el.style.opacity -= 0.1; } else { el.style.display = 'none'; clearInterval(fadeOutEffect); } }, 50); if( typeof (fn) == 'function') { fn(); } }, in: function(el) { var fadeInEffect = setInterval(function () { if (!el.style.opacity) { el.style.opacity = 0; } if (el.style.opacity < 1) { el.style.opacity = Number(el.style.opacity) + 0.1; } else { el.style.display = 'block'; clearInterval(fadeInEffect); } }, 50); } }; function validateEmail(email){ if(email.match( \/^(([^<>()[\\]\\\\.,;:\\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,}))$\/ )) { return true; } return false; } <\/script> <\/p><\/div><\/div><\/div><\/div><\/div><\/div><div id=\"\" class=\"module col-4 module-id-1692817395557\" data-module-col=\"4\"><div class=\"module-inside social-media-inside\" style=\"--top-mod: 160px;--bottom-mod: 0px;--top-mod-t: 160px;--bottom-mod-t: 0px;--top-mod-m:80px;--bottom-mod-m:0px;\" ><div class=\"social-media-wrap ux-left ux-left-m ux-vertical ux-vertical-m\"><ul class=\"module-social module-social-link \"><li class=\"social-li\" ><a class=\"share\" href=\"mailto:contact@maxbecq.com\" target=\"_self\" rel=\"nofollow\"><span class=\"fa fa-envelope-o fas\"><\/span><span class=\"social-name\">Mail<\/span><\/a><\/li><li class=\"social-li\" ><a class=\"share\" href=\"http:\/\/www.instagram.com\/maxbecq\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"fa fa-instagram fab\"><\/span><span class=\"social-name\">Instagram<\/span><\/a><\/li><li class=\"social-li\" ><a class=\"share\" href=\"http:\/\/www.facebook.com\/maxbecq\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"fa fa-facebook-square fab\"><\/span><span class=\"social-name\">Facebook<\/span><\/a><\/li><li class=\"social-li\" ><a class=\"share\" href=\"http:\/\/www.soundcloud.com\/maxbecq\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"fa fa-soundcloud fab\"><\/span><span class=\"social-name\">Soundcloud<\/span><\/a><\/li><li class=\"social-li\" ><a class=\"share\" href=\"https:\/\/maxbecq.bandcamp.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"fa fa-bandcamp fab\"><\/span><span class=\"social-name\">Bandcamp<\/span><\/a><\/li><li class=\"social-li\" ><a class=\"share\" href=\"https:\/\/www.youtube.com\/channel\/UCGFLbSUC3IK3DuEvqegHlSw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"fa fa-youtube fab\"><\/span><span class=\"social-name\">YouTube<\/span><\/a><\/li><\/ul><\/div><\/div><\/div><div id=\"\" class=\"module col-12 module-id-1692817816943\" data-module-col=\"12\"><div class=\"module-inside text-inside\" style=\"--top-mod: 180px;--bottom-mod: 0px;--top-mod-t: 180px;--bottom-mod-t: 0px;--top-mod-m:90px;--bottom-mod-m:0px;\" ><div class=\"text_block_out\"  data-effect=\"standard\" style=\"\"><div class=\"text_block ux-mod-nobg\"><div class=\"text_block_inn\"><div id=\"text-1692817816943\" class=\"text_block_centered text_block_centered_enable_width\"  style=\"\"><p style=\"text-align: center;\">Cr\u00e9dits photo : Youenn Piolet<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Inscription \u00e0 la newsletter Email Please wait&#8230; S&#039;abonner Merci pour &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-94","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/pages\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":1,"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/pages\/94\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/pages\/94\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/maxbecq.com\/index.php\/wp-json\/wp\/v2\/media?parent=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}