demo.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  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. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="stylesheet" href="css/reset.css">
  12. <link rel="stylesheet" href="css/reveal.css">
  13. <link rel="stylesheet" href="css/theme/black.css" id="theme">
  14. <!-- Theme used for syntax highlighting of code -->
  15. <link rel="stylesheet" href="lib/css/zenburn.css">
  16. <!-- Printing and PDF exports -->
  17. <script>
  18. var link = document.createElement( 'link' );
  19. link.rel = 'stylesheet';
  20. link.type = 'text/css';
  21. link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
  22. document.getElementsByTagName( 'head' )[0].appendChild( link );
  23. </script>
  24. <!--[if lt IE 9]>
  25. <script src="lib/js/html5shiv.js"></script>
  26. <![endif]-->
  27. </head>
  28. <body>
  29. <div class="reveal">
  30. <!-- Any section element inside of this container is displayed as a slide -->
  31. <div class="slides">
  32. <section>
  33. <h1>Reveal.js</h1>
  34. <h3>The HTML Presentation Framework</h3>
  35. <p>
  36. <small>Created by <a href="http://hakim.se">Hakim El Hattab</a> and <a href="https://github.com/hakimel/reveal.js/graphs/contributors">contributors</a></small>
  37. </p>
  38. </section>
  39. <section>
  40. <h2>Hello There</h2>
  41. <p>
  42. reveal.js enables you to create beautiful interactive slide decks using HTML. This presentation will show you examples of what it can do.
  43. </p>
  44. </section>
  45. <!-- Example of nested vertical slides -->
  46. <section>
  47. <section>
  48. <h2>Vertical Slides</h2>
  49. <p>Slides can be nested inside of each other.</p>
  50. <p>Use the <em>Space</em> key to navigate through all slides.</p>
  51. <br>
  52. <a href="#" class="navigate-down">
  53. <img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  54. </a>
  55. </section>
  56. <section>
  57. <h2>Basement Level 1</h2>
  58. <p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
  59. </section>
  60. <section>
  61. <h2>Basement Level 2</h2>
  62. <p>That's it, time to go back up.</p>
  63. <br>
  64. <a href="#/2">
  65. <img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="transform: rotate(180deg); -webkit-transform: rotate(180deg);">
  66. </a>
  67. </section>
  68. </section>
  69. <section>
  70. <h2>Slides</h2>
  71. <p>
  72. Not a coder? Not a problem. There's a fully-featured visual editor for authoring these, try it out at <a href="https://slides.com" target="_blank">https://slides.com</a>.
  73. </p>
  74. </section>
  75. <section>
  76. <h2>Point of View</h2>
  77. <p>
  78. Press <strong>ESC</strong> to enter the slide overview.
  79. </p>
  80. <p>
  81. Hold down the <strong>alt</strong> key (<strong>ctrl</strong> in Linux) and click on any element to zoom towards it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Click again to zoom back out.
  82. </p>
  83. <p>
  84. (NOTE: Use ctrl + click in Linux.)
  85. </p>
  86. </section>
  87. <section>
  88. <h2>Touch Optimized</h2>
  89. <p>
  90. Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
  91. </p>
  92. </section>
  93. <section data-markdown>
  94. <script type="text/template">
  95. ## Markdown support
  96. Write content using inline or external Markdown.
  97. Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
  98. ```
  99. <section data-markdown>
  100. ## Markdown support
  101. Write content using inline or external Markdown.
  102. Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
  103. </section>
  104. ```
  105. </script>
  106. </section>
  107. <section>
  108. <section id="fragments">
  109. <h2>Fragments</h2>
  110. <p>Hit the next arrow...</p>
  111. <p class="fragment">... to step through ...</p>
  112. <p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
  113. <aside class="notes">
  114. This slide has fragments which are also stepped through in the notes window.
  115. </aside>
  116. </section>
  117. <section>
  118. <h2>Fragment Styles</h2>
  119. <p>There's different types of fragments, like:</p>
  120. <p class="fragment grow">grow</p>
  121. <p class="fragment shrink">shrink</p>
  122. <p class="fragment fade-out">fade-out</p>
  123. <p>
  124. <span style="display: inline-block;" class="fragment fade-right">fade-right, </span>
  125. <span style="display: inline-block;" class="fragment fade-up">up, </span>
  126. <span style="display: inline-block;" class="fragment fade-down">down, </span>
  127. <span style="display: inline-block;" class="fragment fade-left">left</span>
  128. </p>
  129. <p class="fragment fade-in-then-out">fade-in-then-out</p>
  130. <p class="fragment fade-in-then-semi-out">fade-in-then-semi-out</p>
  131. <p>Highlight <span class="fragment highlight-red">red</span> <span class="fragment highlight-blue">blue</span> <span class="fragment highlight-green">green</span></p>
  132. </section>
  133. </section>
  134. <section id="transitions">
  135. <h2>Transition Styles</h2>
  136. <p>
  137. You can select from different transitions, like: <br>
  138. <a href="?transition=none#/transitions">None</a> -
  139. <a href="?transition=fade#/transitions">Fade</a> -
  140. <a href="?transition=slide#/transitions">Slide</a> -
  141. <a href="?transition=convex#/transitions">Convex</a> -
  142. <a href="?transition=concave#/transitions">Concave</a> -
  143. <a href="?transition=zoom#/transitions">Zoom</a>
  144. </p>
  145. </section>
  146. <section id="themes">
  147. <h2>Themes</h2>
  148. <p>
  149. reveal.js comes with a few themes built in: <br>
  150. <!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
  151. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/black.css'); return false;">Black (default)</a> -
  152. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;">White</a> -
  153. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;">League</a> -
  154. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;">Sky</a> -
  155. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;">Beige</a> -
  156. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;">Simple</a> <br>
  157. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;">Serif</a> -
  158. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/blood.css'); return false;">Blood</a> -
  159. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;">Night</a> -
  160. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;">Moon</a> -
  161. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;">Solarized</a>
  162. </p>
  163. </section>
  164. <section>
  165. <section data-background="#dddddd">
  166. <h2>Slide Backgrounds</h2>
  167. <p>
  168. Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
  169. </p>
  170. <a href="#" class="navigate-down">
  171. <img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  172. </a>
  173. </section>
  174. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png">
  175. <h2>Image Backgrounds</h2>
  176. <pre><code class="hljs">&lt;section data-background="image.png"&gt;</code></pre>
  177. </section>
  178. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
  179. <h2>Tiled Backgrounds</h2>
  180. <pre><code class="hljs" style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
  181. </section>
  182. <section data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm" data-background-color="#000000">
  183. <div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
  184. <h2>Video Backgrounds</h2>
  185. <pre><code class="hljs" style="word-wrap: break-word;">&lt;section data-background-video="video.mp4,video.webm"&gt;</code></pre>
  186. </div>
  187. </section>
  188. <section data-background="http://i.giphy.com/90F8aUepslB84.gif">
  189. <h2>... and GIFs!</h2>
  190. </section>
  191. </section>
  192. <section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
  193. <h2>Background Transitions</h2>
  194. <p>
  195. Different background transitions are available via the backgroundTransition option. This one's called "zoom".
  196. </p>
  197. <pre><code class="hljs">Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
  198. </section>
  199. <section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
  200. <h2>Background Transitions</h2>
  201. <p>
  202. You can override background transitions per-slide.
  203. </p>
  204. <pre><code class="hljs" style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
  205. </section>
  206. <section>
  207. <h2>Pretty Code</h2>
  208. <pre><code class="hljs" data-trim contenteditable>
  209. function linkify( selector ) {
  210. if( supports3DTransforms ) {
  211. var nodes = document.querySelectorAll( selector );
  212. for( var i = 0, len = nodes.length; i &lt; len; i++ ) {
  213. var node = nodes[i];
  214. if( !node.className ) {
  215. node.className += ' roll';
  216. }
  217. }
  218. }
  219. }
  220. </code></pre>
  221. <p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  222. </section>
  223. <section>
  224. <h2>Marvelous List</h2>
  225. <ul>
  226. <li>No order here</li>
  227. <li>Or here</li>
  228. <li>Or here</li>
  229. <li>Or here</li>
  230. </ul>
  231. </section>
  232. <section>
  233. <h2>Fantastic Ordered List</h2>
  234. <ol>
  235. <li>One is smaller than...</li>
  236. <li>Two is smaller than...</li>
  237. <li>Three!</li>
  238. </ol>
  239. </section>
  240. <section>
  241. <h2>Tabular Tables</h2>
  242. <table>
  243. <thead>
  244. <tr>
  245. <th>Item</th>
  246. <th>Value</th>
  247. <th>Quantity</th>
  248. </tr>
  249. </thead>
  250. <tbody>
  251. <tr>
  252. <td>Apples</td>
  253. <td>$1</td>
  254. <td>7</td>
  255. </tr>
  256. <tr>
  257. <td>Lemonade</td>
  258. <td>$2</td>
  259. <td>18</td>
  260. </tr>
  261. <tr>
  262. <td>Bread</td>
  263. <td>$3</td>
  264. <td>2</td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. </section>
  269. <section>
  270. <h2>Clever Quotes</h2>
  271. <p>
  272. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">The nice thing about standards is that there are so many to choose from</q> and block:
  273. </p>
  274. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  275. &ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  276. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
  277. </blockquote>
  278. </section>
  279. <section>
  280. <h2>Intergalactic Interconnections</h2>
  281. <p>
  282. You can link between slides internally,
  283. <a href="#/2/3">like this</a>.
  284. </p>
  285. </section>
  286. <section>
  287. <h2>Speaker View</h2>
  288. <p>There's a <a href="https://github.com/hakimel/reveal.js#speaker-notes">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
  289. <p>Press the <em>S</em> key to try it out.</p>
  290. <aside class="notes">
  291. Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
  292. </aside>
  293. </section>
  294. <section>
  295. <h2>Export to PDF</h2>
  296. <p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, here's an example:</p>
  297. <iframe data-src="https://www.slideshare.net/slideshow/embed_code/42840540" width="445" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:3px solid #666; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>
  298. </section>
  299. <section>
  300. <h2>Global State</h2>
  301. <p>
  302. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  303. will be added as a class to the document element when the slide is open. This lets you
  304. apply broader style changes, like switching the page background.
  305. </p>
  306. </section>
  307. <section data-state="customevent">
  308. <h2>State Events</h2>
  309. <p>
  310. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  311. </p>
  312. <pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
  313. Reveal.addEventListener( 'customevent', function() {
  314. console.log( '"customevent" has fired' );
  315. } );
  316. </code></pre>
  317. </section>
  318. <section>
  319. <h2>Take a Moment</h2>
  320. <p>
  321. Press B or . on your keyboard to pause the presentation. This is helpful when you're on stage and want to take distracting slides off the screen.
  322. </p>
  323. </section>
  324. <section>
  325. <h2>Much more</h2>
  326. <ul>
  327. <li>Right-to-left support</li>
  328. <li><a href="https://github.com/hakimel/reveal.js#api">Extensive JavaScript API</a></li>
  329. <li><a href="https://github.com/hakimel/reveal.js#auto-sliding">Auto-progression</a></li>
  330. <li><a href="https://github.com/hakimel/reveal.js#parallax-background">Parallax backgrounds</a></li>
  331. <li><a href="https://github.com/hakimel/reveal.js#keyboard-bindings">Custom keyboard bindings</a></li>
  332. </ul>
  333. </section>
  334. <section style="text-align: left;">
  335. <h1>THE END</h1>
  336. <p>
  337. - <a href="https://slides.com">Try the online editor</a> <br>
  338. - <a href="https://github.com/hakimel/reveal.js">Source code &amp; documentation</a>
  339. </p>
  340. </section>
  341. </div>
  342. </div>
  343. <script src="js/reveal.js"></script>
  344. <script>
  345. // More info https://github.com/hakimel/reveal.js#configuration
  346. Reveal.initialize({
  347. controls: true,
  348. progress: true,
  349. center: true,
  350. hash: true,
  351. transition: 'slide', // none/fade/slide/convex/concave/zoom
  352. // More info https://github.com/hakimel/reveal.js#dependencies
  353. dependencies: [
  354. { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  355. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  356. { src: 'plugin/highlight/highlight.js', async: true },
  357. { src: 'plugin/search/search.js', async: true },
  358. { src: 'plugin/zoom-js/zoom.js', async: true },
  359. { src: 'plugin/notes/notes.js', async: true }
  360. ]
  361. });
  362. </script>
  363. </body>
  364. </html>