test-pdf.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Test PDF exports</title>
  6. <link rel="stylesheet" href="../dist/reveal.css">
  7. <link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
  8. <script src="../node_modules/qunit/qunit/qunit.js"></script>
  9. </head>
  10. <body style="overflow: auto;">
  11. <div id="qunit"></div>
  12. <div id="qunit-fixture"></div>
  13. <div class="reveal" style="display: none;">
  14. <div class="slides">
  15. <section>
  16. <h1>1</h1>
  17. <img data-src="">
  18. </section>
  19. <section>
  20. <section>
  21. <h1>2.1</h1>
  22. </section>
  23. <section>
  24. <h1>2.2</h1>
  25. </section>
  26. <section>
  27. <h1>2.3</h1>
  28. </section>
  29. </section>
  30. <section id="fragment-slides">
  31. <section>
  32. <h1>3.1</h1>
  33. <ul>
  34. <li class="fragment">4.1</li>
  35. <li class="fragment">4.2</li>
  36. <li class="fragment">4.3</li>
  37. </ul>
  38. </section>
  39. <section>
  40. <h1>3.2</h1>
  41. <ul>
  42. <li class="fragment" data-fragment-index="0">4.1</li>
  43. <li class="fragment" data-fragment-index="0">4.2</li>
  44. </ul>
  45. </section>
  46. <section>
  47. <h1>3.3</h1>
  48. <ul>
  49. <li class="fragment" data-fragment-index="1">3.3.1</li>
  50. <li class="fragment" data-fragment-index="4">3.3.2</li>
  51. <li class="fragment" data-fragment-index="4">3.3.3</li>
  52. </ul>
  53. </section>
  54. </section>
  55. <section>
  56. <h1>4</h1>
  57. </section>
  58. </div>
  59. </div>
  60. <script src="../dist/reveal.js"></script>
  61. <script>
  62. Reveal.initialize({ pdf: true }).then( function() {
  63. // Only one test for now, we're mainly ensuring that there
  64. // are no execution errors when running PDF mode
  65. QUnit.test( 'Reveal.isReady', function( assert ) {
  66. assert.strictEqual( Reveal.isReady(), true, 'returns true' );
  67. });
  68. } );
  69. </script>
  70. </body>
  71. </html>