-
Notifications
You must be signed in to change notification settings - Fork 613
/
index.html
40 lines (37 loc) · 1.26 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta http-equiv="refresh" content="1; url=en_US/index.html" />
<title>File Centipede</title>
<script>
(function(){
var list = ["en_US","zh_CN","zh_TW","ru_RU","ko_KR","de_DE","id_ID","tr_TR"];
var lang = navigator.language.replace('-','_');
var name = "en_US";
for(let i=0;i<list.length;++i) {
if(list[i] === lang){
name = list[i];
break;
}
}
window.location = name + "/index.html";
})();
</script>
</head>
<body>
<h1>File Centipede</h1>
<div>
<a href="en_US/index.html"><h2>English</h2></a>
<a href="zh_CN/index.html"><h2>简体中文</h2></a>
<a href="zh_TW/index.html"><h2>繁體中文</h2></a>
<a href="ru_RU/index.html"><h2>Русский</h2></a>
<a href="ko_KR/index.html"><h2>한국어</h2></a>
<a href="de_DE/index.html"><h2>Deutsch</h2></a>
<a href="id_ID/index.html"><h2>Indonesia</h2></a>
<a href="tr_TR/index.html"><h2>Turkish</h2></a>
</div>
</body>
</html>