index.html 8.1 KB

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