Untitled
unknown
plain_text
2 years ago
2.0 kB
12
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Confirmation d'inscription</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f4f4f4;
margin: 0;
}
div {
background-color: #fff;
padding: 60px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
color: #333;
}
p {
color: #007bff;
font-size: 18px;
}
span {
color: red;
font-size: 24px;
font-weight: bold;
}
</style>
</head>
<body>
<div>
<h1>Confirmation d'inscription</h1>
<p>Vous êtes bien inscrit !</p>
<p>Redirection dans <span id="countdown">5</span> secondes.</p>
<script>
// Décompteur
let seconds = 5;
// Fonction de mise à jour du décompteur
function updateCountdown() {
document.getElementById('countdown').textContent = seconds;
if (seconds === 0) {
// Rediriger vers une autre page après le décompteur
window.location.href = 'login.html';
} else {
// Décrémenter le décompteur
seconds--;
// Mettre à jour toutes les secondes (1000 millisecondes)
setTimeout(updateCountdown, 1000);
}
}
// Démarrer le décompteur
updateCountdown();
</script>
</div>
</body>
</html>
Editor is loading...
Leave a Comment