diff --git a/README.md b/README.md index 47a5f614..24b60024 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 f19dcfce..9453f97f 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,