mirror of https://github.com/torappinfo/uweb
Compare commits
4 Commits
c0a6690dd8
...
0b0584e39d
Author | SHA1 | Date |
---|---|---|
James Feng Cao | 0b0584e39d | 6 months ago |
James Feng Cao | 1502209acb | 6 months ago |
James Feng Cao | b9d6b27bee | 6 months ago |
James Feng Cao | af87a9130d | 6 months ago |
@ -1,10 +1,12 @@
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
var ls = navigator.languages;
|
||||
for(var i in ls){
|
||||
if(ls[i].startsWith("en")) {location.href="en/index.html";break;}
|
||||
if(ls[i].startsWith("zh")) {location.href="zh/index.html";break;}
|
||||
if(ls[i].startsWith("en")) {location.href="en/index.html";return;}
|
||||
if(ls[i].startsWith("zh")) {location.href="zh/index.html";return;}
|
||||
}
|
||||
location.href="en/index.html";
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue