presentations

Presentations
Log | Files | Refs

demo.html (16724B)


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