mirror of
https://github.com/WebStackPage/WebStackPage.github.io.git
synced 2026-02-13 07:15:49 +08:00
update
This commit is contained in:
44
index.html
44
index.html
@@ -1,27 +1,29 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
|
<script>
|
||||||
|
if (navigator.appName == ”Netscape”)
|
||||||
|
|
||||||
|
var language = navigator.language;
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
var language = navigator.browserLanguage;
|
||||||
|
|
||||||
|
if (language.indexOf(“en”) > -1) document.location.href = “en / index.html”;
|
||||||
|
|
||||||
|
else if (language.indexOf(“zh”) > -1) document.location.href = ”cn / index.html”;
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
document.location.href = ”en / index.html”;
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<script>
|
|
||||||
|
|
||||||
if (navigator.appName ==”Netscape”)
|
|
||||||
|
|
||||||
var language = navigator.language;
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
var language = navigator.browserLanguage;
|
|
||||||
|
|
||||||
if (language.indexOf(“en”) > -1) document.location.href = “en/index.html”;
|
|
||||||
|
|
||||||
else if (language.indexOf(“zh”) > -1) document.location.href =”cn/index.html”;
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
document.location.href =”en/index.html”;
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user