doc: Add short URL for tangconsole

This commit is contained in:
Rosemary_HSN
2025-04-03 17:17:08 +08:00
parent 247b839956
commit 8dce0c1640
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<script>
var hash = window.location.hash
if (hash.indexOf("start")!= -1){
location.href = window.location.origin + "/hardware/en/tang/tang-console/mega-console.html"
}
else
{ if( navigator.language.indexOf("en") == 0 )
{
location.href = window.location.origin + "/hardware/en/tang/tang-console/mega-console.html"
}
else
{
location.href = window.location.origin + "/hardware/zh/tang/tang-console/mega-console.html"
}
}
</script>

View File

@@ -0,0 +1,16 @@
<script>
var hash = window.location.hash
if (hash.indexOf("start")!= -1){
location.href = window.location.origin + "/hardware/zh/tang/tang-console/mega-console.html"
}
else
{ if( navigator.language.indexOf("zh") == 0 )
{
location.href = window.location.origin + "/hardware/zh/tang/tang-console/mega-console.html"
}
else
{
location.href = window.location.origin + "/hardware/en/tang/tang-console/mega-console.html"
}
}
</script>