multiple-instances.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Multiple Instances</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  7. <link rel="stylesheet" href="../../dist/reveal.css">
  8. <link rel="stylesheet" href="../../dist/theme/white.css" id="theme">
  9. </head>
  10. <body style="background: #ddd;">
  11. <div style="display: flex; flex-direction: row;">
  12. <div class="reveal deck1" style="width: 100%; height: 50vh; margin: 10px;">
  13. <div class="slides">
  14. <section>1.1</section>
  15. <section>1.2</section>
  16. <section>1.3</section>
  17. </div>
  18. </div>
  19. <div class="reveal deck2" style="width: 100%; height: 50vh; margin: 10px;">
  20. <div class="slides">
  21. <section>2.1</section>
  22. <section>2.2</section>
  23. <section>2.3</section>
  24. </div>
  25. </div>
  26. </div>
  27. <script src="../../dist/reveal.min.js"></script>
  28. <script>
  29. let r1 = new Reveal( document.querySelector( '.deck1' ), {
  30. embedded: true
  31. } );
  32. r1.initialize();
  33. let r2 = new Reveal( document.querySelector( '.deck2' ), {
  34. embedded: true
  35. } );
  36. r2.initialize();
  37. </script>
  38. </body>
  39. </html>