diff options
author | hakimel <hakim.elhattab@gmail.com> | 2012-08-03 22:41:31 -0400 |
---|---|---|
committer | hakimel <hakim.elhattab@gmail.com> | 2012-08-03 22:41:31 -0400 |
commit | 2c3a494eaa4140a2964465848c8483deafc4e86e (patch) | |
tree | a9cdc631fda39556b8f197a0b6d6389557ef6163 /index.html | |
parent | 75546e89620d6b77040653037385466dbcb3f445 (diff) | |
download | fosdem-2018-presentation-2c3a494eaa4140a2964465848c8483deafc4e86e.tar fosdem-2018-presentation-2c3a494eaa4140a2964465848c8483deafc4e86e.tar.gz |
disable 3d links in ie, reorder script loading in index for readability (closes #95)
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 61 |
1 files changed, 32 insertions, 29 deletions
@@ -278,12 +278,42 @@ function linkify( selector ) { <script src="lib/js/head.min.js"></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 var scripts = []; // If the browser doesn't support classList, load a polyfill 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 @@ -302,35 +332,8 @@ function linkify( selector ) { scripts.push( 'js/reveal.js' ); // Load the scripts and, when completed, initialize reveal.js - head.js.apply( null, scripts.concat([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) - }); - - }])); + head.js.apply( null, scripts ); - // Load highlight.js for syntax highlighting of code samples - head.js( 'lib/js/highlight.js', function() { - hljs.initHighlightingOnLoad(); - } ); </script> </body> |