1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 08:14:58 +02:00

fix index page

This commit is contained in:
krircc
2018-06-23 15:54:08 +08:00
parent 88300abd1f
commit a2d543f8bc
4 changed files with 128 additions and 85 deletions

View File

@ -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();
});
})();