index.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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>Transition Styles</h2>
  88. <p>
  89. You can select from different transitions, like:
  90. </p>
  91. <ul>
  92. <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
  93. <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
  94. <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
  95. <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
  96. </ul>
  97. </section>
  98. <section>
  99. <h2>Marvelous Unordered List</h2>
  100. <ul>
  101. <li>No order here</li>
  102. <li>Or here</li>
  103. <li>Or here</li>
  104. <li>Or here</li>
  105. </ul>
  106. </section>
  107. <section>
  108. <h2>Fantastic Ordered List</h2>
  109. <ol>
  110. <li>One is smaller than...</li>
  111. <li>Two is smaller than...</li>
  112. <li>Three!</li>
  113. </ol>
  114. </section>
  115. <section>
  116. <section data-state="alert">
  117. <h2>Global State</h2>
  118. <p>
  119. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  120. will be added as a class to the document element when the slide is open. This let's you
  121. apply broader style changes, like switching the background.
  122. </p>
  123. <a href="#/7/1" class="image">
  124. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  125. </a>
  126. </section>
  127. <section data-state="blackout">
  128. <h2>"blackout"</h2>
  129. <a href="#/7/2" class="image">
  130. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  131. </a>
  132. </section>
  133. <section data-state="soothe">
  134. <h2>"soothe"</h2>
  135. <a href="#/7/0" class="image">
  136. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  137. </a>
  138. </section>
  139. </section>
  140. <section data-state="customevent">
  141. <h2>Custom Events</h2>
  142. <p>
  143. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  144. </p>
  145. <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
  146. console.log( '"customevent" has fired' );
  147. } );
  148. </code></pre>
  149. </section>
  150. <section>
  151. <h2>Clever Quotes</h2>
  152. <p>
  153. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  154. The nice thing about standards is that there are so many to choose from</q> and block:
  155. </p>
  156. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  157. For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  158. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
  159. </blockquote>
  160. </section>
  161. <section>
  162. <h2>Pretty Code</h2>
  163. <pre><code contenteditable>
  164. function linkify( selector ) {
  165. if( supports3DTransforms ) {
  166. var nodes = document.querySelectorAll( selector );
  167. for( var i = 0, len = nodes.length; i < len; i++ ) {
  168. var node = nodes[i];
  169. if( !node.className ) ) {
  170. node.className += ' roll';
  171. }
  172. };
  173. }
  174. }
  175. </code></pre>
  176. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  177. </section>
  178. <section>
  179. <h2>Intergalactic Interconnections</h2>
  180. <p>
  181. You can link between slides internally,<br/>
  182. <a href="#/2/3">like this</a>.
  183. </p>
  184. </section>
  185. <section>
  186. <h2>Fragmented Views</h2>
  187. <p>Hit the next arrow...</p>
  188. <p class="fragment">... to step through ...</p>
  189. <ol>
  190. <li class="fragment"><code>any type</code></li>
  191. <li class="fragment"><em>of view</em></li>
  192. <li class="fragment"><strong>fragments</strong></li>
  193. </ol>
  194. </section>
  195. <section>
  196. <h2>Spectacular image!</h2>
  197. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  198. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
  199. </a>
  200. </section>
  201. <section>
  202. <h2>Stellar Links</h2>
  203. <ul>
  204. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  205. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  206. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  207. </ul>
  208. </section>
  209. <section>
  210. <h1>THE END</h1>
  211. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  212. </section>
  213. </div>
  214. <!-- The navigational controls UI -->
  215. <aside class="controls">
  216. <a class="left" href="#">&#x25C4;</a>
  217. <a class="right" href="#">&#x25BA;</a>
  218. <a class="up" href="#">&#x25B2;</a>
  219. <a class="down" href="#">&#x25BC;</a>
  220. </aside>
  221. <!-- Presentation progress bar -->
  222. <div class="progress"><span></span></div>
  223. </div>
  224. <script src="lib/js/head.min.js"></script>
  225. <script>
  226. // Load reveal.js as well as a classList polyfill if needed
  227. head.js( !document.body.classList ? 'lib/js/classList.js' : null )
  228. .js( 'js/reveal.js', function() {
  229. // Parse the query string into a key/value object
  230. var query = {};
  231. location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
  232. query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
  233. } );
  234. // Fires when a slide with data-state=customevent is activated
  235. Reveal.addEventListener( 'customevent', function() {
  236. console.log( '"customevent" has fired' );
  237. } );
  238. // Fires each time a new slide is activated
  239. Reveal.addEventListener( 'slidechanged', function( event ) {
  240. // event.previousSlide, event.currentSlide, event.indexh, event.indexv
  241. } );
  242. // Full list of configuration options available here:
  243. // https://github.com/hakimel/reveal.js#configuration
  244. Reveal.initialize({
  245. controls: true,
  246. progress: true,
  247. history: true,
  248. theme: query.theme || 'default', // default/neon/beige
  249. transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
  250. });
  251. } );
  252. // Load highlight.js for syntax highlighting of code samples
  253. head.js( 'lib/js/highlight.js', function() {
  254. hljs.initHighlightingOnLoad();
  255. } );
  256. // If we're runnning the notes server we need to include some additional JS
  257. // TODO Is there a better way to determine if we're running the notes server?
  258. if( window.location.host === 'localhost:1947' ) {
  259. head.js( 'socket.io/socket.io.js', 'plugin/speakernotes/client.js' );
  260. }
  261. </script>
  262. </body>
  263. </html>