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' }); | + | $('#sidemenu').css({ position: 'fixed', top: '50px' ,width: '14%'}); |
} | } | ||
else { | else { | ||
$('#sidemenu').removeAttr('style'); | $('#sidemenu').removeAttr('style'); | ||
− | |||
} | } | ||
}); | }); |
Revision as of 16:35, 19 August 2015