Pave numerique tactile dans la popup admin

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 13:11:08 +02:00
parent c919c420b7
commit 8418d481a5
3 changed files with 62 additions and 6 deletions

View File

@@ -124,7 +124,6 @@ function ouvrirAdmin() {
popup.classList.remove('cache');
input.value = '';
document.getElementById('mdp-erreur').classList.add('cache');
setTimeout(() => input.focus(), 100);
}
function fermerPopupMdp() {
@@ -132,6 +131,16 @@ function fermerPopupMdp() {
document.getElementById('input-mdp-admin').value = '';
}
function paveTouche(chiffre) {
const input = document.getElementById('input-mdp-admin');
input.value += chiffre;
}
function paveEffacer() {
const input = document.getElementById('input-mdp-admin');
input.value = input.value.slice(0, -1);
}
function validerMdpAdmin() {
const input = document.getElementById('input-mdp-admin');
if (input.value === MDP_ADMIN) {