mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-11-09 17:44:31 -06:00
Add a stable /nkvm-legal short link that redirects to the Chinese or English Sipeed Remote Network disclaimer based on browser language.
15 lines
398 B
HTML
15 lines
398 B
HTML
<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>
|