Team:DTU-Denmark/kristian test header
From 2014.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 36: | Line 36: | ||
$(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 { | ||
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