diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-26 22:54:36 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-26 22:54:36 -0400 |
commit | e570265a67461cfc110208cbe8562ad937794da8 (patch) | |
tree | fdd2b7da8b1777c6d39c0b8afbc780895f64d7aa /README.md | |
parent | 1916d2f64adcf3a02ddeee06206b5e586167d0fa (diff) | |
download | fosdem-2018-presentation-e570265a67461cfc110208cbe8562ad937794da8.tar fosdem-2018-presentation-e570265a67461cfc110208cbe8562ad937794da8.tar.gz |
adds new api methods (getCurrentSlide, getPreviousSlide, getIndices) closes #73
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -65,9 +65,10 @@ Reveal.initialize({ ### API -The Reveal class provides a minimal JavaScript API for controlling its navigation: +The Reveal class provides a minimal JavaScript API for controlling navigation and reading state: ```javascript +// Navigation Reveal.navigateTo( indexh, indexv ); Reveal.navigateLeft(); Reveal.navigateRight(); @@ -76,6 +77,12 @@ Reveal.navigateDown(); Reveal.navigatePrev(); Reveal.navigateNext(); Reveal.toggleOverview(); + +// Retrieves the previous and current slide elements +Reveal.getPreviousSlide(); +Reveal.getCurrentSlide(); + +Reveal.getIndices(); // { h: 0, v: 0 } } ``` ### States @@ -172,7 +179,9 @@ You can change the appearance of the speaker notes by editing the file at `plugi ## History #### 1.5 (master/beta) -- TBD +- New API method ```Reveal.getPreviousSlide()``` +- New API method ```Reveal.getCurrentSlide()``` +- New API method ```Reveal.getIndices()``` #### 1.4 - Main ```#reveal container``` is now selected via a class instead of ID |