docs(nanokvm-go): add short link for disclaimer

Add a stable /nkvm-legal short link that redirects to the Chinese or
English Sipeed Remote Network disclaimer based on browser language.
This commit is contained in:
liangziyue
2026-10-29 17:51:06 +08:00
committed by Guoguo
parent 986d5551e4
commit 007e912420
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 + "/kvm/NanoKVM_Go/network/sipeed_remote_network_disclaimer.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 + "/kvm/NanoKVM_Go/network/sipeed_remote_network_disclaimer.html"
}
</script>