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