-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 785 Bytes
/
index.html
File metadata and controls
31 lines (31 loc) · 785 Bytes
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
<!doctype html>
<html>
<head>
<title>Jubatus</title>
<script type="text/javascript">
function browserLanguage() {
try {
return((window.navigator.languages && window.navigator.languages[0]) ||
window.navigator.language ||
window.navigator.userLanguage ||
window.navigator.browserLanguage)
}
catch(e) {
return undefined;
}
}
if (browserLanguage().indexOf("ja") != -1) {
setTimeout("location.href='ja/';", 5000)
} else {
setTimeout("location.href='en/';", 5000)
}
</script>
</head>
<body>
<h1>Jubatus</h1>
<ul>
<li><a href="en/">English</a></li>
<li><a href="ja/">Japanese</a></li>
</ul>
</body>
</html>