mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
fix index page
This commit is contained in:
@ -600,3 +600,27 @@ h5:hover a {
|
||||
width: 88%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#act-cn-tabs {
|
||||
padding: 2rem 1.5rem 0.5rem 2rem;
|
||||
margin: 2rem auto;
|
||||
background:#dceaea;
|
||||
}
|
||||
|
||||
.act-menu{
|
||||
width: 24%;
|
||||
float: right;
|
||||
border-right:#cccccc solid 1px;
|
||||
}
|
||||
.act-menu li{
|
||||
text-align:center;
|
||||
line-height:44px;
|
||||
font-size:15px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.act-menu li.off{
|
||||
background:#FFFFFF;
|
||||
color:#000000;
|
||||
font-weight:bold;
|
||||
}
|
@ -1,3 +1,30 @@
|
||||
window.onload = function(){
|
||||
if (window.location.href.search("cn") != -1) {
|
||||
var actix_home = document.getElementById("act-home")
|
||||
actix_home.style.display = "none"
|
||||
}else{
|
||||
var actix_home_cn = document.getElementById("act-home-cn")
|
||||
actix_home_cn.style.display = "none"
|
||||
}
|
||||
}
|
||||
|
||||
function setTab(name,cursel){
|
||||
let tlinks = document.getElementById("act-cn-tabs").getElementsByTagName('li')
|
||||
for(var i=1; i<=tlinks.length; i++){
|
||||
var menu = document.getElementById(name+i);
|
||||
var menudiv = document.getElementById("con_"+name+"_"+i);
|
||||
if(i==cursel){
|
||||
menu.className="off";
|
||||
menudiv.style.display="block";
|
||||
}
|
||||
else{
|
||||
menu.className="";
|
||||
menudiv.style.display="none";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
(function() {
|
||||
function activateFeature(sel) {
|
||||
$('div.actix-feature').hide();
|
||||
@ -36,3 +63,5 @@
|
||||
initFeatureSelector();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user