Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
$(".show").click(function(){ | $(".show").click(function(){ | ||
- | var | + | var number =$(".show").index(this); |
- | + | $("html").find("overlay").eq(number).show(500); | |
- | + | ||
}); | }); | ||
Line 23: | Line 22: | ||
}); | }); | ||
- | $(".overlay-content | + | $(".overlay-content").click(function(e){ |
e.stopPropagation(); | e.stopPropagation(); | ||
}); | }); |
Revision as of 14:39, 29 September 2014