|
@ -278,12 +278,42 @@ function linkify( selector ) { |
|
|
<script src="lib/js/head.min.js"></script> |
|
|
<script src="lib/js/head.min.js"></script> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
head.ready( function() { |
|
|
|
|
|
|
|
|
|
|
|
// Fires when a slide with data-state=customevent is activated |
|
|
|
|
|
Reveal.addEventListener( 'customevent', function() { |
|
|
|
|
|
console.log( '"customevent" has fired' ); |
|
|
|
|
|
} ); |
|
|
|
|
|
|
|
|
|
|
|
// Fires each time a new slide is activated |
|
|
|
|
|
Reveal.addEventListener( 'slidechanged', function( event ) { |
|
|
|
|
|
// event.previousSlide, event.currentSlide, event.indexh, event.indexv |
|
|
|
|
|
} ); |
|
|
|
|
|
|
|
|
|
|
|
// Full list of configuration options available here: |
|
|
|
|
|
// https://github.com/hakimel/reveal.js#configuration |
|
|
|
|
|
Reveal.initialize({ |
|
|
|
|
|
controls: true, |
|
|
|
|
|
progress: true, |
|
|
|
|
|
history: true, |
|
|
|
|
|
|
|
|
|
|
|
theme: Reveal.getQueryHash().theme || 'default', // default/neon/beige |
|
|
|
|
|
transition: Reveal.getQueryHash().transition || 'default' // default/cube/page/concave/linear(2d) |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Load highlight.js for syntax highlighting of code samples |
|
|
|
|
|
head.js( 'lib/js/highlight.js', function() { |
|
|
|
|
|
hljs.initHighlightingOnLoad(); |
|
|
|
|
|
} ); |
|
|
|
|
|
|
|
|
|
|
|
} ); |
|
|
|
|
|
|
|
|
// Scripts that should be loaded before initializing |
|
|
// Scripts that should be loaded before initializing |
|
|
var scripts = []; |
|
|
var scripts = []; |
|
|
|
|
|
|
|
|
// If the browser doesn't support classList, load a polyfill |
|
|
// If the browser doesn't support classList, load a polyfill |
|
|
if( !document.body.classList ) { |
|
|
if( !document.body.classList ) { |
|
|
scripts.push( 'lib/js/classList.js' ); |
|
|
head.js( 'lib/js/classList.js' ); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Load markdown parser if there are slides defined using markdown |
|
|
// Load markdown parser if there are slides defined using markdown |
|
@ -302,35 +332,8 @@ function linkify( selector ) { |
|
|
scripts.push( 'js/reveal.js' ); |
|
|
scripts.push( 'js/reveal.js' ); |
|
|
|
|
|
|
|
|
// Load the scripts and, when completed, initialize reveal.js |
|
|
// Load the scripts and, when completed, initialize reveal.js |
|
|
head.js.apply( null, scripts.concat([function() { |
|
|
head.js.apply( null, scripts ); |
|
|
|
|
|
|
|
|
// Fires when a slide with data-state=customevent is activated |
|
|
|
|
|
Reveal.addEventListener( 'customevent', function() { |
|
|
|
|
|
console.log( '"customevent" has fired' ); |
|
|
|
|
|
} ); |
|
|
|
|
|
|
|
|
|
|
|
// Fires each time a new slide is activated |
|
|
|
|
|
Reveal.addEventListener( 'slidechanged', function( event ) { |
|
|
|
|
|
// event.previousSlide, event.currentSlide, event.indexh, event.indexv |
|
|
|
|
|
} ); |
|
|
|
|
|
|
|
|
|
|
|
// Full list of configuration options available here: |
|
|
|
|
|
// https://github.com/hakimel/reveal.js#configuration |
|
|
|
|
|
Reveal.initialize({ |
|
|
|
|
|
controls: true, |
|
|
|
|
|
progress: true, |
|
|
|
|
|
history: true, |
|
|
|
|
|
|
|
|
|
|
|
theme: Reveal.getQueryHash().theme || 'default', // default/neon/beige |
|
|
|
|
|
transition: Reveal.getQueryHash().transition || 'default' // default/cube/page/concave/linear(2d) |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}])); |
|
|
|
|
|
|
|
|
|
|
|
// Load highlight.js for syntax highlighting of code samples |
|
|
|
|
|
head.js( 'lib/js/highlight.js', function() { |
|
|
|
|
|
hljs.initHighlightingOnLoad(); |
|
|
|
|
|
} ); |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |
|
|