mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
p
This commit is contained in:
parent
2705c84a04
commit
6e09c30751
@ -73,12 +73,12 @@ h2.sticky {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onScroll() {
|
function onScroll() {
|
||||||
|
|
||||||
for ( var el, i = 0, l = elements.length; i < l; i++ ) {
|
for ( var el, i = 0, l = elements.length; i < l; i++ ) {
|
||||||
|
|
||||||
el = elements[ i ];
|
el = elements[ i ];
|
||||||
|
|
||||||
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
|
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
|
||||||
|
|
||||||
el.spacer.style.visibility = sticky ? 'visible' : 'hidden';
|
el.spacer.style.visibility = sticky ? 'visible' : 'hidden';
|
||||||
|
|
||||||
if ( el.next && sticky ) {
|
if ( el.next && sticky ) {
|
||||||
|
2
gui.html
2
gui.html
@ -1,5 +1,5 @@
|
|||||||
<!-- platform -->
|
<!-- platform -->
|
||||||
<script src="components/platform/platform.js"></script>
|
<script src="../components/platform/platform.js"></script>
|
||||||
|
|
||||||
<!-- font -->
|
<!-- font -->
|
||||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto" type="text/css">
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto" type="text/css">
|
||||||
|
Loading…
Reference in New Issue
Block a user