mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
fix redirect.html
This commit is contained in:
parent
c0a6690dd8
commit
af87a9130d
1 changed files with 4 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
||||||
<head>
|
<head>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
(function(){
|
||||||
var ls = navigator.languages;
|
var ls = navigator.languages;
|
||||||
for(var i in ls){
|
for(var i in ls){
|
||||||
if(ls[i].startsWith("en")) {location.href="en/index.html";break;}
|
if(ls[i].startsWith("en")) {location.href="en/index.html";return;}
|
||||||
if(ls[i].startsWith("zh")) {location.href="zh/index.html";break;}
|
if(ls[i].startsWith("zh")) {location.href="zh/index.html";return;}
|
||||||
}
|
}
|
||||||
location.href="en/index.html";
|
location.href="en/index.html";
|
||||||
|
})();
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue