index-markdown.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 newline + three dashes + newline (regular expression) -->
  29. <section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$">
  30. <script type="text/template">
  31. 1.1
  32. --
  33. 4.1
  34. ---
  35. 5.1
  36. </script>
  37. </section>
  38. <!-- No "extra" slides, since there are no separators defined -->
  39. <section data-markdown>
  40. <script type="text/template">
  41. 1.1
  42. ---
  43. 4.1
  44. ---
  45. 5.1
  46. </script>
  47. </section>
  48. </div>
  49. </div>
  50. <script src="lib/js/head.min.js"></script>
  51. <script src="js/reveal.js"></script>
  52. <script>
  53. // Full list of configuration options available here:
  54. // https://github.com/hakimel/reveal.js#configuration
  55. Reveal.initialize({
  56. controls: true,
  57. progress: true,
  58. history: true,
  59. center: true,
  60. theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
  61. transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
  62. // Optional libraries used to extend on reveal.js
  63. dependencies: [
  64. { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
  65. { src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  66. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  67. { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  68. { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
  69. { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
  70. // { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
  71. ]
  72. });
  73. </script>
  74. </body>
  75. </html>