aboutsummaryrefslogtreecommitdiff
path: root/demo.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-04-07 09:05:56 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-04-07 09:05:56 +0200
commit855cc82d7680bd9d2d99f1d8af9930087bac1326 (patch)
tree21e7783228d49676aa6192fe7ad3271dbea4cf77 /demo.html
parentf24620018f89fdd8b15be2907177361628baab12 (diff)
downloadfosdem-2021-minimalism-presentation-855cc82d7680bd9d2d99f1d8af9930087bac1326.tar
fosdem-2021-minimalism-presentation-855cc82d7680bd9d2d99f1d8af9930087bac1326.tar.gz
Reveal.add/remveEventListener -> Reveal.on/off
Diffstat (limited to 'demo.html')
-rw-r--r--demo.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo.html b/demo.html
index adaef1c..e5cb49c 100644
--- a/demo.html
+++ b/demo.html
@@ -374,7 +374,7 @@
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
</p>
<pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
-Reveal.addEventListener( 'customevent', function() {
+Reveal.on( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
</code></pre>