index.html 15.3 KB
Newer Older
1
<!doctype html>
Hakim El Hattab's avatar
Hakim El Hattab committed
2
<html lang="en">
3

Hakim El Hattab's avatar
Hakim El Hattab committed
4
5
	<head>
		<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
13

		<meta name="apple-mobile-web-app-capable" content="yes" />
		<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, maximum-scale=1.0, user-scalable=no, minimal-ui">
16

17
		<link rel="stylesheet" href="css/reveal.css">
18
		<link rel="stylesheet" href="css/theme/black.css" id="theme">
19
20

		<!-- For syntax highlighting -->
21
		<link rel="stylesheet" href="lib/css/zenburn.css">
hakimel's avatar
hakimel committed
22

23
		<!-- Include the appropriate print stylesheet -->
24
		<script>
25
26
27
28
29
			var link = document.createElement( 'link' );
			link.rel = 'stylesheet';
			link.type = 'text/css';
			link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
			document.getElementsByTagName( 'head' )[0].appendChild( link );
30
31
		</script>

hakimel's avatar
hakimel committed
32
33
34
		<!--[if lt IE 9]>
		<script src="lib/js/html5shiv.js"></script>
		<![endif]-->
Hakim El Hattab's avatar
Hakim El Hattab committed
35
	</head>
36

Hakim El Hattab's avatar
Hakim El Hattab committed
37
	<body>
38

39
		<div class="reveal">
40

41
42
43
44
			<!-- Any section element inside of this container is displayed as a slide -->
			<div class="slides">
				<section>
					<h1>Reveal.js</h1>
Hakim El Hattab's avatar
typo    
Hakim El Hattab committed
45
					<h3>The HTML Presentation Framework</h3>
46
47
48
					<p>
						<small>Created by <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small>
					</p>
49
				</section>
50

Hakim El Hattab's avatar
Hakim El Hattab committed
51
				<section>
Hakim El Hattab's avatar
Hakim El Hattab committed
52
					<h2>Hello There</h2>
Hakim El Hattab's avatar
Hakim El Hattab committed
53
					<p>
Hakim El Hattab's avatar
Hakim El Hattab committed
54
						reveal.js is a framework that enables you to create beautiful presentations using HTML. This demo presentation will tell you more about what you can do with it.
55
					</p>
Hakim El Hattab's avatar
Hakim El Hattab committed
56
				</section>
57

58
				<!-- Example of nested vertical slides -->
Hakim El Hattab's avatar
Hakim El Hattab committed
59
				<section>
60
61
					<section>
						<h2>Vertical Slides</h2>
62
63
64
						<p>Slides can be nested inside of each other.</p>
						<p>Use the <em>Space</em> key to navigate through all slides.</p>
						<br>
65
						<a href="#" class="navigate-down">
66
							<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
67
68
69
70
						</a>
					</section>
					<section>
						<h2>Basement Level 1</h2>
71
						<p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
72
73
74
75
					</section>
					<section>
						<h2>Basement Level 2</h2>
						<p>That's it, time to go back up.</p>
76
						<br>
77
						<a href="#/2">
78
							<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(180deg);">
79
80
						</a>
					</section>
Hakim El Hattab's avatar
Hakim El Hattab committed
81
				</section>
82

Hakim El Hattab's avatar
Hakim El Hattab committed
83
				<section>
Hakim El Hattab's avatar
Hakim El Hattab committed
84
					<h2>Slides</h2>
85
					<p>
Hakim El Hattab's avatar
Hakim El Hattab committed
86
						Not a coder? No problem. There's a fully-featured visual editor for authoring these, try it out at <a href="http://slides.com" target="_blank">http://slides.com</a>.
87
					</p>
88
89
				</section>

90
				<section>
Hakim El Hattab's avatar
Hakim El Hattab committed
91
					<h2>Point of View</h2>
92
					<p>
Hakim El Hattab's avatar
Hakim El Hattab committed
93
94
95
96
						Press <strong>ESC</strong> to enter the slide overview.
					</p>
					<p>
						Hold down alt and click on any element to zoom in on it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Alt + click anywhere to zoom back out.
97
98
99
					</p>
				</section>

100
				<section>
101
					<h2>Touch Optimized</h2>
102
					<p>
103
						Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
104
105
106
					</p>
				</section>

107
				<section data-markdown>
108
109
					<script type="text/template">
						## Markdown support
110

111
112
						Write content using inline or external Markdown.
						Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
113

114
115
116
117
						```
						<section data-markdown>
						  ## Markdown support

118
119
						  Write content using inline or external Markdown.
						  Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
120
121
						</section>
						```
122
					</script>
123
124
				</section>

125
126
127
128
129
				<section>
					<section id="fragments">
						<h2>Fragments</h2>
						<p>Hit the next arrow...</p>
						<p class="fragment">... to step through ...</p>
130
						<p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
131
132
133
134
135
136
137

						<aside class="notes">
							This slide has fragments which are also stepped through in the notes window.
						</aside>
					</section>
					<section>
						<h2>Fragment Styles</h2>
138
						<p>There's different types of fragments, like:</p>
139
140
141
142
143
						<p class="fragment grow">grow</p>
						<p class="fragment shrink">shrink</p>
						<p class="fragment roll-in">roll-in</p>
						<p class="fragment fade-out">fade-out</p>
						<p class="fragment current-visible">current-visible</p>
144
145
						<p class="fragment highlight-red">highlight-red</p>
						<p class="fragment highlight-blue">highlight-blue</p>
146
147
148
					</section>
				</section>

149
				<section id="transitions">
150
151
					<h2>Transition Styles</h2>
					<p>
152
						You can select from different transitions, like: <br>
153
						<a href="?transition=none#/transitions">None</a> -
154
155
						<a href="?transition=fade#/transitions">Fade</a> -
						<a href="?transition=slide#/transitions">Slide</a> -
156
						<a href="?transition=convex#/transitions">Convex</a> -
157
158
						<a href="?transition=concave#/transitions">Concave</a> -
						<a href="?transition=zoom#/transitions">Zoom</a>
159
160
161
					</p>
				</section>

162
				<section id="themes">
163
164
					<h2>Themes</h2>
					<p>
165
						reveal.js comes with a few themes built in: <br>
166
						<!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
Hakim El Hattab's avatar
Hakim El Hattab committed
167
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/black.css'); return false;">Black (default)</a> -
168
169
170
171
172
173
174
175
176
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;">White</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;">League</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;">Sky</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;">Beige</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;">Simple</a> <br>
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;">Serif</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;">Night</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;">Moon</a> -
						<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;">Solarized</a>
177
178
179
					</p>
					<p>
						<small>
180
							* Theme demos are loaded after the presentation which leads to flicker. In production you should load your theme in the &lt;head&gt; using a &lt;link&gt;.
181
182
183
184
						</small>
					</p>
				</section>

185
				<section>
186
					<section data-background="#dddddd">
187
						<h2>Slide Backgrounds</h2>
188
						<p>
189
							Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
190
						</p>
191
						<a href="#" class="navigate-down">
192
							<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
193
194
						</a>
					</section>
195
					<section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png">
196
197
						<h2>Image Backgrounds</h2>
						<pre><code>&lt;section data-background="image.png"&gt;</code></pre>
198
					</section>
199
					<section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
200
						<h2>Tiled Backgrounds</h2>
201
						<pre><code style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
202
					</section>
203
204
205
206
207
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">
						<div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
							<h2>Video Backgrounds</h2>
							<pre><code style="word-wrap: break-word;">&lt;section data-background-video="http://example.com/video.mp4,http://example.com/video.webm" data-background-color="#000000"&gt;</code></pre>
						</div>
					</section>
209
210
				</section>

211
				<section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
212
213
					<h2>Background Transitions</h2>
					<p>
214
						Different background transitions are available via the backgroundTransition option. This one's called "zoom".
215
					</p>
216
					<pre><code>Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
217
218
				</section>

219
				<section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
220
					<h2>Background Transitions</h2>
221
					<p>
222
						You can override background transitions per-slide.
223
					</p>
224
					<pre><code style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
225
226
				</section>

227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
				<section>
					<h2>Pretty Code</h2>
					<pre><code data-trim contenteditable>
function linkify( selector ) {
  if( supports3DTransforms ) {

    var nodes = document.querySelectorAll( selector );

    for( var i = 0, len = nodes.length; i &lt; len; i++ ) {
      var node = nodes[i];

      if( !node.className ) {
        node.className += ' roll';
      }
    }
  }
}
					</code></pre>
					<p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
				</section>

248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
				<section>
					<h2>Marvelous List</h2>
					<ul>
						<li>No order here</li>
						<li>Or here</li>
						<li>Or here</li>
						<li>Or here</li>
					</ul>
				</section>

				<section>
					<h2>Fantastic Ordered List</h2>
					<ol>
						<li>One is smaller than...</li>
						<li>Two is smaller than...</li>
						<li>Three!</li>
					</ol>
				</section>

				<section>
268
					<h2>Tabular Tables</h2>
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
					<table>
						<thead>
							<tr>
								<th>Item</th>
								<th>Value</th>
								<th>Quantity</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>Apples</td>
								<td>$1</td>
								<td>7</td>
							<tr>
							<tr>
								<td>Lemonade</td>
								<td>$2</td>
								<td>18</td>
							<tr>
							<tr>
								<td>Bread</td>
								<td>$3</td>
								<td>2</td>
							<tr>
						</tbody>
					</table>
				</section>

297
298
299
300
				<section>
					<h2>Clever Quotes</h2>
					<p>
						These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
Hakim El Hattab's avatar
Hakim El Hattab committed
301
						&ldquo;The nice thing about standards is that there are so many to choose from&rdquo;</q> and block:
302
303
					</p>
					<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
Hakim El Hattab's avatar
Hakim El Hattab committed
304
305
						&ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
						reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
306
307
					</blockquote>
				</section>
308

309
310
311
				<section>
					<h2>Intergalactic Interconnections</h2>
					<p>
312
						You can link between slides internally,
313
314
315
						<a href="#/2/3">like this</a>.
					</p>
				</section>
316

317
				<section>
318
319
320
321
322
323
324
					<h2>Speaker View</h2>
					<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>
					<p>Press the <em>S</em> key to try it out.</p>

					<aside class="notes">
						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).
					</aside>
325
				</section>
326

327
328
				<section>
					<h2>Export to PDF</h2>
Hakim El Hattab's avatar
Hakim El Hattab committed
329
330
					<p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, here's an example:</p>
					<iframe src="//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>
331
				</section>
332

333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
				<section>
					<h2>Global State</h2>
					<p>
						Set <code>data-state="something"</code> on a slide and <code>"something"</code>
						will be added as a class to the document element when the slide is open. This lets you
						apply broader style changes, like switching the page background.
					</p>
				</section>

				<section data-state="customevent">
					<h2>State Events</h2>
					<p>
						Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
					</p>
					<pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
Reveal.addEventListener( 'customevent', function() {
	console.log( '"customevent" has fired' );
} );
					</code></pre>
				</section>

354
355
356
				<section>
					<h2>Take a Moment</h2>
					<p>
357
						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.
358
359
360
					</p>
				</section>

361
362
363
364
365
366
367
368
369
				<section>
					<h2>Much more</h2>
					<ul>
						<li>Right-to-left support</li>
						<li><a href="https://github.com/hakimel/reveal.js#auto-sliding">Auto-progression</a></li>
						<li><a href="https://github.com/hakimel/reveal.js#parallax-background">Parallax backgrounds</a></li>
					</ul>
				</section>

370
371
372
				<section>
					<h2>Stellar Links</h2>
					<ul>
Hakim El Hattab's avatar
Hakim El Hattab committed
373
						<li><a href="http://slid.es">Try the online editor</a></li>
Hakim El Hattab's avatar
Hakim El Hattab committed
374
						<li><a href="https://github.com/hakimel/reveal.js">Source code on GitHub</a></li>
375
376
377
						<li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
					</ul>
				</section>
Hakim El Hattab's avatar
Hakim El Hattab committed
378

379
380
				<section>
					<h1>THE END</h1>
381
					<h3>BY Hakim El Hattab / hakim.se</h3>
382
				</section>
383

384
			</div>
385

Hakim El Hattab's avatar
Hakim El Hattab committed
386
		</div>
387

388
		<script src="lib/js/head.min.js"></script>
389
		<script src="js/reveal.js"></script>
390

391
		<script>
392

393
394
395
396
397
398
			// Full list of configuration options available here:
			// https://github.com/hakimel/reveal.js#configuration
			Reveal.initialize({
				controls: true,
				progress: true,
				history: true,
399
				center: true,
400

401
				transition: 'slide', // none/fade/slide/convex/concave/zoom
402

403
404
405
				// Optional libraries used to extend on reveal.js
				dependencies: [
					{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
406
					{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
407
					{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
408
					{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
409
410
					{ src: 'plugin/zoom-js/zoom.js', async: true },
					{ src: 'plugin/notes/notes.js', async: true }
411
412
				]
			});
413

414
		</script>
415

Hakim El Hattab's avatar
Hakim El Hattab committed
416
	</body>
417
</html>