<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Bootstrap 5 -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1" />
<title>{% block title %}Max-interfor{% endblock %}</title>
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/11084d3540.js" crossorigin="anonymous"></script>
<script src="https://www.google.com/recaptcha/api.js?render=6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m"></script>
<!-- Favicon -->
<link rel="apple-touch-icon" href="{{ asset("/img/favicon/apple-touch-icon.png") }}" sizes="180x180">
<link rel="icon" href="{{ asset("/img/favicon/favicon-32x32.png") }}" sizes="32x32" type="image/png">
<link rel="icon" href="{{ asset("/img/favicon/favicon-16x16.png") }}" sizes="16x16" type="image/png">
<link rel="icon" href="{{ asset("/img/favicon/favicon.ico") }}" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link rel="stylesheet" href="{{ asset('/css/admin/styles.css') }}">
<link rel="stylesheet" href="{{ asset('/css/admin/custom.css') }}">
{{ encore_entry_link_tags('app') }}
{% if app.environment == 'prod' %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z0L8028J2G"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Z0L8028J2G');
</script>
<!-- Google Tag Manager -->
{# <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':#}
{# new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],#}
{# j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=#}
{# 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);#}
{# })(window,document,'script','dataLayer','GTM-KRR7H53');</script>#}
<!-- End Google Tag Manager -->
{% endif %}
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '689658102920602');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=689658102920602&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
</head>
<body>
<style>
.grecaptcha-badge { visibility: hidden; }
</style>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KRR7H53"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% block body %}
{% block javascript %}{% endblock %}
{% endblock %}
{% include "partials/footer.html.twig" %}
</div>
</div>
<div class="modal fade" id="show-contact" tabindex="-1" role="dialog" aria-keyshortcuts="true" aria-labelledby="show-modal-contactModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Contacter Interfor</h5>
<button type="button btn-dark" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body ">
<div id="form">
<form id="contact-form">
<div class="form-group"style="margin: 0 30px">
<div>
<label>Nom Prénom</label>
<input type="text" class="form-control" name="name" required>
</div>
<div >
<label>Email</label>
<input type="email" class="form-control" name="email" required>
</div>
<div >
<label>Motif</label>
<input type="text" class="form-control" name="subject" required>
</div>
<div class="mt-2">
<label>Votre message : </label>
<textarea style="min-height: 30pt;" id="commentLuminjo" class="form-control" name="content" required></textarea>
</div>
<div class="mt-5 text-center">
<button class="g-recaptcha btn btn-primary"
{# data-sitekey="6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m"#}
{# data-callback='submitLumingo'#}
{# data-action='submit'#}
type="submit" onclick="submitLumingo(event)" class="btn btn-primary"
>Envoyer</button>
</div>
</div>
</form>
</div>
<div id="form-valid" style="display: none">
<div class="alert alert-success">Le message a bien été envoyé</div>
</div>
<div id="form-error" style="display: none">
<div class="alert alert-danger">Un erreur est survenue lors de l'envoi du message, veuillez réessayer ultérieurement</div>
</div>
</div>
</div>
</div>
</div>
</body>
{% block javascripts %}
<script src="https://max-interfor.luminjo.com/js/embed.js"></script>
<script src="{{ asset('./js/jquery.min.js') }}"></script>
{# <script src="https://www.google.com/recaptcha/api.js?render=6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m#}
{#"></script>#}
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
<script>
function submitLumingo(e) {
grecaptcha.ready(function() {
grecaptcha.execute('6Lf982YpAAAAAMoDZWtOsIXXxv0coqlZOfg3YL6m', {action: 'submit'}).then(function(token) {
const message = $('#commentLuminjo').val();
let name = $('input[name="name"]').val();
let email = $('input[name="email"]').val();
let subject = $('input[name="subject"]').val();
$.ajax({
dataType: 'json',
type: 'POST',
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
url: '{{ path('send_luminjo_api') }}',
data: {
token: token,
name: name,
message: message,
email: email,
subject: subject
},
success: function (data) {
window.location.reload()
e.preventDefault()
},
error: function (data) {
e.preventDefault()
},
});
});
});
};
</script>
{# <script src="https://www.google.com/recaptcha/api.js"></script>#}
{% endblock %}
</html>