Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 88: | Line 88: | ||
$(window).scroll(function(){ // scroll event | $(window).scroll(function(){ // scroll event | ||
var windowTop = $(window).scrollTop(); // returns number | var windowTop = $(window).scrollTop(); // returns number | ||
− | if (stickyTop < windowTop | + | if (stickyTop < windowTop + 50){ |
$('#sidemenu').css({ position: 'fixed', top: '50px' , width: '12%'}); | $('#sidemenu').css({ position: 'fixed', top: '50px' , width: '12%'}); | ||
} | } |
Revision as of 16:50, 19 August 2015