Team:UCLA/Aal/javascripttemplate

From 2014.igem.org

(Difference between revisions)
Line 14: Line 14:
});
});
jQuery(document).ready(function($){
jQuery(document).ready(function($){
-
    $('.spiderbutton').click(function(){
+
      $('.spiderbutton').click(function(){
-
         $("html, body").scrollTop(0);
+
         $("html, body").animate({ scrollTop: 0 }, 500);
         return false;
         return false;
     });
     });

Revision as of 22:49, 5 September 2014