From d75afd6108aa8cfe1a471d5a832d84b1e10fc601 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 16 Apr 2016 14:02:21 +0100 Subject: [PATCH] expose getPastSlideCount() via public API This can be used by plugins which are concerned with helping the presenter with their pace. --- README.md | 1 + js/reveal.js | 3 +++ 2 files changed, 4 insertions(+) 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,