themen-hugo-35c3-reveal/exampleSite/layouts/partials/home/reveal-hugo/body.html
dzello 216135e004 Presentations can add their own HTML to the layout
This will be the recommended way to add custom CSS and JS on a per-presentation basis. Global layout extensions remain the same.
2018-08-13 17:41:06 +02:00

9 lines
497 B
HTML

<!-- This partial is included before the end of the body tag for only the 'example' presentation -->
<!-- A common use would be to add JavaScript to the page to customize interactions -->
<!-- The Reveal.js JavaScript API is located at https://github.com/hakimel/reveal.js/#api -->
<script type="text/javascript">
// Log the current slide to the console when it changes
Reveal.addEventListener('slidechanged', function(event) {
console.log("🎞️ Slide is now " + event.indexh);
});
</script>