Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

demo.html 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  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="dist/reset.css">
  12. <link rel="stylesheet" href="dist/reveal.css">
  13. <link rel="stylesheet" href="dist/theme/black.css" id="theme">
  14. <!-- Theme used for syntax highlighting of code -->
  15. <link rel="stylesheet" href="plugin/highlight/monokai.css">
  16. </head>
  17. <body>
  18. <div class="reveal">
  19. <!-- Any section element inside of this container is displayed as a slide -->
  20. <div class="slides">
  21. <section>
  22. <a href="https://revealjs.com">
  23. <img src="https://static.slid.es/reveal/logo-v1/reveal-white-text.svg" alt="reveal.js logo" style="height: 180px; margin: 0 auto 4rem auto; background: transparent;" class="demo-logo">
  24. </a>
  25. <h3>The HTML Presentation Framework</h3>
  26. <p>
  27. <small>Created by <a href="http://hakim.se">Hakim El Hattab</a> and <a href="https://github.com/hakimel/reveal.js/graphs/contributors">contributors</a></small>
  28. </p>
  29. </section>
  30. <section>
  31. <h2>Hello There</h2>
  32. <p>
  33. reveal.js enables you to create beautiful interactive slide decks using HTML. This presentation will show you examples of what it can do.
  34. </p>
  35. </section>
  36. <!-- Example of nested vertical slides -->
  37. <section>
  38. <section>
  39. <h2>Vertical Slides</h2>
  40. <p>Slides can be nested inside of each other.</p>
  41. <p>Use the <em>Space</em> key to navigate through all slides.</p>
  42. <br>
  43. <a href="#/2/1" class="navigate-down">
  44. <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Down arrow">
  45. </a>
  46. </section>
  47. <section>
  48. <h2>Basement Level 1</h2>
  49. <p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
  50. </section>
  51. <section>
  52. <h2>Basement Level 2</h2>
  53. <p>That's it, time to go back up.</p>
  54. <br>
  55. <a href="#/2">
  56. <img class="r-frame" style="background: rgba(255,255,255,0.1); transform: rotate(180deg);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Up arrow">
  57. </a>
  58. </section>
  59. </section>
  60. <section>
  61. <h2>Slides</h2>
  62. <p>
  63. 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>.
  64. </p>
  65. </section>
  66. <section data-visibility="hidden">
  67. <h2>Hidden Slides</h2>
  68. <p>
  69. This slide is visible in the source, but hidden when the presentation is viewed. You can show all hidden slides by setting the `showHiddenSlides` config option to `true`.
  70. </p>
  71. </section>
  72. <section data-auto-animate>
  73. <h2 data-id="code-title">Pretty Code</h2>
  74. <pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers>
  75. import React, { useState } from 'react';
  76. function Example() {
  77. const [count, setCount] = useState(0);
  78. return (
  79. ...
  80. );
  81. }
  82. </code></pre>
  83. <p>Code syntax highlighting courtesy of <a href="https://highlightjs.org/usage/">highlight.js</a>.</p>
  84. </section>
  85. <section data-auto-animate>
  86. <h2 data-id="code-title">With Animations</h2>
  87. <pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
  88. import React, { useState } from 'react';
  89. function Example() {
  90. const [count, setCount] = useState(0);
  91. return (
  92. <div>
  93. <p>You clicked {count} times</p>
  94. <button onClick={() => setCount(count + 1)}>
  95. Click me
  96. </button>
  97. </div>
  98. );
  99. }
  100. function SecondExample() {
  101. const [count, setCount] = useState(0);
  102. return (
  103. <div>
  104. <p>You clicked {count} times</p>
  105. <button onClick={() => setCount(count + 1)}>
  106. Click me
  107. </button>
  108. </div>
  109. );
  110. }
  111. </script></code></pre>
  112. </section>
  113. <section>
  114. <h2>Point of View</h2>
  115. <p>
  116. Press <strong>ESC</strong> to enter the slide overview.
  117. </p>
  118. <p>
  119. 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.
  120. </p>
  121. <p>
  122. (NOTE: Use ctrl + click in Linux.)
  123. </p>
  124. </section>
  125. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  126. <h2>Auto-Animate</h2>
  127. <p>Automatically animate matching elements across slides with <a href="https://revealjs.com/auto-animate/">Auto-Animate</a>.</p>
  128. <div class="r-hstack justify-center">
  129. <div data-id="box1" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  130. <div data-id="box2" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  131. <div data-id="box3" style="background: #999; width: 50px; height: 50px; margin: 10px; border-radius: 5px;"></div>
  132. </div>
  133. </section>
  134. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  135. <div class="r-hstack justify-center">
  136. <div data-id="box1" data-auto-animate-delay="0" style="background: cyan; width: 150px; height: 100px; margin: 10px;"></div>
  137. <div data-id="box2" data-auto-animate-delay="0.1" style="background: magenta; width: 150px; height: 100px; margin: 10px;"></div>
  138. <div data-id="box3" data-auto-animate-delay="0.2" style="background: yellow; width: 150px; height: 100px; margin: 10px;"></div>
  139. </div>
  140. <h2 style="margin-top: 20px;">Auto-Animate</h2>
  141. </section>
  142. <section data-auto-animate data-auto-animate-easing="cubic-bezier(0.770, 0.000, 0.175, 1.000)">
  143. <div class="r-stack">
  144. <div data-id="box1" style="background: cyan; width: 300px; height: 300px; border-radius: 200px;"></div>
  145. <div data-id="box2" style="background: magenta; width: 200px; height: 200px; border-radius: 200px;"></div>
  146. <div data-id="box3" style="background: yellow; width: 100px; height: 100px; border-radius: 200px;"></div>
  147. </div>
  148. <h2 style="margin-top: 20px;">Auto-Animate</h2>
  149. </section>
  150. <section>
  151. <h2>Touch Optimized</h2>
  152. <p>
  153. Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
  154. </p>
  155. </section>
  156. <section data-markdown>
  157. <script type="text/template">
  158. ## Markdown Support
  159. Write content using inline or external Markdown.
  160. Instructions and more info available in the [docs](https://revealjs.com/markdown/).
  161. ```html []
  162. <section data-markdown>
  163. ## Markdown Support
  164. Write content using inline or external Markdown.
  165. Instructions and more info available in the [docs](https://revealjs.com/markdown/).
  166. </section>
  167. ```
  168. </script>
  169. </section>
  170. <section>
  171. <p>Add the <code>r-fit-text</code> class to auto-size text</p>
  172. <h2 class="r-fit-text">FIT TEXT</h2>
  173. </section>
  174. <section>
  175. <section id="fragments">
  176. <h2>Fragments</h2>
  177. <p>Hit the next arrow...</p>
  178. <p class="fragment">... to step through ...</p>
  179. <p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
  180. <aside class="notes">
  181. This slide has fragments which are also stepped through in the notes window.
  182. </aside>
  183. </section>
  184. <section>
  185. <h2>Fragment Styles</h2>
  186. <p>There's different types of fragments, like:</p>
  187. <p class="fragment grow">grow</p>
  188. <p class="fragment shrink">shrink</p>
  189. <p class="fragment fade-out">fade-out</p>
  190. <p>
  191. <span style="display: inline-block;" class="fragment fade-right">fade-right, </span>
  192. <span style="display: inline-block;" class="fragment fade-up">up, </span>
  193. <span style="display: inline-block;" class="fragment fade-down">down, </span>
  194. <span style="display: inline-block;" class="fragment fade-left">left</span>
  195. </p>
  196. <p class="fragment fade-in-then-out">fade-in-then-out</p>
  197. <p class="fragment fade-in-then-semi-out">fade-in-then-semi-out</p>
  198. <p>Highlight <span class="fragment highlight-red">red</span> <span class="fragment highlight-blue">blue</span> <span class="fragment highlight-green">green</span></p>
  199. </section>
  200. </section>
  201. <section id="transitions">
  202. <h2>Transition Styles</h2>
  203. <p>
  204. You can select from different transitions, like: <br>
  205. <a href="?transition=none#/transitions">None</a> -
  206. <a href="?transition=fade#/transitions">Fade</a> -
  207. <a href="?transition=slide#/transitions">Slide</a> -
  208. <a href="?transition=convex#/transitions">Convex</a> -
  209. <a href="?transition=concave#/transitions">Concave</a> -
  210. <a href="?transition=zoom#/transitions">Zoom</a>
  211. </p>
  212. </section>
  213. <section id="themes">
  214. <h2>Themes</h2>
  215. <p>
  216. reveal.js comes with a few themes built in: <br>
  217. <!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
  218. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/black.css'); return false;">Black (default)</a> -
  219. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/white.css'); return false;">White</a> -
  220. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/league.css'); return false;">League</a> -
  221. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/sky.css'); return false;">Sky</a> -
  222. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/beige.css'); return false;">Beige</a> -
  223. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/simple.css'); return false;">Simple</a> <br>
  224. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/serif.css'); return false;">Serif</a> -
  225. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/blood.css'); return false;">Blood</a> -
  226. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/night.css'); return false;">Night</a> -
  227. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/moon.css'); return false;">Moon</a> -
  228. <a href="#/themes" onclick="document.getElementById('theme').setAttribute('href','dist/theme/solarized.css'); return false;">Solarized</a>
  229. </p>
  230. </section>
  231. <section>
  232. <section data-background="#dddddd">
  233. <h2>Slide Backgrounds</h2>
  234. <p>
  235. Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
  236. </p>
  237. <a href="#" class="navigate-down">
  238. <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Down arrow">
  239. </a>
  240. </section>
  241. <section data-background-gradient="linear-gradient(to bottom, #283b95, #17b2c3)">
  242. <h2>Gradient Backgrounds</h2>
  243. <pre><code class="hljs html wrap">&lt;section data-background-gradient=
  244. "linear-gradient(to bottom, #ddd, #191919)"&gt;</code></pre>
  245. </section>
  246. <section data-background="https://static.slid.es/reveal/image-placeholder.png">
  247. <h2>Image Backgrounds</h2>
  248. <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
  249. </section>
  250. <section data-background="https://static.slid.es/reveal/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
  251. <h2>Tiled Backgrounds</h2>
  252. <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>
  253. </section>
  254. <section data-background-video="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4" data-background-color="#000000">
  255. <div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
  256. <h2>Video Backgrounds</h2>
  257. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-video="video.mp4,video.webm"&gt;</code></pre>
  258. </div>
  259. </section>
  260. <section data-background="http://i.giphy.com/90F8aUepslB84.gif">
  261. <h2>... and GIFs!</h2>
  262. </section>
  263. </section>
  264. <section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
  265. <h2>Background Transitions</h2>
  266. <p>
  267. Different background transitions are available via the backgroundTransition option. This one's called "zoom".
  268. </p>
  269. <pre><code class="hljs javascript">Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
  270. </section>
  271. <section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
  272. <h2>Background Transitions</h2>
  273. <p>
  274. You can override background transitions per-slide.
  275. </p>
  276. <pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
  277. </section>
  278. <section data-background-iframe="https://hakim.se" data-background-interactive>
  279. <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;">
  280. <h2>Iframe Backgrounds</h2>
  281. <p>Since reveal.js runs on the web, you can easily embed other web content. Try interacting with the page in the background.</p>
  282. </div>
  283. </section>
  284. <section>
  285. <h2>Marvelous List</h2>
  286. <ul>
  287. <li>No order here</li>
  288. <li>Or here</li>
  289. <li>Or here</li>
  290. <li>Or here</li>
  291. </ul>
  292. </section>
  293. <section>
  294. <h2>Fantastic Ordered List</h2>
  295. <ol>
  296. <li>One is smaller than...</li>
  297. <li>Two is smaller than...</li>
  298. <li>Three!</li>
  299. </ol>
  300. </section>
  301. <section>
  302. <h2>Tabular Tables</h2>
  303. <table>
  304. <thead>
  305. <tr>
  306. <th>Item</th>
  307. <th>Value</th>
  308. <th>Quantity</th>
  309. </tr>
  310. </thead>
  311. <tbody>
  312. <tr>
  313. <td>Apples</td>
  314. <td>$1</td>
  315. <td>7</td>
  316. </tr>
  317. <tr>
  318. <td>Lemonade</td>
  319. <td>$2</td>
  320. <td>18</td>
  321. </tr>
  322. <tr>
  323. <td>Bread</td>
  324. <td>$3</td>
  325. <td>2</td>
  326. </tr>
  327. </tbody>
  328. </table>
  329. </section>
  330. <section>
  331. <h2>Clever Quotes</h2>
  332. <p>
  333. 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:
  334. </p>
  335. <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
  336. &ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
  337. reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
  338. </blockquote>
  339. </section>
  340. <section>
  341. <h2>Intergalactic Interconnections</h2>
  342. <p>
  343. You can link between slides internally,
  344. <a href="#/2/3">like this</a>.
  345. </p>
  346. </section>
  347. <section>
  348. <h2>Speaker View</h2>
  349. <p>There's a <a href="https://revealjs.com/speaker-view/">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
  350. <p>Press the <em>S</em> key to try it out.</p>
  351. <aside class="notes">
  352. 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).
  353. </aside>
  354. </section>
  355. <section>
  356. <h2>Export to PDF</h2>
  357. <p>Presentations can be <a href="https://revealjs.com/pdf-export/">exported to PDF</a>, here's an example:</p>
  358. <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>
  359. </section>
  360. <section>
  361. <h2>Global State</h2>
  362. <p>
  363. Set <code>data-state="something"</code> on a slide and <code>"something"</code>
  364. will be added as a class to the document element when the slide is open. This lets you
  365. apply broader style changes, like switching the page background.
  366. </p>
  367. </section>
  368. <section data-state="customevent">
  369. <h2>State Events</h2>
  370. <p>
  371. Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
  372. </p>
  373. <pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
  374. Reveal.on( 'customevent', function() {
  375. console.log( '"customevent" has fired' );
  376. } );
  377. </code></pre>
  378. </section>
  379. <section>
  380. <h2>Take a Moment</h2>
  381. <p>
  382. 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.
  383. </p>
  384. </section>
  385. <section>
  386. <h2>Much more</h2>
  387. <ul>
  388. <li>Right-to-left support</li>
  389. <li><a href="https://revealjs.com/api/">Extensive JavaScript API</a></li>
  390. <li><a href="https://revealjs.com/auto-slide/">Auto-progression</a></li>
  391. <li><a href="https://revealjs.com/backgrounds/#parallax-background">Parallax backgrounds</a></li>
  392. <li><a href="https://revealjs.com/keyboard/">Custom keyboard bindings</a></li>
  393. </ul>
  394. </section>
  395. <section style="text-align: left;">
  396. <h1>THE END</h1>
  397. <p>
  398. - <a href="https://slides.com">Try the online editor</a> <br>
  399. - <a href="https://github.com/hakimel/reveal.js">Source code &amp; documentation</a>
  400. </p>
  401. </section>
  402. </div>
  403. </div>
  404. <script src="dist/reveal.js"></script>
  405. <script src="plugin/zoom/zoom.js"></script>
  406. <script src="plugin/notes/notes.js"></script>
  407. <script src="plugin/search/search.js"></script>
  408. <script src="plugin/markdown/markdown.js"></script>
  409. <script src="plugin/highlight/highlight.js"></script>
  410. <script>
  411. // Also available as an ES module, see:
  412. // https://revealjs.com/initialization/
  413. Reveal.initialize({
  414. controls: true,
  415. progress: true,
  416. center: true,
  417. hash: true,
  418. // Learn about plugins: https://revealjs.com/plugins/
  419. plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
  420. });
  421. </script>
  422. </body>
  423. </html>