-
Notifications
You must be signed in to change notification settings - Fork 0
/
maintenance.html
72 lines (61 loc) · 2.34 KB
/
maintenance.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html>
<head>
<title>Maintenance!</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/toolbox.ico">
<link rel="shortcut icon" href="https://turbolabit.github.io/html-pages/asset/icons/toolbox.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>🧰 Maintenance in progress, please wait....</noscript>
<div id="it" class="d-none">
<h1>🔧 Manutenzione in corso</h1>
<div>
<p>
Stiamo svolgendo un intervento di manutenzione. Il sito sarà nuovamente disponibile fra alcuni minuti.
</p>
<p>💡 Non chiudere questa pagina...</p>
</div>
<span class="title d-none">Manutenzione in corso...</span>
</div>
<div id="en" class="d-none">
<h1>🔧 We’ll be back soon!</h1>
<div>
<p>
Sorry for the inconvenience but we’re performing some maintenance at the moment.
We’ll be back online shortly!
</p>
<p>💡 Don't close this page...</p>
</div>
<span class="title d-none">Maintenance in progress...</span>
</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>