diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-10-17 00:20:42 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-10-17 00:20:42 -0400 |
commit | 3a2036e2b20fa13bc92f4fdecc0b17342c4f8204 (patch) | |
tree | c32245fa70e9cf8f75286214597bfd8d766347c2 /js/reveal.js | |
parent | f70dcd3c9f26c09169d8f58443898661d9fea179 (diff) | |
download | fosdem-2018-presentation-3a2036e2b20fa13bc92f4fdecc0b17342c4f8204.tar fosdem-2018-presentation-3a2036e2b20fa13bc92f4fdecc0b17342c4f8204.tar.gz |
add 'ready' event (#182)
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index c1ffb8f..e53195f 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.1 r33 + * reveal.js 2.1 r34 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -267,6 +267,13 @@ var Reveal = (function(){ // Start auto-sliding if it's enabled cueAutoSlide(); + + // Notify listeners that the presentation is ready + dispatchEvent( 'ready', { + 'indexh': indexh, + 'indexv': indexv, + 'currentSlide': currentSlide + } ); } /** |