forked from climatescope/climatescope.org
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.html
41 lines (40 loc) · 1.04 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
---
---
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
h1 {
color: #999;
font-family: sans-serif;
font-size: 80px;
left: 50%;
margin: -50px 0 0 -150px;
position: absolute;
top: 50%;
}
</style>
<script>
// To speed up this page re-declare the readCookie function.
// This page is just a redirect.
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ')
c = c.substring(1, c.length);
if (c.indexOf(nameEQ) === 0)
return c.substring(nameEQ.length, c.length);
}
return null;
}
var lang = readCookie('CS_lang') || 'en';
window.location = '{{ site.domain }}{{ site.path_prefix }}/' + lang + '/404.html';
</script>
</head>
<body>
<h1>4 OH 4</h1>
</body>
</html>