Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 69: | Line 69: | ||
$window.scroll(function() { | $window.scroll(function() { | ||
− | if ($window.scrollTop() > offset.top) { | + | if (($window.scrollTop() > offset.top) && ($window.scrollTop() < $("#footerContainer").offset().top)) { |
$sidebar.stop().animate({ | $sidebar.stop().animate({ | ||
marginTop: $window.scrollTop() - offset.top + topPadding | marginTop: $window.scrollTop() - offset.top + topPadding | ||
Line 90: | Line 90: | ||
$('#menuContainer li').css('float', 'none'); | $('#menuContainer li').css('float', 'none'); | ||
$('#sidemenuContainer').css('display','none'); | $('#sidemenuContainer').css('display','none'); | ||
− | $('#mainContainer').css('width',' | + | $('#mainContainer').css('width','initial'); |
} else { | } else { | ||
$('#sidemenuContainer').css('display','block'); | $('#sidemenuContainer').css('display','block'); |
Revision as of 11:14, 18 August 2015