-
Notifications
You must be signed in to change notification settings - Fork 8
/
404.html
47 lines (47 loc) · 999 Bytes
/
404.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>404</title>
<style>
header {
margin: 40px;
text-align: center;
font-size: 30px;
}
main time {
display: block;
text-align: center;
margin: 40px 0 20px;
}
main a {
display: block;
width: 15em;
text-align: center;
background: #0170fe;
padding: 10px;
border-radius: 4px;
color: #fff;
text-decoration: none;
margin: 0 auto;
}
</style>
</head>
<body>
<header>Oops! 404</header>
<main>
<time>60s</time>
<a href="/notes">Take me to the Home Page.</a>
</main>
<script>
var t = 60;
setInterval(function() {
t--;
document.querySelector('main time').innerHTML = t + 's';
if (t === 0) {
location.href = document.querySelector('main a').href;
}
}, 1000);
</script>
</body>
</html>