Skip to content

Commit

Permalink
Changed event handlers and updated docs.
Browse files Browse the repository at this point in the history
I guess we're ready for the pre-release.
  • Loading branch information
janpaepke committed Sep 27, 2013
1 parent 598d3d3 commit 682cfbc
Show file tree
Hide file tree
Showing 25 changed files with 1,200 additions and 77,710 deletions.
40 changes: 34 additions & 6 deletions docs/ScrollMagic.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@
<ul class="dropdown-menu ">

<li>
<a href="ScrollScene.html#event:onChange">onChange</a>
<a href="ScrollScene.html#event:change">change</a>
</li>

<li>
<a href="ScrollScene.html#event:onEnd">onEnd</a>
<a href="ScrollScene.html#event:end">end</a>
</li>

<li>
<a href="ScrollScene.html#event:onProgress">onProgress</a>
<a href="ScrollScene.html#event:progress">progress</a>
</li>

<li>
<a href="ScrollScene.html#event:onStart">onStart</a>
<a href="ScrollScene.html#event:start">start</a>
</li>


Expand Down Expand Up @@ -1509,13 +1509,13 @@ <h5>Returns:</h5>


<span class="copyright">
Jan Paepke 2013
© Jan Paepke 2013
</span>
<br />

<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
on Fri Sep 27 2013 01:16:25 GMT+0200 (MESZ) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
on Fri Sep 27 2013 11:22:14 GMT+0200 (MESZ) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
</div>
Expand Down Expand Up @@ -1557,6 +1557,34 @@ <h5>Returns:</h5>
</script>


<script>
$( function () {
$('#main').localScroll({
offset: { top: 56 } //offset by the height of your header (give or take a few px, see what works for you)
});
$( "dt h4.name" ).each( function () {
var $this = $( this );
var icon = $( "<i/>" ).addClass( "icon-plus-sign" ).addClass( "pull-right" ).addClass( "icon-white" );
var dt = $this.parents( "dt" );
var children = dt.next( "dd" );

$this.append( icon ).css( {cursor : "pointer"} );
$this.addClass( "member-collapsed" ).addClass( "member" );

children.hide();
$this.toggle( function () {
icon.addClass( "icon-minus-sign" ).removeClass( "icon-plus-sign" ).removeClass( "icon-white" );
$this.addClass( "member-open" ).removeClass( "member-collapsed" );
children.slideDown();
}, function () {
icon.addClass( "icon-plus-sign" ).removeClass( "icon-minus-sign" ).addClass( "icon-white" );
$this.addClass( "member-collapsed" ).removeClass( "member-open" );
children.slideUp();
} );
} );
} );
</script>


</body>
</html>
Loading

0 comments on commit 682cfbc

Please sign in to comment.