index.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. <link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  9. <link rel="stylesheet" href="css/reset.css">
  10. <link rel="stylesheet" href="css/main.css">
  11. <link rel="stylesheet" href="lib/zenburn.css">
  12. </head>
  13. <body>
  14. <div id="reveal">
  15. <!-- Used to fade in a background when a specific slide state is reached -->
  16. <div class="state-background"></div>
  17. <!-- Any section element inside of this container is displayed as a slide -->
  18. <div class="slides">
  19. <section>
  20. <h1>Reveal.js</h1>
  21. <h3 class="inverted">A CSS 3D Slideshow</h3>
  22. <script>
  23. // Delicously hacky. Look away.
  24. if( navigator.userAgent.match( /(iPhone|iPad|iPod|Android)/i ) )
  25. document.write( '<p style="color: rgba(0,0,0,0.3); text-shadow: none;">('+'Tap to navigate'+')</p>' );
  26. </script>
  27. </section>
  28. <section>
  29. <h2>Heads Up</h2>
  30. <p>
  31. reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with
  32. support for CSS 3D transforms to see it in its full glory.
  33. </p>
  34. <p>
  35. <i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
  36. </p>
  37. </section>
  38. <!-- Example of nested vertical slides -->
  39. <section>
  40. <section>
  41. <h2>Vertical Slides</h2>
  42. <p>
  43. Slides can be nested inside of other slides,<br/>
  44. try pressing <a href="#/2/1">down</a>.
  45. </p>
  46. <a href="#/2/1" class="image">
  47. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  48. </a>
  49. </section>
  50. <section>
  51. <h2>Basement Level 1</h2>
  52. <p>Press down or up to navigate.</p>
  53. </section>
  54. <section>
  55. <h2>Basement Level 2</h2>
  56. <p>Cornify</p>
  57. <a class="test" href="http://cornify.com">
  58. <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
  59. </a>
  60. </section>
  61. <section>
  62. <h2>Basement Level 3</h2>
  63. <p>That's it, time to go back up.</p>
  64. <a href="#/2" class="image">
  65. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  66. </a>
  67. </section>
  68. </section>
  69. <section>
  70. <h2>Holistic Overview</h2>
  71. <p>
  72. Press <strong>SPACE</strong> to enter the slide overview!
  73. </p>
  74. </section>
  75. <section>
  76. <h2>Transition Styles</h2>
  77. <p>
  78. You can select from different transitions, like:
  79. </p>
  80. <ul>
  81. <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
  82. <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
  83. <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
  84. </ul>
  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>
  104. <section data-state="alert">
  105. <h2>Global State</h2>
  106. <p>
  107. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  108. will be added as a class to the document element when the slide is open. This let's you
  109. apply broader style changes, like switching the background.
  110. </p>
  111. <a href="#/7/1" class="image">
  112. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  113. </a>
  114. </section>
  115. <section data-state="blackout">
  116. <h2>"blackout"</h2>
  117. <a href="#/7/2" class="image">
  118. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  119. </a>
  120. </section>
  121. <section data-state="soothe">
  122. <h2>"soothe"</h2>
  123. <a href="#/7/0" class="image">
  124. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  125. </a>
  126. </section>
  127. </section>
  128. <section>
  129. <h2>Clever Quotes</h2>
  130. <p>
  131. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  132. The nice thing about standards is that there are so many to choose from</q> and block:
  133. </p>
  134. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  135. For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  136. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
  137. </blockquote>
  138. </section>
  139. <section>
  140. <h2>Pretty Code</h2>
  141. <pre><code contenteditable>
  142. var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
  143. document.body.style['MozPerspective'] !== undefined ||
  144. document.body.style['perspective'] !== undefined;
  145. function linkify( selector ) {
  146. if( supports3DTransforms ) {
  147. var nodes = document.querySelectorAll( selector );
  148. for( var i = 0, len = nodes.length; i < len; i++ ) {
  149. var node = nodes[i];
  150. if( !node.className || !node.className.match( /roll/g ) ) {
  151. node.className += ' roll';
  152. node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
  153. }
  154. };
  155. }
  156. }
  157. linkify( 'a' );
  158. </code></pre>
  159. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  160. </section>
  161. <section>
  162. <h2>Intergalactic Interconnections</h2>
  163. <p>
  164. You can link between slides internally,<br/>
  165. <a href="#/2/3">like this</a>.
  166. </p>
  167. </section>
  168. <section>
  169. <h2>Fragmented Views</h2>
  170. <p>Hit the next arrow...</p>
  171. <p class="fragment">... to step through ...</p>
  172. <ol>
  173. <li class="fragment"><code>any type</code></li>
  174. <li class="fragment"><em>of view</em></li>
  175. <li class="fragment"><strong>fragments</strong></li>
  176. </ol>
  177. </section>
  178. <section>
  179. <h2>Spectacular image!</h2>
  180. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  181. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
  182. </a>
  183. </section>
  184. <section>
  185. <h2>Stellar Links</h2>
  186. <ul>
  187. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  188. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  189. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  190. </ul>
  191. </section>
  192. <section>
  193. <h1>THE END</h1>
  194. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  195. </section>
  196. </div>
  197. <!-- The navigational controls UI -->
  198. <aside class="controls">
  199. <a class="left" href="#">&#x25C4;</a>
  200. <a class="right" href="#">&#x25BA;</a>
  201. <a class="up" href="#">&#x25B2;</a>
  202. <a class="down" href="#">&#x25BC;</a>
  203. </aside>
  204. <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
  205. <div class="progress"><span></span></div>
  206. </div>
  207. <script src="js/reveal.js"></script>
  208. <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
  209. <script src="lib/highlight.js"></script>
  210. <script src="lib/classList.js"></script>
  211. <script>
  212. // Parse the query string into a key/value object
  213. var query = {};
  214. location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
  215. query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
  216. } );
  217. Reveal.initialize({
  218. // Display controls in the bottom right corner
  219. controls: true,
  220. // Display a presentation progress bar
  221. progress: true,
  222. // If true; each slide will be pushed to the browser history
  223. history: true,
  224. // Flags if mouse wheel navigation should be enabled
  225. mouseWheel: true,
  226. // Apply a 3D roll to links on hover
  227. rollingLinks: true,
  228. // UI style
  229. theme: query.theme || 'default', // default/neon
  230. // Transition style
  231. transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
  232. });
  233. hljs.initHighlightingOnLoad();
  234. </script>
  235. </body>
  236. </html>