mirror of https://github.com/torappinfo/uweb
rebuilding site Fri Sep 2 10:55:54 PM CST 2022
parent
e1b83a0c77
commit
a2ad390c55
@ -0,0 +1,9 @@
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
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;}
|
||||
}
|
||||
</script>
|
||||
</head>
|
@ -0,0 +1,12 @@
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
var langs = navigator.languages;
|
||||
var href = location.href;
|
||||
var i = href.lastIndexOf('/');
|
||||
var base = href.substring(0,i+1);
|
||||
for(var l in langs){
|
||||
if(l.startsWith("en")) {location.href=base+"en/index.html";break;}
|
||||
if(l.startsWith("zh")) {location.href=base+"zh/index.html";break;}
|
||||
}
|
||||
</script>
|
||||
</head>
|
Loading…
Reference in New Issue