Team:ETH Zurich/tpl/head/animbuttons
From 2014.igem.org
(Difference between revisions)
(Created page with "<html> <script type="text/javascript"> $(document).ready(function(){ $("area").on("click", function(){ var filtertag = $(this).attr('class'); $("img#anima...") |
|||
Line 5: | Line 5: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $(" | + | $("svg.animbutton").on("click", function(){ |
- | var filtertag = $(this).attr(' | + | var filtertag = $(this).attr('id'); |
- | $(" | + | $("svg.animbutton").hide(); |
- | $(" | + | $("svg.animbutton").filter('#' + filtertag).show(); |
}); | }); | ||
}); | }); |
Revision as of 18:08, 9 October 2014