Jelajahi Sumber

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()
Michael Kühnel 12 tahun lalu
induk
melakukan
40c899ec56
3 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 2 0
      README.md
  2. 1 1
      index.html
  3. 2 0
      js/reveal.js

+ 2 - 0
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

+ 1 - 1
index.html

@@ -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>
 

+ 2 - 0
js/reveal.js

@@ -1316,6 +1316,8 @@ var Reveal = (function(){
 		down: navigateDown,
 		prev: navigatePrev,
 		next: navigateNext,
+		prevFragment: previousFragment,
+		nextFragment: nextFragment,
 
 		// Deprecated aliases
 		navigateTo: slide,