Team:ETH Zurich/tpl/head/animbuttons

From 2014.igem.org

(Difference between revisions)
 
Line 11: Line 11:
         $("img.animation").hide();
         $("img.animation").hide();
         $("img.animation#luxblue").show();
         $("img.animation#luxblue").show();
-
    $("svg.animbutton").on("click", function(){
+
    $("svg.animbutton").on("click", function(){
         var filtertag = $(this).attr('id');
         var filtertag = $(this).attr('id');
         $("img.animation").hide();
         $("img.animation").hide();
         $("img.animation").filter('#' + filtertag).show();
         $("img.animation").filter('#' + filtertag).show();
-
         $("img.animation#"+filtertag).load();
+
         $('img.animation#'+filtertag).load();
                                               });
                                               });

Latest revision as of 16:09, 11 October 2014