-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnot-found.html
More file actions
69 lines (58 loc) · 2.15 KB
/
not-found.html
File metadata and controls
69 lines (58 loc) · 2.15 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!doctype html>
<html>
<head>
<title>Page not found</title>
<meta charset="utf-8"/>
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="https://turbolabit.github.io/html-pages/asset/icons/heart-broken.ico">
<link rel="shortcut icon" href="https://turbolabit.github.io/html-pages/asset/icons/heart-broken.ico"" >
<meta http-equiv="refresh" content="90">
<style>
body { text-align: center; padding: 20px; font: 20px Helvetica, sans-serif; color: #333; }
@media (min-width: 768px){
body{ padding-top: 150px; }
}
h1 { font-size: 50px; }
article { display: block; text-align: left; max-width: 650px; margin: 0 auto; }
.d-none { display: none; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
</head>
<body>
<article>
<noscript>💔 Page not found :-/</noscript>
<div id="it" class="d-none">
<h1>💔 Pagina non trovata</h1>
<div>
<p>
Oh no, la pagina che stai cercando non esiste oppure è stata eliminata o spostata.
</p>
<p>💡 <a href="javascript:history.back()">Torna indietro</a> </p>
</div>
</div>
<div id="en" class="d-none">
<h1>💔 Page not found</h1>
<div>
<p>
The page you're looking for doesn't exist, or has been deleted/moved.
</p>
<p>💡 <a href="javascript:history.back()">Go back</a> </p>
</div>
</div>
<div><p id="now"></p></div>
</article>
<script>
let lang = window.navigator.userLanguage || window.navigator.language || 'en';
lang = lang.slice(0, 2).toLowerCase();
let div = document.getElementById(lang) || document.getElementById('en');
div.classList.remove("d-none");
//
document.querySelector('title').textContent = div.querySelector('.title').textContent;
//
let oNow = new Date();
document.getElementById('now').textContent = oNow.toLocaleString(lang);
</script>
</body>
</html>