-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.html
More file actions
54 lines (48 loc) · 957 Bytes
/
error.html
File metadata and controls
54 lines (48 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Erreur</title>
<style>
body {
background-color: red;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.error-message {
color: white;
font-size: 24px;
text-align: center;
}
.timer {
font-size: 48px;
font-weight: bold;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="error-message">
<p>Mauvais code</p>
<p class="timer" id="timer">30 secondes</p>
</div>
<script>
var seconds = 30;
var timerElement = document.getElementById("timer");
function countdown() {
timerElement.textContent = seconds + " secondes";
if (seconds > 0) {
seconds--;
setTimeout(countdown, 1000);
} else {
window.location.href = "index.html"; // Redirige vers la page "index.html" après 30 secondes
}
}
countdown();
</script>
</body>
</html>