index.html 14 KB

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