We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9a4287 commit 3d4132cCopy full SHA for 3d4132c
1 file changed
index.html
@@ -5,21 +5,28 @@
5
<meta charset="UTF-8">
6
<title>Document</title>
7
<script>
8
- if (navigator.appName == ”Netscape”)
9
-
+if (navigator.appName == "Netscape"){
10
var language = navigator.language;
+ }
11
12
- else
13
+ else{
14
var language = navigator.browserLanguage;
15
16
- if (language.indexOf(“en”) > -1) document.location.href = “en/index.html”;
17
18
- else if (language.indexOf(“zh”) > -1) document.location.href = ”cn/index.html”;
+ if (language.indexOf(“en”) > -1) {
19
+ document.location.href = "en/index.html";
20
21
22
+ else if (language.indexOf(“zh”) > -1){
23
+ document.location.href = "cn/index.html";
24
25
- document.location.href = ”en/index.html”;
26
27
28
+
29
30
</script>
31
</head>
32
0 commit comments