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(){
-
     $("area").on("click", function(){
+
     $("svg.animbutton").on("click", function(){
-
         var filtertag = $(this).attr('class');
+
         var filtertag = $(this).attr('id');
-
         $("img#animation").hide();
+
         $("svg.animbutton").hide();
-
         $("img#animation").filter('.' + filtertag).show();
+
         $("svg.animbutton").filter('#' + filtertag).show();
                                               });
                                               });
});
});

Revision as of 18:08, 9 October 2014