Difference between revisions of "Team:Brasil-USP/Templates/Foot"

Line 45: Line 45:
 
       var offset = 400;
 
       var offset = 400;
 
       var duration = 1000;
 
       var duration = 1000;
 +
      jQuery('.back-to-top').fadeOut(0);
 
       jQuery(window).scroll(function() {
 
       jQuery(window).scroll(function() {
 
         if (jQuery(this).scrollTop() > offset) {
 
         if (jQuery(this).scrollTop() > offset) {
Line 53: Line 54:
 
       });
 
       });
 
      
 
      
    jQuery('.back-to-top').click(function(event) {
 
        event.preventDefault();
 
        jQuery('html, body').animate({scrollTop: 0}, duration);
 
        return false;
 
    })
 
 
     });
 
     });
 
     </script>
 
     </script>
 
      
 
      
 
</html>
 
</html>

Revision as of 14:36, 15 September 2015

Back to top