Team:ETH Zurich/labblog/buttons
From 2014.igem.org
(Difference between revisions)
Line 78: | Line 78: | ||
$("article").hide(); | $("article").hide(); | ||
- | $(" | + | $("area").on("click", function(){ |
var filtertag = $(this).attr('class'); | var filtertag = $(this).attr('class'); | ||
$("article").filter('.' + filtertag).toggle(); | $("article").filter('.' + filtertag).toggle(); | ||
}); | }); | ||
+ | $("a#insidelink").on("click", function(){ | ||
+ | var targetid = $(this).attr('target'); | ||
+ | $("article#targetid").show(); | ||
+ | }); | ||
+ | |||
$("area.milli").click(); | $("area.milli").click(); | ||
$("area.integrase").click(); | $("area.integrase").click(); |
Revision as of 23:02, 7 October 2014