Skip to content

Commit

Permalink
Cherry picking from branch fix-fragments-in-speakernotes
Browse files Browse the repository at this point in the history
Change source from reveal.min.js to reveal.js for testing purposes.

Add nextFragment and previousFragment to the API:
Making it possible to call the methods Reveal.nextFragment()
and Reveal.previousFragment() from »outside«.

Update README.md:
Add the new API Methods Reveal.prevFragment() and Reveal.nextFragment()
  • Loading branch information
mischah committed Oct 23, 2012
1 parent aefe981 commit 40c899e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ Reveal.up();
Reveal.down();
Reveal.prev();
Reveal.next();
Reveal.prevFragment();
Reveal.nextFragment();
Reveal.toggleOverview();

// Retrieves the previous and current slide elements
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ <h3>BY Hakim El Hattab / hakim.se</h3>
</div>

<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script src="js/reveal.js"></script>

<script>

Expand Down
2 changes: 2 additions & 0 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,8 @@ var Reveal = (function(){
down: navigateDown,
prev: navigatePrev,
next: navigateNext,
prevFragment: previousFragment,
nextFragment: nextFragment,

// Deprecated aliases
navigateTo: slide,
Expand Down

0 comments on commit 40c899e

Please sign in to comment.