diff options
author | Michael Kühnel | 2012-10-23 21:56:56 +0200 |
---|---|---|
committer | Michael Kühnel | 2012-10-23 21:56:56 +0200 |
commit | 40c899ec562093668a23925a66835e6c65392983 (patch) | |
tree | 5390819b38e43411ed9f6cf62111b34801473152 | |
parent | aefe981040ea8c5c7875d9da1ac860def44a19e8 (diff) |
Cherry picking from branch fix-fragments-in-speakernotes
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()
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | js/reveal.js | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -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 @@ -336,7 +336,7 @@ function linkify( selector ) { </div> <script src="lib/js/head.min.js"></script> - <script src="js/reveal.min.js"></script> + <script src="js/reveal.js"></script> <script> diff --git a/js/reveal.js b/js/reveal.js index cb0205e..749e71d 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1316,6 +1316,8 @@ var Reveal = (function(){ down: navigateDown, prev: navigatePrev, next: navigateNext, + prevFragment: previousFragment, + nextFragment: nextFragment, // Deprecated aliases navigateTo: slide, |