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);
-
if($(".ac").eq(num).is(':hidden')){  
+
var ac =$(".ac").eq(num);
-
$(".ac").eq(num).slideDown();
+
if(ac.is(':hidden')){  
 +
ac.slideDown();
}else {
}else {
-
$(".ac").eq(num).slideUp();
+
ac.slideUp();
}  
}  
});
});

Revision as of 16:12, 24 September 2014