footer: nullify enter key
All checks were successful
/ deploy (push) Successful in 29s

This commit is contained in:
forgejo-actions[bot] 2025-03-13 21:37:27 +00:00
parent 5cc4a3b03d
commit 61c21ba97f
60 changed files with 777 additions and 93 deletions

View file

@ -137,6 +137,18 @@
<form method="post" action="https://notif.ilot.io/subscription/form" class="listmonk-form">
<!-- Converts enter key to tab -->
<script>
document.addEventListener('keydown', function (event) {
if (event.keyCode === 13 && event.target.nodeName === 'INPUT') {
var form = event.target.form;
var index = Array.prototype.indexOf.call(form, event.target);
form.elements[index + 1].focus();
event.preventDefault();
}
});
</script>
<input type="hidden" name="nonce" />
<input id="9c490" type="hidden" name="l" value="9c490957-b50b-4162-898d-92259e350cd6" />
<div class="t">
@ -147,7 +159,7 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<h5 class="modal-title" id="hcapatchamodallabel">Are you a robot?</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">

View file

@ -139,6 +139,15 @@
<form method="post" action="https://notif.ilot.io/subscription/form" class="listmonk-form">
<!-- Converts enter key to tab -->
<script>
document.addEventListener('keydown', function (event) { if (event.keyCode
=== 13 && event.target.nodeName === 'INPUT') { var form = event.target.form;
var index = Array.prototype.indexOf.call(form, event.target);
form.elements[index + 1].focus(); event.preventDefault(); } });
</script>
<input type="hidden" name="nonce" /> <input id="9c490" type="hidden"
name="l" value="9c490957-b50b-4162-898d-92259e350cd6" />
<div class="t">
@ -146,14 +155,14 @@ name="l" value="9c490957-b50b-4162-898d-92259e350cd6" />
placeholder="Courriel" />
</div>
<button aria-label="Subscribe" class="btn" type="button"
data-bs-toggle="modal" data-bs-target="#hcaptchamodal">Subscribe</button>
data-bs-toggle="modal" data-bs-target="#hcaptchamodal">S'abonner</button>
<div class="modal fade" id="hcaptchamodal" tabindex="-1" aria-labelledby="haptcha" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<h5 class="modal-title" id="hcapatchamodallabel">Êtes-vous un robot?</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
aria-label="Fermer"></button>
</div>
<div class="modal-body">
<div class="h-captcha" data-sitekey="be08a59e-ae24-472e-8a80-22d07016ee90" data-callback="submitSubscribe"></div>
@ -161,8 +170,8 @@ aria-label="Close"></button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary"
data-bs-dismiss="modal">Close</button> <button aria-label="Subscribe"
class="btn" type="submit">Subscribe</button>
data-bs-dismiss="modal">Fermer</button> <button aria-label="Subscribe"
class="btn" type="submit">S'abonner</button>
</div>
</div>
</div>