index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - HTML5 Presentations</title>
  6. <meta name="description" content="An easy to use CSS 3D slideshow tool for quickly creating good looking HTML presentations.">
  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 href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  11. <link rel="stylesheet" href="css/reset.css">
  12. <link rel="stylesheet" href="css/main.css">
  13. <link rel="stylesheet" href="lib/css/zenburn.css">
  14. <script>
  15. // If the query includes print-pdf we'll use the fancy print CSS
  16. document.write( '<link rel="stylesheet" href="css/' + (window.location.search.match( /print-pdf/gi ) ? 'print-pdf.css' : 'print.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. <!-- Used to fade in a background when a specific slide state is reached -->
  25. <div class="state-background"></div>
  26. <!-- Any section element inside of this container is displayed as a slide -->
  27. <div class="slides">
  28. <section>
  29. <h1>Reveal.js</h1>
  30. <h3 class="inverted">HTML Presentations Made Easy</h3>
  31. </section>
  32. <section>
  33. <h2>Heads Up</h2>
  34. <p>
  35. reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with
  36. support for CSS 3D transforms to see it in its full glory.
  37. </p>
  38. <p>
  39. <i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
  40. </p>
  41. <aside class="notes">
  42. Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you run the speaker notes server.
  43. </aside>
  44. </section>
  45. <!-- Example of nested vertical slides -->
  46. <section>
  47. <section>
  48. <h2>Vertical Slides</h2>
  49. <p>
  50. Slides can be nested inside of other slides,
  51. try pressing <a href="#/2/1">down</a>.
  52. </p>
  53. <a href="#/2/1" class="image">
  54. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  55. </a>
  56. </section>
  57. <section>
  58. <h2>Basement Level 1</h2>
  59. <p>Press down or up to navigate.</p>
  60. </section>
  61. <section>
  62. <h2>Basement Level 2</h2>
  63. <p>Cornify</p>
  64. <a class="test" href="http://cornify.com">
  65. <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif" alt="Unicorn">
  66. </a>
  67. </section>
  68. <section>
  69. <h2>Basement Level 3</h2>
  70. <p>That's it, time to go back up.</p>
  71. <a href="#/2" class="image">
  72. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(180deg);">
  73. </a>
  74. </section>
  75. </section>
  76. <section>
  77. <h2>Holistic Overview</h2>
  78. <p>
  79. Press <strong>ESC</strong> to enter the slide overview!
  80. </p>
  81. </section>
  82. <section>
  83. <h2>Works in Mobile Safari</h2>
  84. <p>
  85. Try it out! You can swipe through the slides pinch your way to the overview.
  86. </p>
  87. </section>
  88. <section>
  89. <h2>Marvelous Unordered List</h2>
  90. <ul>
  91. <li>No order here</li>
  92. <li>Or here</li>
  93. <li>Or here</li>
  94. <li>Or here</li>
  95. </ul>
  96. </section>
  97. <section>
  98. <h2>Fantastic Ordered List</h2>
  99. <ol>
  100. <li>One is smaller than...</li>
  101. <li>Two is smaller than...</li>
  102. <li>Three!</li>
  103. </ol>
  104. </section>
  105. <section data-markdown>
  106. ## Markdown support
  107. 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).
  108. <pre><code contenteditable style="margin-top: 20px;">&lt;section data-markdown&gt;
  109. ## Markdown support
  110. For those of you who like that sort of thing.
  111. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
  112. &lt;/section&gt;
  113. </code></pre>
  114. </section>
  115. <section>
  116. <h2>Transition Styles</h2>
  117. <p>
  118. You can select from different transitions, like:
  119. </p>
  120. <ul>
  121. <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
  122. <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
  123. <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
  124. <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
  125. </ul>
  126. </section>
  127. <section>
  128. <section data-state="alert">
  129. <h2>Global State</h2>
  130. <p>
  131. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  132. will be added as a class to the document element when the slide is open. This let's you
  133. apply broader style changes, like switching the background.
  134. </p>
  135. <a href="#/7/1" class="image">
  136. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  137. </a>
  138. </section>
  139. <section data-state="blackout">
  140. <h2>"blackout"</h2>
  141. <a href="#/7/2" class="image">
  142. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  143. </a>
  144. </section>
  145. <section data-state="soothe">
  146. <h2>"soothe"</h2>
  147. <a href="#/7/0" class="image">
  148. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(180deg);">
  149. </a>
  150. </section>
  151. </section>
  152. <section data-state="customevent">
  153. <h2>Custom Events</h2>
  154. <p>
  155. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  156. </p>
  157. <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
  158. console.log( '"customevent" has fired' );
  159. } );
  160. </code></pre>
  161. </section>
  162. <section>
  163. <h2>Clever Quotes</h2>
  164. <p>
  165. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  166. The nice thing about standards is that there are so many to choose from</q> and block:
  167. </p>
  168. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  169. For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  170. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
  171. </blockquote>
  172. </section>
  173. <section>
  174. <h2>Pretty Code</h2>
  175. <pre><code contenteditable>
  176. function linkify( selector ) {
  177. if( supports3DTransforms ) {
  178. var nodes = document.querySelectorAll( selector );
  179. for( var i = 0, len = nodes.length; i < len; i++ ) {
  180. var node = nodes[i];
  181. if( !node.className ) ) {
  182. node.className += ' roll';
  183. }
  184. };
  185. }
  186. }
  187. </code></pre>
  188. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  189. </section>
  190. <section>
  191. <h2>Intergalactic Interconnections</h2>
  192. <p>
  193. You can link between slides internally,
  194. <a href="#/2/3">like this</a>.
  195. </p>
  196. </section>
  197. <section>
  198. <h2>Fragmented Views</h2>
  199. <p>Hit the next arrow...</p>
  200. <p class="fragment">... to step through ...</p>
  201. <ol>
  202. <li class="fragment"><code>any type</code></li>
  203. <li class="fragment"><em>of view</em></li>
  204. <li class="fragment"><strong>fragments</strong></li>
  205. </ol>
  206. </section>
  207. <section>
  208. <h2>Spectacular image!</h2>
  209. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  210. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png" alt="BreakDOM game screenshot">
  211. </a>
  212. </section>
  213. <section>
  214. <h2>Export to PDF</h2>
  215. <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>
  216. <iframe src="http://www.slideshare.net/slideshow/embed_code/13872948" width="455" height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen> </iframe>
  217. </section>
  218. <section>
  219. <h2>Stellar Links</h2>
  220. <ul>
  221. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  222. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  223. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  224. </ul>
  225. </section>
  226. <section>
  227. <h1>THE END</h1>
  228. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  229. </section>
  230. </div>
  231. <!-- The navigational controls UI -->
  232. <aside class="controls">
  233. <a class="left" href="#">&#x25C4;</a>
  234. <a class="right" href="#">&#x25BA;</a>
  235. <a class="up" href="#">&#x25B2;</a>
  236. <a class="down" href="#">&#x25BC;</a>
  237. </aside>
  238. <!-- Presentation progress bar -->
  239. <div class="progress"><span></span></div>
  240. </div>
  241. <script src="lib/js/head.min.js"></script>
  242. <script>
  243. head.ready( function() {
  244. // Fires when a slide with data-state=customevent is activated
  245. Reveal.addEventListener( 'customevent', function() {
  246. console.log( '"customevent" has fired' );
  247. } );
  248. // Fires each time a new slide is activated
  249. Reveal.addEventListener( 'slidechanged', function( event ) {
  250. // event.previousSlide, event.currentSlide, event.indexh, event.indexv
  251. } );
  252. // Full list of configuration options available here:
  253. // https://github.com/hakimel/reveal.js#configuration
  254. Reveal.initialize({
  255. controls: true,
  256. progress: true,
  257. history: true,
  258. theme: Reveal.getQueryHash().theme || 'default', // default/neon/beige
  259. transition: Reveal.getQueryHash().transition || 'default' // default/cube/page/concave/linear(2d)
  260. });
  261. // Load highlight.js for syntax highlighting of code samples
  262. head.js( 'lib/js/highlight.js', function() {
  263. hljs.initHighlightingOnLoad();
  264. } );
  265. } );
  266. // Scripts that should be loaded before initializing
  267. var scripts = [];
  268. // If the browser doesn't support classList, load a polyfill
  269. if( !document.body.classList ) {
  270. head.js( 'lib/js/classList.js' );
  271. }
  272. // Load markdown parser if there are slides defined using markdown
  273. if( document.querySelector( '[data-markdown]' ) ) {
  274. scripts.push( 'lib/js/showdown.js' );
  275. scripts.push( 'lib/js/data-markdown.js' );
  276. }
  277. scripts.push( 'js/reveal.min.js' );
  278. // If we're runnning the notes server we need to include some additional JS
  279. // TODO Is there a better way to determine if we're running the notes server?
  280. if( window.location.host === 'localhost:1947' ) {
  281. scripts.push( 'socket.io/socket.io.js' );
  282. scripts.push( 'plugin/speakernotes/client.js' );
  283. }
  284. // Load the scripts and, when completed, initialize reveal.js
  285. head.js.apply( null, scripts );
  286. </script>
  287. </body>
  288. </html>