forked from filecxx/FileCentipede
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (35 loc) · 1.14 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
<!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"];
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>
</div>
</body>
</html>