Team:Manchester/Footer

From 2013.igem.org

(Difference between revisions)
 
(24 intermediate revisions not shown)
Line 3: Line 3:
<html>
<html>
<head>
<head>
-
<script type='text/javascript' src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
+
 
<script type="text/javascript">
<script type="text/javascript">
   $(document).ready(function() {
   $(document).ready(function() {
     $(window).scroll(function() {
     $(window).scroll(function() {
-
         if($(this).scrollTop() > 100) {
+
         if($(this).scrollTop() > 200) {
           $(".topButton").fadeIn(200);}
           $(".topButton").fadeIn(200);}
         else {
         else {
           $(".topButton").fadeOut(200);}
           $(".topButton").fadeOut(200);}
     });
     });
 +
  $(".topButton").click(function(event) {
 +
    event.preventDefault();
 +
      $("html, body").animate({scrollTop:0},200);
   });
   });
 +
  });
</script>
</script>
Line 19: Line 23:
.anchor a
.anchor a
{
{
-
width:100px;
+
width:120px;
text-decoration:none;
text-decoration:none;
color:white;
color:white;
position:fixed;
position:fixed;
-
bottom:5px;
+
bottom:210px;
-
right:270px;
+
right:5px;
text-align:center;
text-align:center;
background:#606060;
background:#606060;
-
padding:15px;
+
padding:5px;
font-style:Trebuchet MS;
font-style:Trebuchet MS;
font-weight:bold;
font-weight:bold;
-
font-size:24px;
+
font-size:14px;
color:white;
color:white;
display:none;
display:none;

Latest revision as of 15:47, 28 September 2013

Top