index.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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>ESC</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 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. <p><code style="font-size: 27px;">
  134. document.addEventListener('customevent', function(){<br />
  135. alert('event has fired');<br />
  136. });
  137. </code></p>
  138. </section>
  139. <section>
  140. <h2>Clever Quotes</h2>
  141. <p>
  142. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  143. The nice thing about standards is that there are so many to choose from</q> and block:
  144. </p>
  145. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  146. For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  147. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
  148. </blockquote>
  149. </section>
  150. <section>
  151. <h2>Pretty Code</h2>
  152. <pre><code contenteditable>
  153. var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
  154. document.body.style['MozPerspective'] !== undefined ||
  155. document.body.style['perspective'] !== undefined;
  156. function linkify( selector ) {
  157. if( supports3DTransforms ) {
  158. var nodes = document.querySelectorAll( selector );
  159. for( var i = 0, len = nodes.length; i < len; i++ ) {
  160. var node = nodes[i];
  161. if( !node.className || !node.className.match( /roll/g ) ) {
  162. node.className += ' roll';
  163. node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
  164. }
  165. };
  166. }
  167. }
  168. linkify( 'a' );
  169. </code></pre>
  170. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  171. </section>
  172. <section>
  173. <h2>Intergalactic Interconnections</h2>
  174. <p>
  175. You can link between slides internally,<br/>
  176. <a href="#/2/3">like this</a>.
  177. </p>
  178. </section>
  179. <section>
  180. <h2>Fragmented Views</h2>
  181. <p>Hit the next arrow...</p>
  182. <p class="fragment">... to step through ...</p>
  183. <ol>
  184. <li class="fragment"><code>any type</code></li>
  185. <li class="fragment"><em>of view</em></li>
  186. <li class="fragment"><strong>fragments</strong></li>
  187. </ol>
  188. </section>
  189. <section>
  190. <h2>Spectacular image!</h2>
  191. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  192. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
  193. </a>
  194. </section>
  195. <section>
  196. <h2>Stellar Links</h2>
  197. <ul>
  198. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  199. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  200. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  201. </ul>
  202. </section>
  203. <section>
  204. <h1>THE END</h1>
  205. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  206. </section>
  207. </div>
  208. <!-- The navigational controls UI -->
  209. <aside class="controls">
  210. <a class="left" href="#">&#x25C4;</a>
  211. <a class="right" href="#">&#x25BA;</a>
  212. <a class="up" href="#">&#x25B2;</a>
  213. <a class="down" href="#">&#x25BC;</a>
  214. </aside>
  215. <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
  216. <div class="progress"><span></span></div>
  217. </div>
  218. <script src="js/reveal.js"></script>
  219. <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
  220. <script src="lib/highlight.js"></script>
  221. <script src="lib/classList.js"></script>
  222. <script>
  223. // Parse the query string into a key/value object
  224. var query = {};
  225. location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
  226. query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
  227. } );
  228. document.addEventListener('customevent', function(){
  229. alert('event has fired');
  230. });
  231. Reveal.initialize({
  232. // Display controls in the bottom right corner
  233. controls: true,
  234. // Display a presentation progress bar
  235. progress: true,
  236. // If true; each slide will be pushed to the browser history
  237. history: true,
  238. // Loops the presentation, defaults to false
  239. loop: false,
  240. // Flags if mouse wheel navigation should be enabled
  241. mouseWheel: true,
  242. // Apply a 3D roll to links on hover
  243. rollingLinks: true,
  244. // UI style
  245. theme: query.theme || 'default', // default/neon
  246. // Transition style
  247. transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
  248. });
  249. hljs.initHighlightingOnLoad();
  250. </script>
  251. </body>
  252. </html>