Pave numerique tactile dans la popup admin
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user