aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-07-01 08:44:27 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-07-01 08:44:27 +0200
commit6447b59ac51c3f399ae061ecb4e9275fc165f967 (patch)
tree9129fdd9e0b68cb8f30f8f64debb3cab24e17f80
parent541bcf212314e368bffa815401497bb94d2acf0e (diff)
downloadfosdem-2018-presentation-6447b59ac51c3f399ae061ecb4e9275fc165f967.tar
fosdem-2018-presentation-6447b59ac51c3f399ae061ecb4e9275fc165f967.tar.gz
ready flag on .reveal container
-rw-r--r--README.md1
-rw-r--r--js/reveal.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index fa6ec0e..cb72f23 100644
--- a/README.md
+++ b/README.md
@@ -348,6 +348,7 @@ Reveal.addEventListener( 'ready', function( event ) {
} );
```
+Note that we also add a `.ready` class to the `.reveal` element so that you can hook into this with CSS.
### Auto-sliding
diff --git a/js/reveal.js b/js/reveal.js
index 3f003d9..c37566a 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -454,6 +454,8 @@
loaded = true;
+ dom.wrapper.classList.add( 'ready' );
+
dispatchEvent( 'ready', {
'indexh': indexh,
'indexv': indexv,