From f26fc20b550a3ae67138845c09f07ffc93193092 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 6 Apr 2020 11:22:54 +0200 Subject: [PATCH] test and examples for multiple reveal.js instances on one page --- dist/reveal.css | 2 +- gulpfile.js | 2 + test/examples/embedded-media.html | 2 +- test/examples/multiple-instances.html | 52 ++++++++++++++++++++ test/test-multiple-instances.html | 71 +++++++++++++++++++++++++++ 5 files changed, 127 insertions(+), 2 deletions(-) create mode 100644 test/examples/multiple-instances.html create mode 100644 test/test-multiple-instances.html diff --git a/dist/reveal.css b/dist/reveal.css index 323abee6..3de8365b 100644 --- a/dist/reveal.css +++ b/dist/reveal.css @@ -1,5 +1,5 @@ /*! -* reveal.js 4.0.0-dev (Wed Mar 18 2020) +* reveal.js 4.0.0-dev (Mon Apr 06 2020) * https://revealjs.com * MIT licensed * diff --git a/gulpfile.js b/gulpfile.js index ac1429dd..04b9ebe0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -149,6 +149,8 @@ gulp.task('serve', () => { gulp.watch(['js/**'], gulp.series('js', 'test')) + gulp.watch(['test/*.html'], gulp.series('test')) + gulp.watch([ 'css/theme/source/*.{sass,scss}', 'css/theme/template/*.{sass,scss}', diff --git a/test/examples/embedded-media.html b/test/examples/embedded-media.html index 9ef35b86..f83405ff 100644 --- a/test/examples/embedded-media.html +++ b/test/examples/embedded-media.html @@ -9,7 +9,7 @@ - + diff --git a/test/examples/multiple-instances.html b/test/examples/multiple-instances.html new file mode 100644 index 00000000..4a5e69aa --- /dev/null +++ b/test/examples/multiple-instances.html @@ -0,0 +1,52 @@ + + + + + + + reveal.js - Multiple Instances + + + + + + + + + +
+
+
+
+
1.1
+
1.2
+
1.3
+
+
+
+ +
+
+
+
2.1
+
2.2
+
2.3
+
+
+
+
+ + + + + + + diff --git a/test/test-multiple-instances.html b/test/test-multiple-instances.html new file mode 100644 index 00000000..49ff1da1 --- /dev/null +++ b/test/test-multiple-instances.html @@ -0,0 +1,71 @@ + + + + + + + reveal.js - Test Iframes + + + + + + + + +
+
+ +
+ +
+ +
+ +
+ + + + + +