index.html 11 KB

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