Files
phaten-audio/en/material/index.html
PhatenIoT-yan 3a5820f4e9 添加en和zh
2025-05-14 15:25:41 +08:00

22 lines
444 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<script>
const lang = navigator.language;
var lang_l = localStorage.getItem("currLang");
var langzh = "zh-CN";
var test = location.href;
if (lang==langzh&&!lang_l){
location.href = test+"zh/"
}else{
location.href = test+"en/"
}
console.log("wwww:"+location.href);
</script>
<body>
</body>
</html>