index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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.min.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="image 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" class="image">
  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 data-markdown>
  120. <script type="text/template">
  121. ## Markdown support
  122. 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).
  123. ```
  124. <section data-markdown>
  125. ## Markdown support
  126. For those of you who like that sort of thing.
  127. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
  128. </section>
  129. ```
  130. </script>
  131. </section>
  132. <section id="transitions">
  133. <h2>Transition Styles</h2>
  134. <p>
  135. You can select from different transitions, like: <br>
  136. <a href="?transition=cube#/transitions">Cube</a> -
  137. <a href="?transition=page#/transitions">Page</a> -
  138. <a href="?transition=concave#/transitions">Concave</a> -
  139. <a href="?transition=zoom#/transitions">Zoom</a> -
  140. <a href="?transition=linear#/transitions">Linear</a> -
  141. <a href="?transition=fade#/transitions">Fade</a> -
  142. <a href="?transition=none#/transitions">None</a> -
  143. <a href="?#/transitions">Default</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. <a href="?#/themes">Default</a> -
  151. <a href="?theme=sky#/themes">Sky</a> -
  152. <a href="?theme=beige#/themes">Beige</a> -
  153. <a href="?theme=simple#/themes">Simple</a> -
  154. <a href="?theme=serif#/themes">Serif</a> -
  155. <a href="?theme=night#/themes">Night</a> <br>
  156. <a href="?theme=moon#/themes">Moon</a> -
  157. <a href="?theme=solarized#/themes">Solarized</a>
  158. </p>
  159. <p>
  160. <small>
  161. * 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>.
  162. </small>
  163. </p>
  164. </section>
  165. <section>
  166. <h2>Global State</h2>
  167. <p>
  168. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  169. will be added as a class to the document element when the slide is open. This lets you
  170. apply broader style changes, like switching the background.
  171. </p>
  172. </section>
  173. <section data-state="customevent">
  174. <h2>Custom Events</h2>
  175. <p>
  176. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  177. </p>
  178. <pre><code data-trim contenteditable style="font-size: 18px; margin-top: 20px;">
  179. Reveal.addEventListener( 'customevent', function() {
  180. console.log( '"customevent" has fired' );
  181. } );
  182. </code></pre>
  183. </section>
  184. <section>
  185. <section data-background="#007777">
  186. <h2>Slide Backgrounds</h2>
  187. <p>
  188. 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.
  189. </p>
  190. <a href="#" class="image navigate-down">
  191. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  192. </a>
  193. </section>
  194. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  195. <h2>Image Backgrounds</h2>
  196. <pre><code>&lt;section data-background="image.png"&gt;</code></pre>
  197. </section>
  198. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" data-background-repeat="repeat" data-background-size="100px">
  199. <h2>Repeated Image Backgrounds</h2>
  200. <pre><code style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
  201. </section>
  202. </section>
  203. <section data-transition="linear" data-background="#4d7e65" data-background-transition="slide">
  204. <h2>Background Transitions</h2>
  205. <p>
  206. Pass reveal.js the <code>backgroundTransition: 'slide'</code> config argument to make backgrounds slide rather than fade.
  207. </p>
  208. </section>
  209. <section data-transition="linear" data-background="#8c4738" data-background-transition="slide">
  210. <h2>Background Transition Override</h2>
  211. <p>
  212. You can override background transitions per slide by using <code>data-background-transition="slide"</code>.
  213. </p>
  214. </section>
  215. <section>
  216. <h2>Clever Quotes</h2>
  217. <p>
  218. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  219. &ldquo;The nice thing about standards is that there are so many to choose from&rdquo;</q> and block:
  220. </p>
  221. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  222. &ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  223. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
  224. </blockquote>
  225. </section>
  226. <section>
  227. <h2>Pretty Code</h2>
  228. <pre><code data-trim contenteditable>
  229. function linkify( selector ) {
  230. if( supports3DTransforms ) {
  231. var nodes = document.querySelectorAll( selector );
  232. for( var i = 0, len = nodes.length; i &lt; len; i++ ) {
  233. var node = nodes[i];
  234. if( !node.className ) {
  235. node.className += ' roll';
  236. }
  237. }
  238. }
  239. }
  240. </code></pre>
  241. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  242. </section>
  243. <section>
  244. <h2>Intergalactic Interconnections</h2>
  245. <p>
  246. You can link between slides internally,
  247. <a href="#/2/3">like this</a>.
  248. </p>
  249. </section>
  250. <section>
  251. <section id="fragments">
  252. <h2>Fragmented Views</h2>
  253. <p>Hit the next arrow...</p>
  254. <p class="fragment">... to step through ...</p>
  255. <ol>
  256. <li class="fragment"><code>any type</code></li>
  257. <li class="fragment"><em>of view</em></li>
  258. <li class="fragment"><strong>fragments</strong></li>
  259. </ol>
  260. <aside class="notes">
  261. This slide has fragments which are also stepped through in the notes window.
  262. </aside>
  263. </section>
  264. <section>
  265. <h2>Fragment Styles</h2>
  266. <p>There's a few styles of fragments, like:</p>
  267. <p class="fragment grow">grow</p>
  268. <p class="fragment shrink">shrink</p>
  269. <p class="fragment roll-in">roll-in</p>
  270. <p class="fragment fade-out">fade-out</p>
  271. <p class="fragment highlight-red">highlight-red</p>
  272. <p class="fragment highlight-green">highlight-green</p>
  273. <p class="fragment highlight-blue">highlight-blue</p>
  274. <p class="fragment current-visible">current-visible</p>
  275. <p class="fragment highlight-current-blue">highlight-current-blue</p>
  276. </section>
  277. </section>
  278. <section>
  279. <h2>Spectacular image!</h2>
  280. <a class="image" href="http://lab.hakim.se/meny/" target="_blank">
  281. <img width="320" height="299" src="http://s3.amazonaws.com/hakim-static/portfolio/images/meny.png" alt="Meny">
  282. </a>
  283. </section>
  284. <section>
  285. <h2>Export to PDF</h2>
  286. <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>
  287. <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>
  288. <script>
  289. document.getElementById('slideshare').attributeName = 'allowfullscreen';
  290. </script>
  291. </section>
  292. <section>
  293. <h2>Take a Moment</h2>
  294. <p>
  295. 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
  296. during a presentation.
  297. </p>
  298. </section>
  299. <section>
  300. <h2>Stellar Links</h2>
  301. <ul>
  302. <li><a href="http://slid.es">Try the online editor</a></li>
  303. <li><a href="https://github.com/hakimel/reveal.js">Source code on GitHub</a></li>
  304. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  305. </ul>
  306. </section>
  307. <section>
  308. <h1>THE END</h1>
  309. <h3>BY Hakim El Hattab / hakim.se</h3>
  310. </section>
  311. </div>
  312. </div>
  313. <script src="lib/js/head.min.js"></script>
  314. <script src="js/reveal.min.js"></script>
  315. <script>
  316. // Full list of configuration options available here:
  317. // https://github.com/hakimel/reveal.js#configuration
  318. Reveal.initialize({
  319. controls: true,
  320. progress: true,
  321. history: true,
  322. center: true,
  323. theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
  324. transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
  325. // Parallax scrolling
  326. // parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
  327. // parallaxBackgroundSize: '2100px 900px',
  328. // Optional libraries used to extend on reveal.js
  329. dependencies: [
  330. { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
  331. { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  332. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  333. { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  334. { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
  335. { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
  336. ]
  337. });
  338. </script>
  339. </body>
  340. </html>