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 hoge =$(".show").index(this);
+
     var number =$(".show").index(this);
-
     alert(hoge);
+
     $("html").find("overlay").eq(number).show(500);
-
    $("overlay").eq(hoge).show(500);
+
   });
   });
Line 23: Line 22:
});
});
   
   
-
$(".overlay-content-ymzk").click(function(e){
+
$(".overlay-content").click(function(e){
     e.stopPropagation();
     e.stopPropagation();
});
});

Revision as of 14:39, 29 September 2014