aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-03-30 23:51:37 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-03-30 23:51:37 -0400
commit8dc7ae85a1794f35d56caa943e1e384a45c478dd (patch)
treecd9f02dc58bb85ed7436f061460928c264bd0f73 /index.html
parent2c78eea0ca9496d5eb0e72d92b49aef8b220ef1d (diff)
downloadfreenode-live-2017-presentation-8dc7ae85a1794f35d56caa943e1e384a45c478dd.tar
freenode-live-2017-presentation-8dc7ae85a1794f35d56caa943e1e384a45c478dd.tar.gz
adjustments to custom state events
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.html b/index.html
index 906376d..327236c 100644
--- a/index.html
+++ b/index.html
@@ -114,7 +114,7 @@
</ol>
</section>
- <section data-state="blur">
+ <section data-state="blurred">
<h2>Global State</h2>
<p>
If you set <code>data-state="something"</code> on a slide, <code>"something"</code>
@@ -253,6 +253,12 @@
transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
});
+ // Example of binding an event to a state. This listener will trigger
+ // when the slide with 'data-state="blurred"' is opened.
+ document.querySelector( '#reveal' ).addEventListener( 'blurred', function() {
+
+ }, false );
+
hljs.initHighlightingOnLoad();
</script>