diff --git a/index.html b/index.html index 5346e34..0e30911 100644 --- a/index.html +++ b/index.html @@ -143,6 +143,18 @@ +
+

Custom Events

+

+ Additionally custom events can be triggered on a per slide basis by binding to the data-state name. +

+

+ document.addEventListener('customevent', function(){
+ alert('event has fired');
+ }); +

+
+

Clever Quotes

@@ -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,