mirror of
https://github.com/actix/actix-website
synced 2025-06-29 08:14:58 +02:00
let nav i18n
This commit is contained in:
@ -1,10 +1,17 @@
|
||||
window.onload = function(){
|
||||
if (window.location.href.search("cn") != -1) {
|
||||
var actix_home = document.getElementById("act-home")
|
||||
actix_home.style.display = "none"
|
||||
if (document.getElementById("act-home")){
|
||||
document.getElementById("act-home").style.display = "none"
|
||||
}
|
||||
}else{
|
||||
var actix_home_cn = document.getElementById("act-home-cn")
|
||||
actix_home_cn.style.display = "none"
|
||||
if (document.getElementById("act-home-cn")){
|
||||
document.getElementById("act-home-cn").style.display = "none"
|
||||
}
|
||||
}
|
||||
if (window.location.href.search("cn") != -1) {
|
||||
document.getElementById("ul-en").style.display = "none"
|
||||
}else{
|
||||
document.getElementById("ul-zh").style.display = "none"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user