12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>reveal.js - Multiple Presentations</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">
- <link rel="stylesheet" href="../lib/css/monokai.css">
- </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>
- <section>
- <pre data-id="code-animation"><code class="hljs" data-trim data-line-numbers>
- import React, { useState } from 'react';
- function Example() {
- const [count, setCount] = useState(0);
- }
- </code></pre>
- </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>
- <section data-markdown>
- <script type="text/template">
- ## Markdown plugin
- - 1
- - 2
- - 3
- </script>
- </section>
- <section>
- <h3>The Lorenz Equations</h3>
- \[\begin{aligned}
- \dot{x} & = \sigma(y-x) \\
- \dot{y} & = \rho x - y - xz \\
- \dot{z} & = -\beta z + xy
- \end{aligned} \]
- </section>
- </div>
- </div>
- </div>
- <script src="../dist/reveal.es5.js"></script>
- <script src="../dist/plugin/highlight.js"></script>
- <script src="../dist/plugin/markdown.js"></script>
- <script src="../dist/plugin/math.js"></script>
- <script>
- let deck1 = new Reveal( document.querySelector( '.deck1' ), {
- embedded: true,
- keyboard: false,
- plugins: [ RevealHighlight ]
- } );
- deck1.on( 'slidechanged', () => {
- console.log( 'Deck 1 slide changed' );
- } );
- deck1.initialize();
- let deck2 = new Reveal( document.querySelector( '.deck2' ), {
- embedded: true,
- keyboard: true,
- plugins: [ RevealMarkdown, RevealMath ]
- } );
- deck2.initialize().then( () => {
- deck2.slide(1);
- } );
- deck2.on( 'slidechanged', () => {
- console.log( 'Deck 2 slide changed' );
- } );
- </script>
- </body>
- </html>
|