- Notifications
You must be signed in to change notification settings - Fork 631
/
Copy pathindex.html
35 lines (32 loc) · 887 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<metacharset="utf-8">
<title>Ruby Programming Language</title>
<scripttype="text/javascript">
varlanguages={
"de": "de",
"es": "es",
"id": "id",
"ja": "ja",
"ko": "ko",
"pt": "pt",
"ru": "ru",
"tr": "tr",
"zh-CN": "zh_cn",
"zh-TW": "zh_tw"
};
varcode=window.navigator.language||window.navigator.userLanguage||"en";
if(code.substr(0,2)!=="zh"){code=code.substr(0,2);}
varlanguage=languages[code];
if(!language){language="en";}
document.location="/"+language+"/";
</script>
<noscript>
<metahttp-equiv="refresh" content="0; url=/en/">
</noscript>
</head>
<body>
<p><ahref="/en/">Click here</a> to be redirected.</p>
</body>
</html>