Team:DTU-Denmark/kristian test header
From 2014.igem.org
(Difference between revisions)
(7 intermediate revisions not shown) | |||
Line 35: | Line 35: | ||
}); | }); | ||
- | $(window.scroll(function() { | + | $(window).scroll(function() { |
- | if ($(this).scrollTop() > | + | if ($(this).scrollTop() > 50) { |
$("#nav").css("position","fixed").css("top","0"); | $("#nav").css("position","fixed").css("top","0"); | ||
} else { | } else { | ||
- | $("#nav").css("position","absolute").css("bottom","0"); | + | $("#nav").css("position","absolute").css("bottom","0").css("top",""); |
} | } | ||
}); | }); | ||
Line 142: | Line 142: | ||
<a href="#top"><span></span></a> | <a href="#top"><span></span></a> | ||
</p> | </p> | ||
- | |||
<div style="background-color:gray;width:80%;height:2000px;margin:auto"> | <div style="background-color:gray;width:80%;height:2000px;margin:auto"> | ||
Line 149: | Line 148: | ||
</html> | </html> | ||
+ | {{:Template:Team:DTU-Denmark/footer}} |
Latest revision as of 16:21, 13 September 2014