Forked from hakimel/reveal-js-data-state-callback.html
Last active
August 29, 2015 14:06
-
-
Save netconstructor/c2f1dc84f4ac52b12810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="css/reveal.css"> | |
<link rel="stylesheet" href="css/theme/default.css" id="theme"> | |
</head> | |
<body> | |
<div class="reveal"> | |
<div class="slides"> | |
<section> | |
<h1>First</h1> | |
</section> | |
<section data-state="stats"> | |
<h1>Run stats()</h1> | |
</section> | |
<section> | |
<h1>Last</h1> | |
</section> | |
</div> | |
</div> | |
<script src="js/reveal.js"></script> | |
<script> | |
Reveal.initialize(); | |
Reveal.addEventListener( 'stats', function() { | |
console.log( 'stats called!' ); | |
} ); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment