Template:Team:Amsterdam/Sidebar1
From 2012.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
var winPos = $(window).scrollTop(); | var winPos = $(window).scrollTop(); | ||
- | if (winPos > | + | if (winPos > 235) { |
$("#sidebar-area").css({position:'fixed', top: 0}); | $("#sidebar-area").css({position:'fixed', top: 0}); | ||
} else { | } else { |
Revision as of 19:17, 25 September 2012