소스 검색

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.
David Banham 12 년 전
부모
커밋
79299d0071
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      index.html

+ 3 - 3
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 );
 			
 		</script>
 
 	</body>
-</html>
+</html>