index-markdown.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - The HTML Presentation Framework</title>
  6. <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
  7. <meta name="author" content="Hakim El Hattab">
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  10. <link rel="stylesheet" href="css/reveal.css">
  11. <link rel="stylesheet" href="css/theme/default.css" id="theme">
  12. <!-- For syntax highlighting -->
  13. <link rel="stylesheet" href="lib/css/zenburn.css">
  14. <!-- If the query includes 'print-pdf', use the PDF print sheet -->
  15. <script>
  16. document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
  17. </script>
  18. <!--[if lt IE 9]>
  19. <script src="lib/js/html5shiv.js"></script>
  20. <![endif]-->
  21. </head>
  22. <body>
  23. <div class="reveal">
  24. <!-- Any section element inside of this container is displayed as a slide -->
  25. <div class="slides">
  26. <!-- Use external markdown resource, and separate slides by three newlines; vertical slides by two newlines -->
  27. <section data-markdown="demo.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section>
  28. <!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
  29. <section data-markdown data-separator="---">
  30. <script type="text/template">
  31. Slide 1
  32. ---
  33. Slide 2
  34. ---
  35. Slide 3
  36. </script>
  37. </section>
  38. <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
  39. <section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$">
  40. <script type="text/template">
  41. Slide 1.1
  42. --
  43. Slide 1.2
  44. ---
  45. Slide 2
  46. </script>
  47. </section>
  48. <!-- No "extra" slides, since there are no separators defined (so they'll become horizontal rulers) -->
  49. <section data-markdown>
  50. <script type="text/template">
  51. A
  52. ---
  53. B
  54. ---
  55. C
  56. </script>
  57. </section>
  58. </div>
  59. </div>
  60. <script src="lib/js/head.min.js"></script>
  61. <script src="js/reveal.js"></script>
  62. <script>
  63. // Full list of configuration options available here:
  64. // https://github.com/hakimel/reveal.js#configuration
  65. Reveal.initialize({
  66. controls: true,
  67. progress: true,
  68. history: true,
  69. center: true,
  70. theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
  71. transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
  72. // Optional libraries used to extend on reveal.js
  73. dependencies: [
  74. { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
  75. { src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  76. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  77. { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  78. { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
  79. { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
  80. // { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
  81. ]
  82. });
  83. </script>
  84. </body>
  85. </html>