ソースを参照

update math example to use 4.0 plugin syntax

Hakim El Hattab 5 年 前
コミット
f014952673
1 ファイル変更2 行追加3 行削除
  1. 2 3
      examples/math.html

+ 2 - 3
examples/math.html

@@ -176,6 +176,7 @@
 		</div>
 
 		<script src="../dist/reveal.js"></script>
+		<script src="../plugin/math/math.js"></script>
 		<script>
 			Reveal.initialize({
 				history: true,
@@ -192,9 +193,7 @@
 					}
 				},
 
-				dependencies: [
-					{ src: '../plugin/math/math.js', async: true }
-				]
+				plugins: [ RevealMath ]
 			});
 		</script>