index.html 11 KB

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