From 40912ace1f3597adadb42a8b4a30b8721fc9b6df Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 16 Apr 2016 15:01:46 +0100 Subject: [PATCH] clarify getTotalSlides() returns the number of slides --- README.md | 2 +- js/reveal.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24b6002..280d6a6 100644 --- a/README.md +++ b/README.md @@ -497,7 +497,7 @@ Reveal.getCurrentSlide(); Reveal.getIndices(); // { h: 0, v: 0 } } Reveal.getPastSlideCount(); Reveal.getProgress(); // (0 == first slide, 1 == last slide) -Reveal.getTotalSlides(); +Reveal.getTotalSlides(); // total number of slides // Returns the speaker notes for the current slide Reveal.getSlideNotes(); diff --git a/js/reveal.js b/js/reveal.js index 9453f97..2856f00 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -4984,6 +4984,7 @@ // Returns the indices of the current, or specified, slide getIndices: getIndices, + // Returns the total number of slides getTotalSlides: getTotalSlides, // Returns the slide element at the specified index