Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3d4132c

Browse files
committed
update
1 parent f9a4287 commit 3d4132c

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

‎index.html‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@
55
<meta charset="UTF-8">
66
<title>Document</title>
77
<script>
8-
if (navigator.appName == "Netscape")
9-
8+
if (navigator.appName == "Netscape"){
109
var language = navigator.language;
10+
}
1111

12-
else
1312

13+
else{
1414
var language = navigator.browserLanguage;
1515

16-
if(language.indexOf("en")>-1)document.location.href="en/index.html";
16+
}
1717

18-
else if (language.indexOf("zh") > -1) document.location.href = "cn/index.html";
18+
if (language.indexOf("en") > -1) {
19+
document.location.href = "en/index.html";
20+
}
1921

20-
else
22+
else if (language.indexOf("zh") > -1){
23+
document.location.href = "cn/index.html";
24+
}
2125

22-
document.location.href = "en/index.html";
26+
else{
27+
document.location.href = "en/index.html";
28+
29+
}
2330
</script>
2431
</head>
2532

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /