index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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, maximum-scale=1.0, user-scalable=no">
  11. <link rel="stylesheet" href="css/reveal.css">
  12. <link rel="stylesheet" href="css/theme/default.css" id="theme">
  13. <!-- For syntax highlighting -->
  14. <link rel="stylesheet" href="lib/css/zenburn.css">
  15. <!-- If the query includes 'print-pdf', include the PDF print sheet -->
  16. <script>
  17. if( window.location.search.match( /print-pdf/gi ) ) {
  18. var link = document.createElement( 'link' );
  19. link.rel = 'stylesheet';
  20. link.type = 'text/css';
  21. link.href = 'css/print/pdf.css';
  22. document.getElementsByTagName( 'head' )[0].appendChild( link );
  23. }
  24. </script>
  25. <!--[if lt IE 9]>
  26. <script src="lib/js/html5shiv.js"></script>
  27. <![endif]-->
  28. </head>
  29. <body>
  30. <div class="reveal">
  31. <!-- Any section element inside of this container is displayed as a slide -->
  32. <div class="slides">
  33. <section>
  34. <h1>Reveal.js</h1>
  35. <h3>HTML Presentations Made Easy</h3>
  36. <p>
  37. <small>Created by <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small>
  38. </p>
  39. </section>
  40. <section>
  41. <h2>Heads Up</h2>
  42. <p>
  43. reveal.js is a framework for easily creating beautiful presentations using HTML. You'll need a browser with
  44. support for CSS 3D transforms to see it in its full glory.
  45. </p>
  46. <aside class="notes">
  47. 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).
  48. </aside>
  49. </section>
  50. <!-- Example of nested vertical slides -->
  51. <section>
  52. <section>
  53. <h2>Vertical Slides</h2>
  54. <p>
  55. Slides can be nested inside of other slides,
  56. try pressing <a href="#" class="navigate-down">down</a>.
  57. </p>
  58. <a href="#" class="navigate-down">
  59. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  60. </a>
  61. </section>
  62. <section>
  63. <h2>Basement Level 1</h2>
  64. <p>Press down or up to navigate.</p>
  65. </section>
  66. <section>
  67. <h2>Basement Level 2</h2>
  68. <p>Cornify</p>
  69. <a class="test" href="http://cornify.com">
  70. <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif" alt="Unicorn">
  71. </a>
  72. </section>
  73. <section>
  74. <h2>Basement Level 3</h2>
  75. <p>That's it, time to go back up.</p>
  76. <a href="#/2">
  77. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(180deg);">
  78. </a>
  79. </section>
  80. </section>
  81. <section>
  82. <h2>Slides</h2>
  83. <p>
  84. Not a coder? No problem. There's a fully-featured visual editor for authoring these, try it out at <a href="http://slid.es" target="_blank">http://slid.es</a>.
  85. </p>
  86. </section>
  87. <section>
  88. <h2>Point of View</h2>
  89. <p>
  90. Press <strong>ESC</strong> to enter the slide overview.
  91. </p>
  92. <p>
  93. Hold down alt and click on any element to zoom in on it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Alt + click anywhere to zoom back out.
  94. </p>
  95. </section>
  96. <section>
  97. <h2>Works in Mobile Safari</h2>
  98. <p>
  99. Try it out! You can swipe through the slides and pinch your way to the overview.
  100. </p>
  101. </section>
  102. <section>
  103. <h2>Marvelous Unordered List</h2>
  104. <ul>
  105. <li>No order here</li>
  106. <li>Or here</li>
  107. <li>Or here</li>
  108. <li>Or here</li>
  109. </ul>
  110. </section>
  111. <section>
  112. <h2>Fantastic Ordered List</h2>
  113. <ol>
  114. <li>One is smaller than...</li>
  115. <li>Two is smaller than...</li>
  116. <li>Three!</li>
  117. </ol>
  118. </section>
  119. <section>
  120. <h2>Superb Tables</h2>
  121. <table>
  122. <thead>
  123. <tr>
  124. <th>Item</th>
  125. <th>Value</th>
  126. <th>Quantity</th>
  127. </tr>
  128. </thead>
  129. <tbody>
  130. <tr>
  131. <td>Apples</td>
  132. <td>$1</td>
  133. <td>7</td>
  134. <tr>
  135. <tr>
  136. <td>Lemonade</td>
  137. <td>$2</td>
  138. <td>18</td>
  139. <tr>
  140. <tr>
  141. <td>Bread</td>
  142. <td>$3</td>
  143. <td>2</td>
  144. <tr>
  145. </tbody>
  146. </table>
  147. </section>
  148. <section data-markdown>
  149. <script type="text/template">
  150. ## Markdown support
  151. For those of you who like that sort of thing. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
  152. ```
  153. <section data-markdown>
  154. ## Markdown support
  155. For those of you who like that sort of thing.
  156. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
  157. </section>
  158. ```
  159. </script>
  160. </section>
  161. <section id="transitions">
  162. <h2>Transition Styles</h2>
  163. <p>
  164. You can select from different transitions, like: <br>
  165. <a href="?transition=cube#/transitions">Cube</a> -
  166. <a href="?transition=page#/transitions">Page</a> -
  167. <a href="?transition=concave#/transitions">Concave</a> -
  168. <a href="?transition=zoom#/transitions">Zoom</a> -
  169. <a href="?transition=linear#/transitions">Linear</a> -
  170. <a href="?transition=fade#/transitions">Fade</a> -
  171. <a href="?transition=none#/transitions">None</a> -
  172. <a href="?#/transitions">Default</a>
  173. </p>
  174. </section>
  175. <section id="themes">
  176. <h2>Themes</h2>
  177. <p>
  178. Reveal.js comes with a few themes built in: <br>
  179. <a href="?#/themes">Default</a> -
  180. <a href="?theme=sky#/themes">Sky</a> -
  181. <a href="?theme=beige#/themes">Beige</a> -
  182. <a href="?theme=simple#/themes">Simple</a> -
  183. <a href="?theme=serif#/themes">Serif</a> -
  184. <a href="?theme=night#/themes">Night</a> <br>
  185. <a href="?theme=moon#/themes">Moon</a> -
  186. <a href="?theme=solarized#/themes">Solarized</a>
  187. </p>
  188. <p>
  189. <small>
  190. * Theme demos are loaded after the presentation which leads to flicker. In production you should load your theme in the <code>&lt;head&gt;</code> using a <code>&lt;link&gt;</code>.
  191. </small>
  192. </p>
  193. </section>
  194. <section>
  195. <h2>Global State</h2>
  196. <p>
  197. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  198. will be added as a class to the document element when the slide is open. This lets you
  199. apply broader style changes, like switching the background.
  200. </p>
  201. </section>
  202. <section data-state="customevent">
  203. <h2>Custom Events</h2>
  204. <p>
  205. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  206. </p>
  207. <pre><code data-trim contenteditable style="font-size: 18px; margin-top: 20px;">
  208. Reveal.addEventListener( 'customevent', function() {
  209. console.log( '"customevent" has fired' );
  210. } );
  211. </code></pre>
  212. </section>
  213. <section>
  214. <section data-background="#007777">
  215. <h2>Slide Backgrounds</h2>
  216. <p>
  217. Set <code>data-background="#007777"</code> on a slide to change the full page background to the given color. All CSS color formats are supported.
  218. </p>
  219. <a href="#" class="navigate-down">
  220. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  221. </a>
  222. </section>
  223. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  224. <h2>Image Backgrounds</h2>
  225. <pre><code>&lt;section data-background="image.png"&gt;</code></pre>
  226. </section>
  227. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" data-background-repeat="repeat" data-background-size="100px">
  228. <h2>Repeated Image Backgrounds</h2>
  229. <pre><code style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
  230. </section>
  231. </section>
  232. <section data-transition="linear" data-background="#4d7e65" data-background-transition="slide">
  233. <h2>Background Transitions</h2>
  234. <p>
  235. Pass reveal.js the <code>backgroundTransition: 'slide'</code> config argument to make backgrounds slide rather than fade.
  236. </p>
  237. </section>
  238. <section data-transition="linear" data-background="#8c4738" data-background-transition="slide">
  239. <h2>Background Transition Override</h2>
  240. <p>
  241. You can override background transitions per slide by using <code>data-background-transition="slide"</code>.
  242. </p>
  243. </section>
  244. <section>
  245. <h2>Clever Quotes</h2>
  246. <p>
  247. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  248. &ldquo;The nice thing about standards is that there are so many to choose from&rdquo;</q> and block:
  249. </p>
  250. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  251. &ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  252. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
  253. </blockquote>
  254. </section>
  255. <section>
  256. <h2>Pretty Code</h2>
  257. <pre><code data-trim contenteditable>
  258. function linkify( selector ) {
  259. if( supports3DTransforms ) {
  260. var nodes = document.querySelectorAll( selector );
  261. for( var i = 0, len = nodes.length; i &lt; len; i++ ) {
  262. var node = nodes[i];
  263. if( !node.className ) {
  264. node.className += ' roll';
  265. }
  266. }
  267. }
  268. }
  269. </code></pre>
  270. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  271. </section>
  272. <section>
  273. <h2>Intergalactic Interconnections</h2>
  274. <p>
  275. You can link between slides internally,
  276. <a href="#/2/3">like this</a>.
  277. </p>
  278. </section>
  279. <section>
  280. <section id="fragments">
  281. <h2>Fragmented Views</h2>
  282. <p>Hit the next arrow...</p>
  283. <p class="fragment">... to step through ...</p>
  284. <ol>
  285. <li class="fragment"><code>any type</code></li>
  286. <li class="fragment"><em>of view</em></li>
  287. <li class="fragment"><strong>fragments</strong></li>
  288. </ol>
  289. <aside class="notes">
  290. This slide has fragments which are also stepped through in the notes window.
  291. </aside>
  292. </section>
  293. <section>
  294. <h2>Fragment Styles</h2>
  295. <p>There's a few styles of fragments, like:</p>
  296. <p class="fragment grow">grow</p>
  297. <p class="fragment shrink">shrink</p>
  298. <p class="fragment roll-in">roll-in</p>
  299. <p class="fragment fade-out">fade-out</p>
  300. <p class="fragment highlight-red">highlight-red</p>
  301. <p class="fragment highlight-green">highlight-green</p>
  302. <p class="fragment highlight-blue">highlight-blue</p>
  303. <p class="fragment current-visible">current-visible</p>
  304. <p class="fragment highlight-current-blue">highlight-current-blue</p>
  305. </section>
  306. </section>
  307. <section>
  308. <h2>Spectacular image!</h2>
  309. <a href="http://lab.hakim.se/meny/" target="_blank">
  310. <img width="320" height="299" src="http://s3.amazonaws.com/hakim-static/portfolio/images/meny.png" alt="Meny">
  311. </a>
  312. </section>
  313. <section>
  314. <h2>Export to PDF</h2>
  315. <p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, below is an example that's been uploaded to SlideShare.</p>
  316. <iframe id="slideshare" src="http://www.slideshare.net/slideshow/embed_code/13872948" width="455" height="356" style="margin:0;overflow:hidden;border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen> </iframe>
  317. <script>
  318. document.getElementById('slideshare').attributeName = 'allowfullscreen';
  319. </script>
  320. </section>
  321. <section>
  322. <h2>Take a Moment</h2>
  323. <p>
  324. Press b or period on your keyboard to enter the 'paused' mode. This mode is helpful when you want to take distracting slides off the screen
  325. during a presentation.
  326. </p>
  327. </section>
  328. <section>
  329. <h2>Stellar Links</h2>
  330. <ul>
  331. <li><a href="http://slid.es">Try the online editor</a></li>
  332. <li><a href="https://github.com/hakimel/reveal.js">Source code on GitHub</a></li>
  333. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  334. </ul>
  335. </section>
  336. <section>
  337. <h1>THE END</h1>
  338. <h3>BY Hakim El Hattab / hakim.se</h3>
  339. </section>
  340. </div>
  341. </div>
  342. <script src="lib/js/head.min.js"></script>
  343. <script src="js/reveal.js"></script>
  344. <script>
  345. // Full list of configuration options available here:
  346. // https://github.com/hakimel/reveal.js#configuration
  347. Reveal.initialize({
  348. controls: true,
  349. progress: true,
  350. history: true,
  351. center: true,
  352. theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
  353. transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
  354. // Parallax scrolling
  355. // parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
  356. // parallaxBackgroundSize: '2100px 900px',
  357. // Optional libraries used to extend on reveal.js
  358. dependencies: [
  359. { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
  360. { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  361. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  362. { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  363. { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
  364. { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
  365. ]
  366. });
  367. </script>
  368. </body>
  369. </html>