index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js</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/highlight/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. alert( '"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. var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
  165. document.body.style['MozPerspective'] !== undefined ||
  166. document.body.style['perspective'] !== undefined;
  167. function linkify( selector ) {
  168. if( supports3DTransforms ) {
  169. var nodes = document.querySelectorAll( selector );
  170. for( var i = 0, len = nodes.length; i < len; i++ ) {
  171. var node = nodes[i];
  172. if( !node.className || !node.className.match( /roll/g ) ) {
  173. node.className += ' roll';
  174. node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
  175. }
  176. };
  177. }
  178. }
  179. linkify( 'a' );
  180. </code></pre>
  181. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  182. </section>
  183. <section>
  184. <h2>Intergalactic Interconnections</h2>
  185. <p>
  186. You can link between slides internally,<br/>
  187. <a href="#/2/3">like this</a>.
  188. </p>
  189. </section>
  190. <section>
  191. <h2>Fragmented Views</h2>
  192. <p>Hit the next arrow...</p>
  193. <p class="fragment">... to step through ...</p>
  194. <ol>
  195. <li class="fragment"><code>any type</code></li>
  196. <li class="fragment"><em>of view</em></li>
  197. <li class="fragment"><strong>fragments</strong></li>
  198. </ol>
  199. </section>
  200. <section>
  201. <h2>Spectacular image!</h2>
  202. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  203. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
  204. </a>
  205. </section>
  206. <section>
  207. <h2>Stellar Links</h2>
  208. <ul>
  209. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  210. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  211. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  212. </ul>
  213. </section>
  214. <section>
  215. <h1>THE END</h1>
  216. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  217. </section>
  218. </div>
  219. <!-- The navigational controls UI -->
  220. <aside class="controls">
  221. <a class="left" href="#">&#x25C4;</a>
  222. <a class="right" href="#">&#x25BA;</a>
  223. <a class="up" href="#">&#x25B2;</a>
  224. <a class="down" href="#">&#x25BC;</a>
  225. </aside>
  226. <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
  227. <div class="progress"><span></span></div>
  228. </div>
  229. <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
  230. <script src="lib/highlight/highlight.js"></script>
  231. <script src="lib/polyfills/classList.js"></script>
  232. <script src="js/reveal.js"></script>
  233. <script>
  234. // Parse the query string into a key/value object
  235. var query = {};
  236. location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
  237. query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
  238. } );
  239. // Fires when a slide with data-state=customevent is activated
  240. Reveal.addEventListener( 'customevent', function() {
  241. alert( '"customevent" has fired' );
  242. } );
  243. // Fires each time a new slide is activated
  244. Reveal.addEventListener( 'slidechanged', function( event ) {
  245. // event.previousSlide, event.currentSlide, event.indexh, event.indexv
  246. } );
  247. Reveal.initialize({
  248. // Display controls in the bottom right corner
  249. controls: true,
  250. // Display a presentation progress bar
  251. progress: true,
  252. // If true; each slide will be pushed to the browser history
  253. history: true,
  254. // Loops the presentation, defaults to false
  255. loop: false,
  256. // Flags if mouse wheel navigation should be enabled
  257. mouseWheel: true,
  258. // Apply a 3D roll to links on hover
  259. rollingLinks: true,
  260. // UI style
  261. theme: query.theme || 'default', // default/neon
  262. // Transition style
  263. transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
  264. });
  265. hljs.initHighlightingOnLoad();
  266. </script>
  267. <!-- the next two lines enable the speaker notes server -->
  268. <!-- <script src="socket.io/socket.io.js"></script>
  269. <script src="js/reveal.slidenotes.js"></script> -->
  270. </body>
  271. </html>