YuhangYang (Talk | contribs) (Created page with "$(function(){ $(document).attr("title","Applied Design - Team:SSTi-SZGD - 2018.igem.org"); //Navigation $(".btn_nav .Application a").eq(0).addClass("active"); $(".sub_...") |
YuhangYang (Talk | contribs) |
||
Line 15: | Line 15: | ||
$(".page_title").text("应用设计"); | $(".page_title").text("应用设计"); | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 00:57, 18 October 2018
$(function(){
$(document).attr("title","Applied Design - Team:SSTi-SZGD - 2018.igem.org");
//Navigation $(".btn_nav .Application a").eq(0).addClass("active"); $(".sub_nav li.Application a").eq(0).addClass("active");
$(".page_nav ul li").removeClass("active"); $(".page_nav ul li").eq(3).addClass("active");
if(window.location.search==""){ $(".page_title").text("Applied Design"); }else{ $(".page_title").text("应用设计"); }
//card_content_Tab
$(".card_title span").each(function(index){
$(this).click(function(){
$(".card_title div").removeClass("active");
$(".card_title div").eq(index).addClass("active");
$(".card_content p").css("display","none");
$(".card_content p").eq(index).css("display","block");
if(index==0){
$(".card_content").css("border-radius","0 10px 10px 10px");
}else if(index==1){
$(".card_content").css("border-radius","10px");
}else{
$(".card_content").css("border-radius","10px 0 10px 10px");
}
});
});
});