You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uweb/redirect.html~

13 lines
358 B
HTML

<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>