diff options
author | Hakim El Hattab | 2012-10-17 00:20:42 -0400 |
---|---|---|
committer | Hakim El Hattab | 2012-10-17 00:20:42 -0400 |
commit | 3a2036e2b20fa13bc92f4fdecc0b17342c4f8204 (patch) | |
tree | c32245fa70e9cf8f75286214597bfd8d766347c2 /README.md | |
parent | f70dcd3c9f26c09169d8f58443898661d9fea179 (diff) |
add 'ready' event (#182)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -154,6 +154,16 @@ Reveal.addEventListener( 'somestate', function() { }, false ); ``` +### Ready event + +The 'ready' event is fired when reveal.js has loaded all (synchronous) dependencies and is ready to start navigating. + +```javascript +Reveal.addEventListener( 'ready', function( event ) { + // event.currentSlide, event.indexh, event.indexv +} ); +``` + ### Slide change event An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index values of the current slide as well as a reference to the previous and current slide HTML nodes. |