Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

test-pdf.html 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. QUnit.config.testTimeout = 30000;
  63. QUnit.config.autostart = false;
  64. Reveal.initialize({ pdf: true }).then( function() {
  65. QUnit.start();
  66. // Only one test for now, we're mainly ensuring that there
  67. // are no execution errors when running PDF mode
  68. QUnit.test( 'Reveal.isReady', function( assert ) {
  69. assert.strictEqual( Reveal.isReady(), true, 'returns true' );
  70. });
  71. } );
  72. </script>
  73. </body>
  74. </html>