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

 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
     <div class="container">
 
     <div class="container">
       <footer>
+
       <div id="footer">
 
<p>&copy; 2015 Brasil-USP Team
 
<p>&copy; 2015 Brasil-USP Team
 
&middot; <a href="https://2015.igem.org/">iGEM</a>
 
&middot; <a href="https://2015.igem.org/">iGEM</a>
 
&middot; <a href="http://www.ifsc.usp.br/english/">IFSC</a>
 
&middot; <a href="http://www.ifsc.usp.br/english/">IFSC</a>
 
&middot; <a href="http://www.usp.br">USP</a></p>
 
&middot; <a href="http://www.usp.br">USP</a></p>
       </footer>
+
       </div>
 
     </div>
 
     </div>
 
     <a class="back-to-top" href="#top">Back to top</a>
 
     <a class="back-to-top" href="#top">Back to top</a>
Line 14: Line 14:
 
     ================================================== -->
 
     ================================================== -->
 
     <!-- Placed at the end of the document so the pages load faster -->
 
     <!-- Placed at the end of the document so the pages load faster -->
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
+
     <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> -->
     <script src="https://2015.igem.org/wiki/index.php?title=Team:Brasil-USP/Templates/js/bootstrap.min.js&action=raw&amp;ctype=text/js"></script>
+
   
 +
     <script type="text/javascript" src="https://2015.igem.org/wiki/index.php?title=Team:Brasil-USP/Templates/js/bootstrapmin&action=raw&amp;ctype=text/javascript"></script>
  
 
     <script>
 
     <script>
Line 29: Line 30:
 
           if ($target)
 
           if ($target)
 
           {
 
           {
             if ( $target.attr("class") == "top" ) { var targetOffset = $target.offset().top-50; }
+
             if ( $target.attr("class") == "top" ) { var targetOffset = $target.offset().top; }
             else { var targetOffset = $target.offset().top - 50; }
+
             else { var targetOffset = $target.offset().top - 70; }
 
              
 
              
 
             $(this).click(function()
 
             $(this).click(function()
Line 45: Line 46:
 
       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 55:
 
       });
 
       });
 
      
 
      
    jQuery('.back-to-top').click(function(event) {
 
        event.preventDefault();
 
        jQuery('html, body').animate({scrollTop: 0}, duration);
 
        return false;
 
    })
 
 
     });
 
     });
 
     </script>
 
     </script>
 
      
 
      
 
</html>
 
</html>

Latest revision as of 00:37, 18 September 2015

Back to top