Cherry picking from branch fix-fragments-in-speakernotes
authorMichael Kühnel <mail@michael-kuehnel.de>
Tue, 23 Oct 2012 19:56:56 +0000 (21:56 +0200)
committerMichael Kühnel <mail@michael-kuehnel.de>
Tue, 23 Oct 2012 19:56:56 +0000 (21:56 +0200)
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()

README.md
index.html
js/reveal.js

index a56b6e012419a6b64ed9b22e20f17633917295eb..a7527a553de320cecfd34040d3861125cfd1ab8c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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
index f785065b70976d2bf4a482c636b89f8995068aa8..18950bc942b6cce11ed913ff78b3ba12ea346118 100644 (file)
@@ -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>
 
index cb0205e589f2a7fd4307368792a21d465df91e94..749e71d6b4fdd4cc3801f5afdf23645e5d84fb0b 100644 (file)
@@ -1316,6 +1316,8 @@ var Reveal = (function(){
                down: navigateDown,
                prev: navigatePrev,
                next: navigateNext,
+               prevFragment: previousFragment,
+               nextFragment: nextFragment,
 
                // Deprecated aliases
                navigateTo: slide,