22 lines
871 B
PHP
22 lines
871 B
PHP
<div class="form__row justify-content-center">
|
|
<div class="form__field ">
|
|
<span class="cn-cookie-activate" data-cookie-name="recaptcha">
|
|
<span>
|
|
<span>{{ __('cookie-notice.custom.recaptcha.warning') }}</span>
|
|
<small> {{ __('Acceptez ce cookie pour utiliser les formulaires') }}</small>
|
|
</span>
|
|
<button type="button" id="recaptcha-accept" class="btn btn-red">{{ __('Autoriser') }}</button>
|
|
|
|
</span>
|
|
</div>
|
|
</div>
|
|
@push('scripts')
|
|
<script nonce="{{ $nonce }}">
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
document.getElementById("recaptcha-accept")?.addEventListener("click", function(e) {
|
|
e.preventDefault();
|
|
window.WebCookieNotice.acceptCookie("recaptcha");
|
|
});
|
|
});
|
|
</script>
|
|
@endpush
|