aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorhakimel <hakim.elhattab@gmail.com>2012-08-03 22:41:31 -0400
committerhakimel <hakim.elhattab@gmail.com>2012-08-03 22:41:31 -0400
commit2c3a494eaa4140a2964465848c8483deafc4e86e (patch)
treea9cdc631fda39556b8f197a0b6d6389557ef6163 /index.html
parent75546e89620d6b77040653037385466dbcb3f445 (diff)
downloadfreenode-live-2017-presentation-2c3a494eaa4140a2964465848c8483deafc4e86e.tar
freenode-live-2017-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.html61
1 files changed, 32 insertions, 29 deletions
diff --git a/index.html b/index.html
index 3b90c9d..2899a10 100644
--- a/index.html
+++ b/index.html
@@ -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>