forked from AnnatarHe/AnnatarHe.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
45 lines (44 loc) · 1.17 KB
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>404 - Not Found</title>
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<style>
.sorry{
width: 300px;
margin: 10px auto;
padding: 10px 5px;
text-align: center;
}
hr{
margin: 10px 5px;
}
p:hover{
cursor: pointer;
text-decoration: underline;
}
</style>
</head>
<body>
<div class="sorry">
Sorry, The page Not Found
<hr>
<p data-link="/index.html">AnnatarHe.github.io</p>
</div>
<script>
'use strict'
window.addEventListener('DOMContentLoaded', () => {
console.log('Thanks for you visited my site');
document.querySelector('p').addEventListener('click', () => {
window.location.href = this.getAttribute('data-link')
})
})
</script>
</body>
</html>