aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-10-17 00:20:42 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-10-17 00:20:42 -0400
commit3a2036e2b20fa13bc92f4fdecc0b17342c4f8204 (patch)
treec32245fa70e9cf8f75286214597bfd8d766347c2 /README.md
parentf70dcd3c9f26c09169d8f58443898661d9fea179 (diff)
downloadfreenode-live-2017-presentation-3a2036e2b20fa13bc92f4fdecc0b17342c4f8204.tar
freenode-live-2017-presentation-3a2036e2b20fa13bc92f4fdecc0b17342c4f8204.tar.gz
add 'ready' event (#182)
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 91c4e06..9a7007e 100644
--- a/README.md
+++ b/README.md
@@ -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.