index.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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/zenburn.css">
  15. </head>
  16. <body>
  17. <div id="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. </section>
  40. <!-- Example of nested vertical slides -->
  41. <section>
  42. <section>
  43. <h2>Vertical Slides</h2>
  44. <p>
  45. Slides can be nested inside of other slides,<br/>
  46. try pressing <a href="#/2/1">down</a>.
  47. </p>
  48. <a href="#/2/1" class="image">
  49. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  50. </a>
  51. </section>
  52. <section>
  53. <h2>Basement Level 1</h2>
  54. <p>Press down or up to navigate.</p>
  55. </section>
  56. <section>
  57. <h2>Basement Level 2</h2>
  58. <p>Cornify</p>
  59. <a class="test" href="http://cornify.com">
  60. <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
  61. </a>
  62. </section>
  63. <section>
  64. <h2>Basement Level 3</h2>
  65. <p>That's it, time to go back up.</p>
  66. <a href="#/2" class="image">
  67. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  68. </a>
  69. </section>
  70. </section>
  71. <section>
  72. <h2>Holistic Overview</h2>
  73. <p>
  74. Press <strong>ESC</strong> to enter the slide overview!
  75. </p>
  76. </section>
  77. <section>
  78. <h2>Transition Styles</h2>
  79. <p>
  80. You can select from different transitions, like:
  81. </p>
  82. <ul>
  83. <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
  84. <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
  85. <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
  86. <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
  87. </ul>
  88. </section>
  89. <section>
  90. <h2>Marvelous Unordered List</h2>
  91. <ul>
  92. <li>No order here</li>
  93. <li>Or here</li>
  94. <li>Or here</li>
  95. <li>Or here</li>
  96. </ul>
  97. </section>
  98. <section>
  99. <h2>Fantastic Ordered List</h2>
  100. <ol>
  101. <li>One is smaller than...</li>
  102. <li>Two is smaller than...</li>
  103. <li>Three!</li>
  104. </ol>
  105. </section>
  106. <section>
  107. <section data-state="alert">
  108. <h2>Global State</h2>
  109. <p>
  110. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  111. will be added as a class to the document element when the slide is open. This let's you
  112. apply broader style changes, like switching the background.
  113. </p>
  114. <a href="#/7/1" class="image">
  115. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  116. </a>
  117. </section>
  118. <section data-state="blackout">
  119. <h2>"blackout"</h2>
  120. <a href="#/7/2" class="image">
  121. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  122. </a>
  123. </section>
  124. <section data-state="soothe">
  125. <h2>"soothe"</h2>
  126. <a href="#/7/0" class="image">
  127. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  128. </a>
  129. </section>
  130. </section>
  131. <section data-state="customevent">
  132. <h2>Custom Events</h2>
  133. <p>
  134. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  135. </p>
  136. <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
  137. alert( '"customevent" has fired' );
  138. } );
  139. </code></pre>
  140. </section>
  141. <section>
  142. <h2>Clever Quotes</h2>
  143. <p>
  144. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  145. The nice thing about standards is that there are so many to choose from</q> and block:
  146. </p>
  147. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  148. For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  149. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
  150. </blockquote>
  151. </section>
  152. <section>
  153. <h2>Pretty Code</h2>
  154. <pre><code contenteditable>
  155. var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
  156. document.body.style['MozPerspective'] !== undefined ||
  157. document.body.style['perspective'] !== undefined;
  158. function linkify( selector ) {
  159. if( supports3DTransforms ) {
  160. var nodes = document.querySelectorAll( selector );
  161. for( var i = 0, len = nodes.length; i < len; i++ ) {
  162. var node = nodes[i];
  163. if( !node.className || !node.className.match( /roll/g ) ) {
  164. node.className += ' roll';
  165. node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
  166. }
  167. };
  168. }
  169. }
  170. linkify( 'a' );
  171. </code></pre>
  172. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  173. </section>
  174. <section>
  175. <h2>Intergalactic Interconnections</h2>
  176. <p>
  177. You can link between slides internally,<br/>
  178. <a href="#/2/3">like this</a>.
  179. </p>
  180. </section>
  181. <section>
  182. <h2>Fragmented Views</h2>
  183. <p>Hit the next arrow...</p>
  184. <p class="fragment">... to step through ...</p>
  185. <ol>
  186. <li class="fragment"><code>any type</code></li>
  187. <li class="fragment"><em>of view</em></li>
  188. <li class="fragment"><strong>fragments</strong></li>
  189. </ol>
  190. </section>
  191. <section>
  192. <h2>Spectacular image!</h2>
  193. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  194. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
  195. </a>
  196. </section>
  197. <section>
  198. <h2>Stellar Links</h2>
  199. <ul>
  200. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  201. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  202. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  203. </ul>
  204. </section>
  205. <section>
  206. <h1>THE END</h1>
  207. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  208. </section>
  209. </div>
  210. <!-- The navigational controls UI -->
  211. <aside class="controls">
  212. <a class="left" href="#">&#x25C4;</a>
  213. <a class="right" href="#">&#x25BA;</a>
  214. <a class="up" href="#">&#x25B2;</a>
  215. <a class="down" href="#">&#x25BC;</a>
  216. </aside>
  217. <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
  218. <div class="progress"><span></span></div>
  219. </div>
  220. <script src="js/reveal.js"></script>
  221. <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
  222. <script src="lib/highlight.js"></script>
  223. <script src="lib/classList.js"></script>
  224. <script>
  225. // Parse the query string into a key/value object
  226. var query = {};
  227. location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
  228. query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
  229. } );
  230. // Fires when a slide with data-state=customevent is activated
  231. Reveal.addEventListener( 'customevent', function() {
  232. alert( '"customevent" has fired' );
  233. } );
  234. // Fires each time a new slide is activated
  235. Reveal.addEventListener( 'slidechanged', function( event ) {
  236. // event.indexh & event.indexv
  237. } );
  238. Reveal.initialize({
  239. // Display controls in the bottom right corner
  240. controls: true,
  241. // Display a presentation progress bar
  242. progress: true,
  243. // If true; each slide will be pushed to the browser history
  244. history: true,
  245. // Loops the presentation, defaults to false
  246. loop: false,
  247. // Flags if mouse wheel navigation should be enabled
  248. mouseWheel: true,
  249. // Apply a 3D roll to links on hover
  250. rollingLinks: true,
  251. // UI style
  252. theme: query.theme || 'default', // default/neon
  253. // Transition style
  254. transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
  255. });
  256. hljs.initHighlightingOnLoad();
  257. </script>
  258. </body>
  259. </html>