index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - HTML5 Presentations</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/css/zenburn.css">
  15. <!--[if lt IE 9]>
  16. <script src="lib/js/html5shiv.js"></script>
  17. <![endif]-->
  18. </head>
  19. <body>
  20. <div class="reveal">
  21. <!-- Used to fade in a background when a specific slide state is reached -->
  22. <div class="state-background"></div>
  23. <!-- Any section element inside of this container is displayed as a slide -->
  24. <div class="slides">
  25. <section>
  26. <h1>Reveal.js</h1>
  27. <h3 class="inverted">CSS 3D Presentations</h3>
  28. <script>
  29. // Delicously hacky. Look away.
  30. 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>' );
  31. </script>
  32. </section>
  33. <section>
  34. <h2>Heads Up</h2>
  35. <p>
  36. reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with
  37. support for CSS 3D transforms to see it in its full glory.
  38. </p>
  39. <p>
  40. <i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
  41. </p>
  42. <aside class="notes">
  43. Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you run the speaker notes server.
  44. </aside>
  45. </section>
  46. <!-- Example of nested vertical slides -->
  47. <section>
  48. <section>
  49. <h2>Vertical Slides</h2>
  50. <p>
  51. Slides can be nested inside of other slides,<br/>
  52. try pressing <a href="#/2/1">down</a>.
  53. </p>
  54. <a href="#/2/1" class="image">
  55. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  56. </a>
  57. </section>
  58. <section>
  59. <h2>Basement Level 1</h2>
  60. <p>Press down or up to navigate.</p>
  61. </section>
  62. <section>
  63. <h2>Basement Level 2</h2>
  64. <p>Cornify</p>
  65. <a class="test" href="http://cornify.com">
  66. <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
  67. </a>
  68. </section>
  69. <section>
  70. <h2>Basement Level 3</h2>
  71. <p>That's it, time to go back up.</p>
  72. <a href="#/2" class="image">
  73. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  74. </a>
  75. </section>
  76. </section>
  77. <section>
  78. <h2>Holistic Overview</h2>
  79. <p>
  80. Press <strong>ESC</strong> to enter the slide overview!
  81. </p>
  82. </section>
  83. <section>
  84. <h2>Works in Mobile Safari</h2>
  85. <p>
  86. Try it out! You can swipe through the slides pinch your way to the overview.
  87. </p>
  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 data-markdown>
  107. ## Markdown support
  108. For those of you who like that sort of thing.
  109. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
  110. <pre><code contenteditable style="margin-top: 20px;">&lt;section data-markdown&gt;
  111. ## Markdown support
  112. For those of you who like that sort of thing.
  113. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
  114. &lt;/section&gt;
  115. </code></pre>
  116. </section>
  117. <section>
  118. <h2>Transition Styles</h2>
  119. <p>
  120. You can select from different transitions, like:
  121. </p>
  122. <ul>
  123. <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
  124. <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
  125. <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
  126. <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
  127. </ul>
  128. </section>
  129. <section>
  130. <section data-state="alert">
  131. <h2>Global State</h2>
  132. <p>
  133. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  134. will be added as a class to the document element when the slide is open. This let's you
  135. apply broader style changes, like switching the background.
  136. </p>
  137. <a href="#/7/1" class="image">
  138. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  139. </a>
  140. </section>
  141. <section data-state="blackout">
  142. <h2>"blackout"</h2>
  143. <a href="#/7/2" class="image">
  144. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
  145. </a>
  146. </section>
  147. <section data-state="soothe">
  148. <h2>"soothe"</h2>
  149. <a href="#/7/0" class="image">
  150. <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
  151. </a>
  152. </section>
  153. </section>
  154. <section data-state="customevent">
  155. <h2>Custom Events</h2>
  156. <p>
  157. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  158. </p>
  159. <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
  160. console.log( '"customevent" has fired' );
  161. } );
  162. </code></pre>
  163. </section>
  164. <section>
  165. <h2>Clever Quotes</h2>
  166. <p>
  167. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  168. The nice thing about standards is that there are so many to choose from</q> and block:
  169. </p>
  170. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  171. For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  172. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
  173. </blockquote>
  174. </section>
  175. <section>
  176. <h2>Pretty Code</h2>
  177. <pre><code contenteditable>
  178. function linkify( selector ) {
  179. if( supports3DTransforms ) {
  180. var nodes = document.querySelectorAll( selector );
  181. for( var i = 0, len = nodes.length; i < len; i++ ) {
  182. var node = nodes[i];
  183. if( !node.className ) ) {
  184. node.className += ' roll';
  185. }
  186. };
  187. }
  188. }
  189. </code></pre>
  190. <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  191. </section>
  192. <section>
  193. <h2>Intergalactic Interconnections</h2>
  194. <p>
  195. You can link between slides internally,<br/>
  196. <a href="#/2/3">like this</a>.
  197. </p>
  198. </section>
  199. <section>
  200. <h2>Fragmented Views</h2>
  201. <p>Hit the next arrow...</p>
  202. <p class="fragment">... to step through ...</p>
  203. <ol>
  204. <li class="fragment"><code>any type</code></li>
  205. <li class="fragment"><em>of view</em></li>
  206. <li class="fragment"><strong>fragments</strong></li>
  207. </ol>
  208. </section>
  209. <section>
  210. <h2>Spectacular image!</h2>
  211. <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
  212. <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
  213. </a>
  214. </section>
  215. <section>
  216. <h2>Stellar Links</h2>
  217. <ul>
  218. <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
  219. <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
  220. <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
  221. </ul>
  222. </section>
  223. <section>
  224. <h1>THE END</h1>
  225. <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
  226. </section>
  227. </div>
  228. <!-- The navigational controls UI -->
  229. <aside class="controls">
  230. <a class="left" href="#">&#x25C4;</a>
  231. <a class="right" href="#">&#x25BA;</a>
  232. <a class="up" href="#">&#x25B2;</a>
  233. <a class="down" href="#">&#x25BC;</a>
  234. </aside>
  235. <!-- Presentation progress bar -->
  236. <div class="progress"><span></span></div>
  237. </div>
  238. <script src="lib/js/head.min.js"></script>
  239. <script>
  240. var multiplex = {
  241. id: null
  242. , secret: null
  243. , url: 'revealjs.jit.su'
  244. };
  245. var notes = false;
  246. head.ready( function() {
  247. // Fires when a slide with data-state=customevent is activated
  248. Reveal.addEventListener( 'customevent', function() {
  249. console.log( '"customevent" has fired' );
  250. } );
  251. // Fires each time a new slide is activated
  252. Reveal.addEventListener( 'slidechanged', function( event ) {
  253. // event.previousSlide, event.currentSlide, event.indexh, event.indexv
  254. } );
  255. // Full list of configuration options available here:
  256. // https://github.com/hakimel/reveal.js#configuration
  257. Reveal.initialize({
  258. controls: true,
  259. progress: true,
  260. history: true,
  261. theme: Reveal.getQueryHash().theme || 'default', // default/neon/beige
  262. transition: Reveal.getQueryHash().transition || 'default' // default/cube/page/concave/linear(2d)
  263. });
  264. // Load highlight.js for syntax highlighting of code samples
  265. head.js( 'lib/js/highlight.js', function() {
  266. hljs.initHighlightingOnLoad();
  267. } );
  268. } );
  269. // Scripts that should be loaded before initializing
  270. var scripts = [];
  271. // If the browser doesn't support classList, load a polyfill
  272. if( !document.body.classList ) {
  273. head.js( 'lib/js/classList.js' );
  274. }
  275. // Load markdown parser if there are slides defined using markdown
  276. if( document.querySelector( '[data-markdown]' ) ) {
  277. scripts.push( 'lib/js/showdown.js' );
  278. scripts.push( 'lib/js/data-markdown.js' );
  279. }
  280. scripts.push( 'js/reveal.js' );
  281. // If we're runnning the notes server we need to include some additional JS
  282. // TODO Is there a better way to determine if we're running the notes server?
  283. if( window.location.host === 'localhost:1947' || notes === true) {
  284. scripts.push( 'socket.io/socket.io.js' );
  285. scripts.push( 'plugin/speakernotes/client.js' );
  286. }
  287. if( multiplex.id !== null ) {
  288. scripts.push( 'socket.io/socket.io.js' );
  289. scripts.push( 'plugin/multiplex/client.js' );
  290. if( multiplex.secret !== null ) {
  291. scripts.push( 'plugin/multiplex/master.js' );
  292. }
  293. }
  294. // Load the scripts and, when completed, initialize reveal.js
  295. head.js.apply( null, scripts );
  296. </script>
  297. </body>
  298. </html>