Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 12: | Line 12: | ||
$(".m-active h2 a").click(function(){ | $(".m-active h2 a").click(function(){ | ||
var num = $(".m-active h2 a").index(this); | var num = $(".m-active h2 a").index(this); | ||
- | + | var ac =$(".ac").eq(num); | |
- | + | if(ac.is(':hidden')){ | |
+ | ac.slideDown(); | ||
}else { | }else { | ||
- | + | ac.slideUp(); | |
} | } | ||
}); | }); |
Revision as of 16:12, 24 September 2014