index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js – The HTML Presentation Framework</title>
  6. <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
  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. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="stylesheet" href="css/reset.css">
  12. <link rel="stylesheet" href="css/reveal.css">
  13. <link rel="stylesheet" href="css/theme/black.css" id="theme">
  14. <!-- Theme used for syntax highlighting of code -->
  15. <link rel="stylesheet" href="lib/css/monokai.css">
  16. <!-- Printing and PDF exports -->
  17. <script>
  18. var link = document.createElement( 'link' );
  19. link.rel = 'stylesheet';
  20. link.type = 'text/css';
  21. link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
  22. document.getElementsByTagName( 'head' )[0].appendChild( link );
  23. </script>
  24. <!--[if lt IE 9]>
  25. <script src="lib/js/html5shiv.js"></script>
  26. <![endif]-->
  27. </head>
  28. <body>
  29. <div class="reveal">
  30. <!-- Any section element inside of this container is displayed as a slide -->
  31. <div class="slides">
  32. <section>
  33. <h1>Reveal.js</h1>
  34. <h3>The HTML Presentation Framework</h3>
  35. <p>
  36. <small>Created by <a href="https://hakim.se">Hakim El Hattab</a> and <a href="https://github.com/hakimel/reveal.js/graphs/contributors">contributors</a></small>
  37. </p>
  38. <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CKYI553M&placement=revealjscom" id="_carbonads_js"></script>
  39. </section>
  40. <section>
  41. <h2>Hello There</h2>
  42. <p>
  43. reveal.js enables you to create beautiful interactive slide decks using HTML. This presentation will show you examples of what it can do.
  44. </p>
  45. </section>
  46. <!-- Example of nested vertical slides -->
  47. <section>
  48. <section>
  49. <h2>Vertical Slides</h2>
  50. <p>Slides can be nested inside of each other.</p>
  51. <p>Use the <em>Space</em> key to navigate through all slides.</p>
  52. <br>
  53. <a href="#" class="navigate-down">
  54. <img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  55. </a>
  56. </section>
  57. <section>
  58. <h2>Basement Level 1</h2>
  59. <p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
  60. </section>
  61. <section>
  62. <h2>Basement Level 2</h2>
  63. <p>That's it, time to go back up.</p>
  64. <br>
  65. <a href="#/2">
  66. <img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="transform: rotate(180deg); -webkit-transform: rotate(180deg);">
  67. </a>
  68. </section>
  69. </section>
  70. <section>
  71. <h2>Slides</h2>
  72. <p>
  73. Not a coder? Not a problem. There's a fully-featured visual editor for authoring these, try it out at <a href="https://slides.com" target="_blank">https://slides.com</a>.
  74. </p>
  75. </section>
  76. <section>
  77. <h2>Point of View</h2>
  78. <p>
  79. Press <strong>ESC</strong> to enter the slide overview.
  80. </p>
  81. <p>
  82. Hold down the <strong>alt</strong> key (<strong>ctrl</strong> in Linux) and click on any element to zoom towards it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Click again to zoom back out.
  83. </p>
  84. <p>
  85. (NOTE: Use ctrl + click in Linux.)
  86. </p>
  87. </section>
  88. <section>
  89. <h2>Touch Optimized</h2>
  90. <p>
  91. Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
  92. </p>
  93. </section>
  94. <section data-markdown>
  95. <script type="text/template">
  96. ## Markdown support
  97. Write content using inline or external Markdown.
  98. Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
  99. ```
  100. <section data-markdown>
  101. ## Markdown support
  102. Write content using inline or external Markdown.
  103. Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
  104. </section>
  105. ```
  106. </script>
  107. </section>
  108. <section>
  109. <section id="fragments">
  110. <h2>Fragments</h2>
  111. <p>Hit the next arrow...</p>
  112. <p class="fragment">... to step through ...</p>
  113. <p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
  114. <aside class="notes">
  115. This slide has fragments which are also stepped through in the notes window.
  116. </aside>
  117. </section>
  118. <section>
  119. <h2>Fragment Styles</h2>
  120. <p>There's different types of fragments, like:</p>
  121. <p class="fragment grow">grow</p>
  122. <p class="fragment shrink">shrink</p>
  123. <p class="fragment fade-out">fade-out</p>
  124. <p>
  125. <span style="display: inline-block;" class="fragment fade-right">fade-right, </span>
  126. <span style="display: inline-block;" class="fragment fade-up">up, </span>
  127. <span style="display: inline-block;" class="fragment fade-down">down, </span>
  128. <span style="display: inline-block;" class="fragment fade-left">left</span>
  129. </p>
  130. <p class="fragment fade-in-then-out">fade-in-then-out</p>
  131. <p class="fragment fade-in-then-semi-out">fade-in-then-semi-out</p>
  132. <p>Highlight <span class="fragment highlight-red">red</span> <span class="fragment highlight-blue">blue</span> <span class="fragment highlight-green">green</span></p>
  133. </section>
  134. </section>
  135. <section id="transitions">
  136. <h2>Transition Styles</h2>
  137. <p>
  138. You can select from different transitions, like: <br>
  139. <a href="?transition=none#/transitions">None</a> -
  140. <a href="?transition=fade#/transitions">Fade</a> -
  141. <a href="?transition=slide#/transitions">Slide</a> -
  142. <a href="?transition=convex#/transitions">Convex</a> -
  143. <a href="?transition=concave#/transitions">Concave</a> -
  144. <a href="?transition=zoom#/transitions">Zoom</a>
  145. </p>
  146. </section>
  147. <section id="themes">
  148. <h2>Themes</h2>
  149. <p>
  150. reveal.js comes with a few themes built in: <br>
  151. <!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
  152. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/black.css'); return false;">Black (default)</a> -
  153. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;">White</a> -
  154. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;">League</a> -
  155. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;">Sky</a> -
  156. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;">Beige</a> -
  157. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;">Simple</a> <br>
  158. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;">Serif</a> -
  159. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/blood.css'); return false;">Blood</a> -
  160. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;">Night</a> -
  161. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;">Moon</a> -
  162. <a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;">Solarized</a>
  163. </p>
  164. </section>
  165. <section>
  166. <section data-background="#dddddd">
  167. <h2>Slide Backgrounds</h2>
  168. <p>
  169. Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
  170. </p>
  171. <a href="#" class="navigate-down">
  172. <img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
  173. </a>
  174. </section>
  175. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png">
  176. <h2>Image Backgrounds</h2>
  177. <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
  178. </section>
  179. <section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
  180. <h2>Tiled Backgrounds</h2>
  181. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
  182. </section>
  183. <section data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm" data-background-color="#000000">
  184. <div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
  185. <h2>Video Backgrounds</h2>
  186. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-video="video.mp4,video.webm"&gt;</code></pre>
  187. </div>
  188. </section>
  189. <section data-background="http://i.giphy.com/90F8aUepslB84.gif">
  190. <h2>... and GIFs!</h2>
  191. </section>
  192. </section>
  193. <section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
  194. <h2>Background Transitions</h2>
  195. <p>
  196. Different background transitions are available via the backgroundTransition option. This one's called "zoom".
  197. </p>
  198. <pre><code class="hljs javascript">Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
  199. </section>
  200. <section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
  201. <h2>Background Transitions</h2>
  202. <p>
  203. You can override background transitions per-slide.
  204. </p>
  205. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
  206. </section>
  207. <section data-background-iframe="https://hakim.se" data-background-interactive>
  208. <div style="position: absolute; width: 40%; right: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 5px 25px rgba(0,0,0,0.2); background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px; font-size: 20px; text-align: left;">
  209. <h2>Iframe Backgrounds</h2>
  210. <p>Since reveal.js runs on the web, you can easily embed other web content. Try interacting with the page in the background.</p>
  211. </div>
  212. </section>
  213. <section>
  214. <h2>Pretty Code</h2>
  215. <pre><code class="hljs" data-trim data-line-numbers="4,8-9">
  216. import React, { useState } from 'react';
  217. function Example() {
  218. const [count, setCount] = useState(0);
  219. return (
  220. &lt;div&gt;
  221. &lt;p&gt;You clicked {count} times&lt;/p&gt;
  222. &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
  223. Click me
  224. &lt;/button&gt;
  225. &lt;/div&gt;
  226. );
  227. }
  228. </code></pre>
  229. <p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
  230. </section>
  231. <section>
  232. <h2>Marvelous List</h2>
  233. <ul>
  234. <li>No order here</li>
  235. <li>Or here</li>
  236. <li>Or here</li>
  237. <li>Or here</li>
  238. </ul>
  239. </section>
  240. <section>
  241. <h2>Fantastic Ordered List</h2>
  242. <ol>
  243. <li>One is smaller than...</li>
  244. <li>Two is smaller than...</li>
  245. <li>Three!</li>
  246. </ol>
  247. </section>
  248. <section>
  249. <h2>Tabular Tables</h2>
  250. <table>
  251. <thead>
  252. <tr>
  253. <th>Item</th>
  254. <th>Value</th>
  255. <th>Quantity</th>
  256. </tr>
  257. </thead>
  258. <tbody>
  259. <tr>
  260. <td>Apples</td>
  261. <td>$1</td>
  262. <td>7</td>
  263. </tr>
  264. <tr>
  265. <td>Lemonade</td>
  266. <td>$2</td>
  267. <td>18</td>
  268. </tr>
  269. <tr>
  270. <td>Bread</td>
  271. <td>$3</td>
  272. <td>2</td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. </section>
  277. <section>
  278. <h2>Clever Quotes</h2>
  279. <p>
  280. These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">The nice thing about standards is that there are so many to choose from</q> and block:
  281. </p>
  282. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  283. &ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  284. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
  285. </blockquote>
  286. </section>
  287. <section>
  288. <h2>Intergalactic Interconnections</h2>
  289. <p>
  290. You can link between slides internally,
  291. <a href="#/2/3">like this</a>.
  292. </p>
  293. </section>
  294. <section>
  295. <h2>Speaker View</h2>
  296. <p>There's a <a href="https://github.com/hakimel/reveal.js#speaker-notes">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
  297. <p>Press the <em>S</em> key to try it out.</p>
  298. <aside class="notes">
  299. Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
  300. </aside>
  301. </section>
  302. <section>
  303. <h2>Export to PDF</h2>
  304. <p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, here's an example:</p>
  305. <iframe data-src="https://www.slideshare.net/slideshow/embed_code/42840540" width="445" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:3px solid #666; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>
  306. </section>
  307. <section>
  308. <h2>Global State</h2>
  309. <p>
  310. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  311. will be added as a class to the document element when the slide is open. This lets you
  312. apply broader style changes, like switching the page background.
  313. </p>
  314. </section>
  315. <section data-state="customevent">
  316. <h2>State Events</h2>
  317. <p>
  318. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  319. </p>
  320. <pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
  321. Reveal.addEventListener( 'customevent', function() {
  322. console.log( '"customevent" has fired' );
  323. } );
  324. </code></pre>
  325. </section>
  326. <section>
  327. <h2>Take a Moment</h2>
  328. <p>
  329. Press B or . on your keyboard to pause the presentation. This is helpful when you're on stage and want to take distracting slides off the screen.
  330. </p>
  331. </section>
  332. <section>
  333. <h2>Much more</h2>
  334. <ul>
  335. <li>Right-to-left support</li>
  336. <li><a href="https://github.com/hakimel/reveal.js#api">Extensive JavaScript API</a></li>
  337. <li><a href="https://github.com/hakimel/reveal.js#auto-sliding">Auto-progression</a></li>
  338. <li><a href="https://github.com/hakimel/reveal.js#parallax-background">Parallax backgrounds</a></li>
  339. <li><a href="https://github.com/hakimel/reveal.js#keyboard-bindings">Custom keyboard bindings</a></li>
  340. </ul>
  341. </section>
  342. <section style="text-align: left;">
  343. <h1>THE END</h1>
  344. <p>
  345. - <a href="https://slides.com">Try the reveal.js editor</a> <br>
  346. - <a href="https://github.com/hakimel/reveal.js">Source code &amp; documentation</a>
  347. </p>
  348. </section>
  349. </div>
  350. </div>
  351. <script src="js/reveal.js"></script>
  352. <script>
  353. // More info https://github.com/hakimel/reveal.js#configuration
  354. Reveal.initialize({
  355. controls: true,
  356. progress: true,
  357. center: true,
  358. hash: true,
  359. transition: 'slide', // none/fade/slide/convex/concave/zoom
  360. // More info https://github.com/hakimel/reveal.js#dependencies
  361. dependencies: [
  362. { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  363. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  364. { src: 'plugin/highlight/highlight.js', async: true },
  365. { src: 'plugin/search/search.js', async: true },
  366. { src: 'plugin/zoom-js/zoom.js', async: true },
  367. { src: 'plugin/notes/notes.js', async: true }
  368. ]
  369. });
  370. </script>
  371. <!-- Everything below this point is only used for the reveal.js demo page -->
  372. <header class="reveal-header">
  373. <a class="reveal-header-button" href="https://github.com/hakimel/reveal.js">Source on <em>GitHub</em></a>
  374. <span class="reveal-header-delimiter">•</span>
  375. <a class="reveal-header-button" href="https://slides.com">Try the reveal.js <em>editor</em></a>
  376. <span class="reveal-header-delimiter">•</span>
  377. <a class="reveal-header-button" href="https://twitter.com/hakimel">@hakimel</a>
  378. </header>
  379. <style>
  380. .reveal-header {
  381. display: block;
  382. position: absolute;
  383. top: 12px;
  384. right: 16px;
  385. z-index: 20;
  386. color: #fff;
  387. font-family: "Source Sans Pro", Helvetica, sans-serif;
  388. font-size: 14px;
  389. letter-spacing: 0.05em;
  390. }
  391. .reveal-header-button {
  392. display: inline-block;
  393. padding: 14px 10px;
  394. color: rgba(255,255,255,0.7);
  395. text-transform: uppercase;
  396. text-decoration: none;
  397. font-weight: 500;
  398. box-sizing: border-box;
  399. text-align: center;
  400. }
  401. .reveal-header-button em {
  402. color: #fff;
  403. }
  404. .reveal-header-button:hover {
  405. color: #fff;
  406. background: rgba(0,0,0,0.2);
  407. }
  408. .reveal-header-button + .reveal-header-button {
  409. margin-left: 10px;
  410. }
  411. @media screen and (max-width: 500px) {
  412. body {
  413. display: flex;
  414. flex-direction: column;
  415. }
  416. .reveal-header {
  417. display: flex;
  418. position: initial;
  419. background: rgba(0,0,0,0.2);
  420. align-items: center;
  421. justify-content: flex-end;
  422. font-size: 13px;
  423. font-size: min(3.8vw, 14px);
  424. align-items: center;
  425. width: 100%;
  426. }
  427. .reveal-header-button {
  428. flex-grow: 1;
  429. margin: 0;
  430. padding-left: 4px;
  431. padding-right: 4px;
  432. text-transform: none;
  433. }
  434. .reveal-header-delimiter {
  435. display: none;
  436. }
  437. }
  438. /* Advertising */
  439. #carbonads {
  440. width: 370px;
  441. min-height: 100px;
  442. font-size: 18px;
  443. border: 1px solid rgba(255, 255, 255, 0.2);
  444. padding: 10px;
  445. margin: 40px auto 0 auto;
  446. font-size: 16px;
  447. z-index: 10;
  448. text-align: left;
  449. }
  450. #carbonads .carbon-img img {
  451. float: left;
  452. margin: 0 10px 0 0;
  453. border: 0;
  454. box-shadow: none;
  455. }
  456. #carbonads .carbon-poweredby {
  457. display: block;
  458. margin-top: 10px;
  459. color: #aaa;
  460. }
  461. </style>
  462. <script>
  463. var _gaq = [['_setAccount', 'UA-15240703-1'], ['_trackPageview']];
  464. (function(d, t) {
  465. var g = d.createElement(t),
  466. s = d.getElementsByTagName(t)[0];
  467. g.async = true;
  468. g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  469. s.parentNode.insertBefore(g, s);
  470. })(document, 'script');
  471. </script>
  472. </body>
  473. </html>