1. add short url for microscope

This commit is contained in:
Wu Caize
2025-01-11 10:37:16 +08:00
parent 87bc6d63e6
commit 06066c48fe
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<script>
var hash = window.location.hash
var url_language = "zh"
if (navigator.language.indexOf("zh") == -1) {
url_language = "en"
}
switch (window.location.hash) {
case "#shell":
default:
location.href = window.location.origin + "/hardware/" + url_language + "/maixcam/microscope.html"
}
</script>

View File

@@ -0,0 +1,14 @@
<script>
var hash = window.location.hash
var url_language = "zh"
if (navigator.language.indexOf("zh") == -1) {
url_language = "en"
}
switch (window.location.hash) {
case "#shell":
default:
location.href = window.location.origin + "/hardware/" + url_language + "/maixcam/microscope.html"
}
</script>