Include speaker notes plugin after reveal.js
authorDavid Banham <david.banham@gmail.com>
Sat, 4 Aug 2012 04:33:27 +0000 (14:33 +1000)
committerDavid Banham <david.banham@gmail.com>
Sat, 4 Aug 2012 04:33:27 +0000 (14:33 +1000)
Must be called after reveal.js otherwise the Reveal object is undefined
and the plugin can't add it's event listener.

index.html

index 2899a10203ad2a10eb8ae3e06dea8b9fb2f8385a..c6decbfe912d0fb07f9b3c6ca80015daa79a8a5f 100644 (file)
@@ -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 );
                        
                </script>
 
        </body>
-</html>
\ No newline at end of file
+</html>