aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spiers <github@adamspiers.org>2016-04-16 14:02:21 +0100
committerAdam Spiers <github@adamspiers.org>2017-04-20 15:18:15 +0100
commitd75afd6108aa8cfe1a471d5a832d84b1e10fc601 (patch)
tree9f78936b2c28ba2b878b4259e731c905c15fedf7
parenteac37990e1c53f5c44737e6841540e55feab8b06 (diff)
downloadfreenode-live-2017-presentation-d75afd6108aa8cfe1a471d5a832d84b1e10fc601.tar
freenode-live-2017-presentation-d75afd6108aa8cfe1a471d5a832d84b1e10fc601.tar.gz
expose getPastSlideCount() via public API
This can be used by plugins which are concerned with helping the presenter with their pace.
-rw-r--r--README.md1
-rw-r--r--js/reveal.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 47a5f61..24b6002 100644
--- a/README.md
+++ b/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();
diff --git a/js/reveal.js b/js/reveal.js
index f19dcfc..9453f97 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -4975,6 +4975,9 @@
getState: getState,
setState: setState,
+ // Presentation progress
+ getSlidePastCount: getSlidePastCount,
+
// Presentation progress on range of 0-1
getProgress: getProgress,