add 'ready' event (#182)
This commit is contained in:
parent
f70dcd3c9f
commit
3a2036e2b2
3 changed files with 23 additions and 6 deletions
10
README.md
10
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue