index.html 9.3 KB

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