From 79299d00710e61c7b9cbd9bfda87168b958a836d Mon Sep 17 00:00:00 2001 From: David Banham Date: Sat, 4 Aug 2012 14:33:27 +1000 Subject: [PATCH] Include speaker notes plugin after reveal.js Must be called after reveal.js otherwise the Reveal object is undefined and the plugin can't add it's event listener. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 2899a102..c6decbfe 100644 --- a/index.html +++ b/index.html @@ -322,6 +322,8 @@ function linkify( selector ) { scripts.push( 'lib/js/data-markdown.js' ); } + scripts.push( 'js/reveal.js' ); + // If we're runnning the notes server we need to include some additional JS // TODO Is there a better way to determine if we're running the notes server? if( window.location.host === 'localhost:1947' ) { @@ -329,12 +331,10 @@ function linkify( selector ) { scripts.push( 'plugin/speakernotes/client.js' ); } - scripts.push( 'js/reveal.js' ); - // Load the scripts and, when completed, initialize reveal.js head.js.apply( null, scripts ); - \ No newline at end of file +