216135e004
This will be the recommended way to add custom CSS and JS on a per-presentation basis. Global layout extensions remain the same.
9 lines
497 B
HTML
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>
|