+ 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');
+ });
+
@@ -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,