diff --git a/test/examples/assets/beeping.txt b/examples/assets/beeping.txt similarity index 100% rename from test/examples/assets/beeping.txt rename to examples/assets/beeping.txt diff --git a/test/examples/assets/beeping.wav b/examples/assets/beeping.wav similarity index 100% rename from test/examples/assets/beeping.wav rename to examples/assets/beeping.wav diff --git a/test/examples/assets/image1.png b/examples/assets/image1.png similarity index 100% rename from test/examples/assets/image1.png rename to examples/assets/image1.png diff --git a/test/examples/assets/image2.png b/examples/assets/image2.png similarity index 100% rename from test/examples/assets/image2.png rename to examples/assets/image2.png diff --git a/test/examples/auto-animate.html b/examples/auto-animate.html similarity index 95% rename from test/examples/auto-animate.html rename to examples/auto-animate.html index 066536fb1a29fe731efca0af96977398d593fd9f..0ebf3cc01a0b1ad84eac3dd85a432cb3cfee9635 100644 --- a/test/examples/auto-animate.html +++ b/examples/auto-animate.html @@ -8,9 +8,9 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="../../dist/reveal.css"> - <link rel="stylesheet" href="../../dist/theme/black.css" id="theme"> - <link rel="stylesheet" href="../../lib/css/monokai.css"> + <link rel="stylesheet" href="../dist/reveal.css"> + <link rel="stylesheet" href="../dist/theme/black.css" id="theme"> + <link rel="stylesheet" href="../lib/css/monokai.css"> </head> <body> @@ -162,15 +162,12 @@ </div> - <script src="../../dist/reveal.min.js"></script> + <script src="../dist/reveal.min.js"></script> + <script src="../dist/plugin/highlight.js"></script> <script> Reveal.initialize({ center: true, - hash: true, - - dependencies: [ - { src: '../../dist/plugin/highlight.js', async: true } - ] + hash: true }); </script> diff --git a/test/examples/barebones.html b/examples/barebones.html similarity index 84% rename from test/examples/barebones.html rename to examples/barebones.html index f4e9da00070bf04a70ecc05109b331c96b8c5952..28a4ea02394507e644152c5b7345eda61f131150 100644 --- a/test/examples/barebones.html +++ b/examples/barebones.html @@ -6,7 +6,7 @@ <title>reveal.js - Barebones</title> - <link rel="stylesheet" href="../../dist/reveal.css"> + <link rel="stylesheet" href="../dist/reveal.css"> </head> <body> @@ -29,7 +29,7 @@ </div> - <script src="../../dist/reveal.min.js"></script> + <script src="../dist/reveal.min.js"></script> <script> Reveal.initialize(); </script> diff --git a/test/examples/math.html b/examples/math.html similarity index 95% rename from test/examples/math.html rename to examples/math.html index bba4ab1622a5c5ed151b6580ac2761c71d01bfe8..643bb6f7bb7b78562f8984b4d0173148d8b85a43 100644 --- a/test/examples/math.html +++ b/examples/math.html @@ -8,8 +8,8 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="../../dist/reveal.css"> - <link rel="stylesheet" href="../../dist/theme/night.css" id="theme"> + <link rel="stylesheet" href="../dist/reveal.css"> + <link rel="stylesheet" href="../dist/theme/night.css" id="theme"> </head> <body> @@ -175,7 +175,7 @@ </div> - <script src="../../dist/reveal.min.js"></script> + <script src="../dist/reveal.min.js"></script> <script> Reveal.initialize({ history: true, @@ -193,7 +193,7 @@ }, dependencies: [ - { src: '../../dist/plugin/math.js', async: true } + { src: '../dist/plugin/math.js', async: true } ] }); </script> diff --git a/examples/media.html b/examples/media.html new file mode 100644 index 0000000000000000000000000000000000000000..8a982bcb3e8e8ce2bf44ee2b99b82b0e2964f9c8 --- /dev/null +++ b/examples/media.html @@ -0,0 +1,56 @@ +<!doctype html> +<html lang="en"> + + <head> + <meta charset="utf-8"> + + <title>reveal.js - Video, Audio and Iframes</title> + + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + + <link rel="stylesheet" href="../dist/reveal.css"> + <link rel="stylesheet" href="../dist/theme/white.css" id="theme"> + </head> + + <body> + + <div class="reveal"> + + <div class="slides"> + + <section> + <h2>Examples of embedded Video, Audio and Iframes</h2> + </section> + + <section> + <h2>Iframe</h2> + <iframe data-autoplay width="700" height="540" src="https://slides.com/news/auto-animate/embed" frameborder="0"></iframe> + </section> + + <section data-background-iframe="https://www.youtube.com/embed/h1_nyI3z8gI" data-background-interactive> + <h2 style="color: #fff;">Iframe Background</h2> + </section> + + <section> + <h2>Auto-playing audio</h2> + <audio src="assets/beeping.wav" data-autoplay></audio> + </section> + + <section> + <h2>Audio with controls</h2> + <audio src="assets/beeping.wav" controls></audio> + </section> + + </div> + + </div> + + <script src="../dist/reveal.min.js"></script> + <script> + Reveal.initialize({ + transition: 'linear' + }); + </script> + + </body> +</html> diff --git a/examples/multiple-instances.html b/examples/multiple-instances.html new file mode 100644 index 0000000000000000000000000000000000000000..9cf535a95923a9df68bd503bd8090d24e3e5571e --- /dev/null +++ b/examples/multiple-instances.html @@ -0,0 +1,53 @@ +<!doctype html> +<html lang="en"> + + <head> + <meta charset="utf-8"> + + <title>reveal.js - Multiple Instances</title> + + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + + <link rel="stylesheet" href="../dist/reveal.css"> + <link rel="stylesheet" href="../dist/theme/white.css" id="theme"> + </head> + + <body style="background: #ddd;"> + + <div style="display: flex; flex-direction: row;"> + <div class="reveal deck1" style="width: 100%; height: 50vh; margin: 10px;"> + <div class="slides"> + <section>Deck 1, Slide 1</section> + <section>Deck 1, Slide 2</section> + </div> + </div> + + <div class="reveal deck2" style="width: 100%; height: 50vh; margin: 10px;"> + <div class="slides"> + <section>Deck 2, Slide 1</section> + <section>Deck 2, Slide 2</section> + </div> + </div> + </div> + + <script src="../dist/reveal.min.js"></script> + <script> + + let r1 = new Reveal( document.querySelector( '.deck1' ), { + embedded: true, + keyboard: false + } ); + r1.initialize(); + + let r2 = new Reveal( document.querySelector( '.deck2' ), { + embedded: true, + keyboard: false + } ); + r2.initialize().then( () => { + r2.slide(1); + } ); + + </script> + + </body> +</html> diff --git a/test/examples/slide-backgrounds.html b/examples/slide-backgrounds.html similarity index 95% rename from test/examples/slide-backgrounds.html rename to examples/slide-backgrounds.html index 0add50e4c726c1fb1f5735105623f619f0124429..81075c8badd0e2ef5b60f1902aa7c28a4b32feb8 100644 --- a/test/examples/slide-backgrounds.html +++ b/examples/slide-backgrounds.html @@ -8,8 +8,8 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="../../dist/reveal.css"> - <link rel="stylesheet" href="../../dist/theme/serif.css" id="theme"> + <link rel="stylesheet" href="../dist/reveal.css"> + <link rel="stylesheet" href="../dist/theme/serif.css" id="theme"> <style type="text/css" media="screen"> .slides section.has-dark-background, .slides section.has-dark-background h2 { @@ -122,7 +122,7 @@ </div> - <script src="../../dist/reveal.min.js"></script> + <script src="../dist/reveal.min.js"></script> <script> // Full list of configuration options available here: diff --git a/test/examples/slide-transitions.html b/examples/slide-transitions.html similarity index 90% rename from test/examples/slide-transitions.html rename to examples/slide-transitions.html index 252b88541c7d1adc26c24b4ea8a539a89116f5e8..8f928a6a82c218901979a2d213cb513f7a5c0755 100644 --- a/test/examples/slide-transitions.html +++ b/examples/slide-transitions.html @@ -6,8 +6,8 @@ <title>reveal.js - Slide Transitions</title> - <link rel="stylesheet" href="../../dist/reveal.css"> - <link rel="stylesheet" href="../../dist/theme/white.css" id="theme"> + <link rel="stylesheet" href="../dist/reveal.css"> + <link rel="stylesheet" href="../dist/theme/white.css" id="theme"> <style type="text/css" media="screen"> .slides section.has-dark-background, .slides section.has-dark-background h3 { @@ -81,7 +81,7 @@ </div> - <script src="../../dist/reveal.min.js"></script> + <script src="../dist/reveal.min.js"></script> <script> Reveal.initialize({ center: true, diff --git a/test/examples/embedded-media.html b/test/examples/embedded-media.html deleted file mode 100644 index 3c55c0effd87915a19af7cd0ea2d7f9beb901231..0000000000000000000000000000000000000000 --- a/test/examples/embedded-media.html +++ /dev/null @@ -1,50 +0,0 @@ -<!doctype html> -<html lang="en"> - - <head> - <meta charset="utf-8"> - - <title>reveal.js - Embedded Media</title> - - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - - <link rel="stylesheet" href="../../dist/reveal.css"> - <link rel="stylesheet" href="../../dist/theme/white.css" id="theme"> - </head> - - <body> - - <div class="reveal"> - - <div class="slides"> - - <section> - <h2>Embedded Media Test</h2> - </section> - - <section> - <iframe data-autoplay width="420" height="345" src="http://www.youtube.com/embed/l3RQZ4mcr1c"></iframe> - </section> - - <section> - <h2>Empty Slide</h2> - </section> - - <section> - <h2>Auto-playing audio</h2> - <audio src="assets/beeping.wav" data-autoplay></audio> - </section> - - </div> - - </div> - - <script src="../../dist/reveal.min.js"></script> - <script> - Reveal.initialize({ - transition: 'linear' - }); - </script> - - </body> -</html> diff --git a/test/examples/multiple-instances.html b/test/examples/multiple-instances.html deleted file mode 100644 index a3c27b5a54abcde373a2799f5508a57d3c79224a..0000000000000000000000000000000000000000 --- a/test/examples/multiple-instances.html +++ /dev/null @@ -1,66 +0,0 @@ -<!doctype html> -<html lang="en"> - - <head> - <meta charset="utf-8"> - - <title>reveal.js - Multiple Instances</title> - - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - - <link rel="stylesheet" href="../../dist/reveal.css"> - <link rel="stylesheet" href="../../dist/theme/white.css" id="theme"> - </head> - - <body style="background: #ddd;"> - - <div style="display: flex; flex-direction: row;"> - <div class="reveal deck1" style="width: 100%; height: 50vh; margin: 10px;"> - <div class="slides"> - <section data-markdown> - <script type="text/template"> - ## Slide attributes - </script> - </section> - <section>1.2</section> - <section>1.3</section> - </div> - </div> - - <div class="reveal deck2" style="width: 100%; height: 50vh; margin: 10px;"> - <div class="slides"> - <section data-markdown> - <script type="text/template"> - ## Slide attributes - </script> - </section> - <section>2.2</section> - <section>2.3</section> - </div> - </div> - </div> - - <script type="module"> - - import Reveal from '../../js/reveal.js'; - import Markdown from '../../plugin/markdown/markdown.js'; - - let r1 = new Reveal( document.querySelector( '.deck1' ), { - embedded: true, - keyboard: false - } ); - r1.initialize().then( () => { - - let r2 = new Reveal( document.querySelector( '.deck2' ), { - embedded: true, - keyboard: false, - dependencies: [ Markdown ] - } ); - r2.initialize(); - - } ); - - </script> - - </body> -</html>