This commit is contained in:
George Michael Brower 2014-08-21 22:38:44 -04:00
parent 2705c84a04
commit 6e09c30751
2 changed files with 2 additions and 2 deletions

View File

@ -73,12 +73,12 @@ h2.sticky {
}
function onScroll() {
for ( var el, i = 0, l = elements.length; i < l; i++ ) {
el = elements[ i ];
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
el.spacer.style.visibility = sticky ? 'visible' : 'hidden';
if ( el.next && sticky ) {

View File

@ -1,5 +1,5 @@
<!-- platform -->
<script src="components/platform/platform.js"></script>
<script src="../components/platform/platform.js"></script>
<!-- font -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto" type="text/css">