Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 79: | Line 79: | ||
marginTop: $window.scrollTop() - offset.top + topPadding | marginTop: $window.scrollTop() - offset.top + topPadding | ||
},duration=200); | },duration=200); | ||
+ | $sidebar.css('position','fixed'); | ||
} else { | } else { | ||
$sidebar.stop().animate({ | $sidebar.stop().animate({ | ||
Line 88: | Line 89: | ||
marginTop: 0 | marginTop: 0 | ||
}); | }); | ||
+ | $sidebar.css('position','inherit'); | ||
} | } | ||
}); | }); |
Revision as of 13:14, 18 August 2015