forked from deltachat/deltachat-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (38 loc) · 1.39 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Delta Chat - Open Source Email Based Instant Messenger</title>
<meta charset="UTF-8" />
<meta name="description" content="Delta Chat - Email Based Secure Instant Messenger" />
<meta name="keywords" content="delta chat, email messaging app, download delta chat" />
<link rel="alternate" href="https://delta.chat/feed.xml" type="application/atom+xml" title="Delta Chat News" />
<!-- 1. try to redirect via JavaScript -->
<script>
var lang = window.navigator.languages ? window.navigator.languages[0] : null;
lang = lang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;
if (lang.indexOf('-') !== -1) { lang = lang.split('-')[0]; }
if (lang.indexOf('_') !== -1) { lang = lang.split('_')[0]; }
var redirectUrl = 'en/';
if( lang == 'de'
|| lang == 'es'
|| lang == 'fr'
|| lang == 'pl'
|| lang == 'pt'
|| lang == 'it'
|| lang == 'nb'
|| lang == 'ru'
|| lang == 'sq' ) {
redirectUrl = lang + "/";
}
window.location = redirectUrl;
</script>
<!-- 2. wait two seconds, if JavaScript does no redirection in this time, we redirect to the english page -->
<meta http-equiv="refresh" content="2; URL=en/">
</head>
<body>
<!-- 3. add a fallback link; this may also be helpful for SEO. We hide the link using CSS to avoid flickering. -->
<p>
<a href="en/" style="position:relative; left:-100em;">One moment ...</a>
</p>
</body>
</html>