Team:SJTU-BioX-Shanghai/daynotes
From 2014.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
border-bottom-right-radius: 5px; | border-bottom-right-radius: 5px; | ||
border-bottom-right-radius: 5px; | border-bottom-right-radius: 5px; | ||
+ | } | ||
+ | .sidenav-fixed{ | ||
+ | position: fixed; | ||
+ | left: 0; | ||
+ | top: 220px; | ||
} | } | ||
.sidenav .heading{ | .sidenav .heading{ | ||
Line 112: | Line 117: | ||
$(content).fadeIn(600); | $(content).fadeIn(600); | ||
} | } | ||
- | + | }); | |
- | + | $(window).scroll(function(){ | |
- | + | var top = document.getElementById('sidenav_container').getBoundingClientRect().top; | |
- | + | if($('#wrap').hasClass('sticky')){ | |
+ | $('#sidenav_container').addClass('sidenav-fixed'); | ||
+ | } else { | ||
+ | $('#sidenav_container').removeClass('sidenav-fixed'); | ||
+ | } | ||
}); | }); | ||
}); | }); |
Revision as of 13:11, 11 October 2014
June
123
July
123
August
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123