mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-16 01:15:06 +01:00
add 'ready' event (#182)
This commit is contained in:
parent
f70dcd3c9f
commit
3a2036e2b2
3 changed files with 23 additions and 6 deletions
|
|
@ -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
|
||||
} );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue