Ver Fonte

expose getPastSlideCount() via public API

This can be used by plugins which are concerned with helping the
presenter with their pace.
Adam Spiers há 10 anos atrás
pai
commit
d75afd6108
2 ficheiros alterados com 4 adições e 0 exclusões
  1. 1 0
      README.md
  2. 3 0
      js/reveal.js

+ 1 - 0
README.md

@@ -495,6 +495,7 @@ Reveal.getPreviousSlide();
 Reveal.getCurrentSlide();
 
 Reveal.getIndices(); // { h: 0, v: 0 } }
+Reveal.getPastSlideCount();
 Reveal.getProgress(); // (0 == first slide, 1 == last slide)
 Reveal.getTotalSlides();
 

+ 3 - 0
js/reveal.js

@@ -4975,6 +4975,9 @@
 		getState: getState,
 		setState: setState,
 
+		// Presentation progress
+		getSlidePastCount: getSlidePastCount,
+
 		// Presentation progress on range of 0-1
 		getProgress: getProgress,