aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
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 /js/reveal.js
parentf70dcd3c9f26c09169d8f58443898661d9fea179 (diff)
downloadfosdem-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.js9
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
+ } );
}
/**