diff options
author | andy matthews <andy@commadelimited.com> | 2012-04-30 09:07:23 -0500 |
---|---|---|
committer | andy matthews <andy@commadelimited.com> | 2012-04-30 09:07:23 -0500 |
commit | 2caac75c62861ce2c68d2c0f2341836b2ff1aef9 (patch) | |
tree | de601df831f0525ae3cbbb3a2dde99d1ba1b235e | |
parent | 0acae19d1913a2616087ad4eb225264a35fb3903 (diff) | |
download | perl-software-in-gnu-guix-2caac75c62861ce2c68d2c0f2341836b2ff1aef9.tar perl-software-in-gnu-guix-2caac75c62861ce2c68d2c0f2341836b2ff1aef9.tar.gz |
Adding example for custom event binding.
-rw-r--r-- | index.html | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -143,6 +143,18 @@ </section> </section> + <section data-state="customevent"> + <h2>Custom Events</h2> + <p> + Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name. + </p> + <p><code style="font-size: 27px;"> + document.addEventListener('customevent', function(){<br /> + alert('event has fired');<br /> + }); + </code></p> + </section> + <section> <h2>Clever Quotes</h2> <p> @@ -250,6 +262,10 @@ query[ a.split( '=' ).shift() ] = a.split( '=' ).pop(); } ); + document.addEventListener('customevent', function(){ + alert('event has fired'); + }); + Reveal.initialize({ // Display controls in the bottom right corner controls: true, |