1
0
mirror of https://github.com/actix/actix-website synced 2025-06-26 23:27:43 +02:00

let nav i18n

This commit is contained in:
krircc
2018-06-24 10:00:12 +08:00
parent 1cd36888c2
commit ada7b80fe9
4 changed files with 42 additions and 7 deletions

View File

@ -171,13 +171,17 @@ img {
padding-top: 0;
list-style: none;
}
.navbar-nav #language img {
width: 25px;
height:22px;
}
.navbar-nav #language ul {
display: none;
}
.navbar-nav #language:hover .subitem {
margin: -1rem 0 0 -6.6rem;
display: block;
background-color: #e8f9fc;
background-color: #dcfaf7;
}
.navbar-nav #language ul li {
display: block;

BIN
static/img/i18n.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -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"
}
}