From 04765d915b8b68b9077b470150d809d2c498d5c4 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 13 May 2026 14:47:02 +0000 Subject: [PATCH] a --- Contestation/Demandereconnaissancefaciale.php | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index 04640ea..874b736 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -78,10 +78,11 @@ 'verification_failed' => 'Vérification échouée', 'face_not_match' => 'Votre visage ne correspond pas à notre base de données.', - 'contact_support' => 'Veuillez contacter notre service client.', + 'contact_support' => 'Si vous pensez qu\'il s\'agit d\'une erreur, veuillez contacter notre service client.', 'remaining_attempts' => 'Tentatives restantes', - 'redirection_in' => 'Redirection dans %s secondes...', + 'redirection_in' => ' secondes avant redirection...', + 'invalid_link' => 'Lien de vérification invalide', 'expired_link' => 'Lien expiré ou invalide', 'server_error' => 'Erreur de connexion au serveur', @@ -141,10 +142,10 @@ 'verification_failed' => 'Verification failed', 'face_not_match' => 'Your face does not match our database.', - 'contact_support' => 'Please contact customer support.', + 'contact_support' => 'If you believe this is an error, please contact customer support.', 'remaining_attempts' => 'Remaining attempts', - 'redirection_in' => 'Redirecting in %s seconds...', + 'redirection_in' => 'seconds before redirection...', 'invalid_link' => 'Invalid verification link', 'expired_link' => 'Expired or invalid link', 'server_error' => 'Server connection error', @@ -897,19 +898,25 @@ } function showFailure(data) { + document.getElementById('result-icon').textContent = '❌'; - //document.getElementById('result-title').textContent = 'Vérification échouée'; - v_msg = ""; - alert("v_msg => "+v_msg); + + const v_msg = ""; + const v_msg1 = ""; + const v_msg2 = ""; + const v_msg3 = ""; + document.getElementById('result-title').textContent = v_msg; document.getElementById('result-title').style.color = '#e74c3c'; - document.getElementById('result-message').innerHTML = - `${data.message || 'Votre visage ne correspond pas à notre base de données.'}

- Si vous pensez qu'il s'agit d'une erreur, veuillez contacter notre service client.
- Tentatives restantes: ${data.attempts_remaining -1 || 0} `; - + + document.getElementById('result-message').innerHTML = ` + ${data.message || v_msg1}

+ ${v_msg2}
+ ${v_msg3}: ${data.attempts_remaining - 1 || 0} + `; + showStep('step-result'); - + // Permettre une nouvelle tentative si disponible if (data.attempts_remaining > 0) { setTimeout(() => { @@ -917,14 +924,15 @@ }, 5000); } } - + function startCountdown(seconds, callback) { let remaining = seconds; const countdownEl = document.getElementById('countdown'); const interval = setInterval(() => { - countdownEl.textContent = `Redirection dans ${remaining} secondes...`; - remaining--; + // countdownEl.textContent = `Redirection dans ${remaining} secondes...`; + const v_msg4 = ""; + countdownEl.textContent = ${remaining} ${v_msg4}; if (remaining < 0) { clearInterval(interval);