reveal.rb 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile.lock +15 -1
- data/README.md +8 -1
- data/Rakefile +7 -0
- data/lib/reveal/cli.rb +15 -97
- data/lib/reveal/command.rb +109 -0
- data/lib/reveal/templates/revealjs/css/print/paper.css +193 -167
- data/lib/reveal/templates/revealjs/css/print/pdf.css +20 -53
- data/lib/reveal/templates/revealjs/css/reveal.css +1175 -0
- data/lib/reveal/templates/revealjs/css/theme/beige.css +183 -60
- data/lib/reveal/templates/revealjs/css/theme/black.css +267 -0
- data/lib/reveal/templates/revealjs/css/theme/blood.css +190 -80
- data/lib/reveal/templates/revealjs/css/theme/league.css +273 -0
- data/lib/reveal/templates/revealjs/css/theme/moon.css +174 -51
- data/lib/reveal/templates/revealjs/css/theme/night.css +171 -42
- data/lib/reveal/templates/revealjs/css/theme/serif.css +187 -58
- data/lib/reveal/templates/revealjs/css/theme/simple.css +179 -50
- data/lib/reveal/templates/revealjs/css/theme/sky.css +176 -47
- data/lib/reveal/templates/revealjs/css/theme/solarized.css +174 -51
- data/lib/reveal/templates/revealjs/css/theme/white.css +267 -0
- data/lib/reveal/templates/revealjs/index.html +411 -0
- data/lib/reveal/templates/revealjs/js/reveal.js +4508 -0
- data/lib/reveal/templates/revealjs/lib/css/zenburn.css +74 -71
- data/lib/reveal/templates/revealjs/lib/font/{league_gothic_license → league-gothic/LICENSE} +0 -0
- data/lib/reveal/templates/revealjs/lib/font/league-gothic/league-gothic.css +10 -0
- data/lib/reveal/templates/revealjs/lib/font/league-gothic/league-gothic.eot +0 -0
- data/lib/reveal/templates/revealjs/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/lib/reveal/templates/revealjs/lib/font/league-gothic/league-gothic.woff +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/LICENSE +45 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/lib/reveal/templates/revealjs/lib/js/html5shiv.js +0 -0
- data/lib/reveal/templates/revealjs/plugin/highlight/highlight.js +2 -4
- data/lib/reveal/templates/revealjs/plugin/leap/leap.js +4 -2
- data/lib/reveal/templates/revealjs/plugin/markdown/example.html +3 -3
- data/lib/reveal/templates/revealjs/plugin/markdown/example.md +0 -0
- data/lib/reveal/templates/revealjs/plugin/markdown/markdown.js +10 -9
- data/lib/reveal/templates/revealjs/plugin/markdown/marked.js +2 -33
- data/lib/reveal/templates/revealjs/plugin/math/math.js +1 -1
- data/lib/reveal/templates/revealjs/plugin/multiplex/client.js +0 -0
- data/lib/reveal/templates/revealjs/plugin/multiplex/index.js +0 -0
- data/lib/reveal/templates/revealjs/plugin/multiplex/master.js +0 -0
- data/lib/reveal/templates/revealjs/plugin/notes/notes.html +321 -182
- data/lib/reveal/templates/revealjs/plugin/notes/notes.js +89 -45
- data/lib/reveal/templates/revealjs/plugin/notes-server/client.js +49 -46
- data/lib/reveal/templates/revealjs/plugin/notes-server/index.js +28 -21
- data/lib/reveal/templates/revealjs/plugin/notes-server/notes.html +351 -97
- data/lib/reveal/templates/revealjs/plugin/print-pdf/print-pdf.js +24 -20
- data/lib/reveal/templates/revealjs/plugin/remotes/remotes.js +0 -0
- data/lib/reveal/templates/revealjs/plugin/search/search.js +0 -0
- data/lib/reveal/templates/revealjs/plugin/zoom-js/zoom.js +78 -58
- data/lib/reveal/templates/template.html +17 -24
- data/lib/reveal/version.rb +1 -1
- data/lib/reveal.rb +1 -0
- data/reveal.rb.gemspec +3 -0
- data/spec/lib/reveal/cli_spec.rb +26 -0
- data/spec/lib/reveal/command_spec.rb +165 -0
- metadata +65 -28
- data/lib/reveal/templates/revealjs/css/reveal.min.css +0 -7
- data/lib/reveal/templates/revealjs/css/theme/README.md +0 -25
- data/lib/reveal/templates/revealjs/css/theme/default.css +0 -148
- data/lib/reveal/templates/revealjs/css/theme/source/beige.scss +0 -50
- data/lib/reveal/templates/revealjs/css/theme/source/blood.scss +0 -91
- data/lib/reveal/templates/revealjs/css/theme/source/default.scss +0 -42
- data/lib/reveal/templates/revealjs/css/theme/source/moon.scss +0 -68
- data/lib/reveal/templates/revealjs/css/theme/source/night.scss +0 -35
- data/lib/reveal/templates/revealjs/css/theme/source/serif.scss +0 -35
- data/lib/reveal/templates/revealjs/css/theme/source/simple.scss +0 -38
- data/lib/reveal/templates/revealjs/css/theme/source/sky.scss +0 -46
- data/lib/reveal/templates/revealjs/css/theme/source/solarized.scss +0 -74
- data/lib/reveal/templates/revealjs/css/theme/template/mixins.scss +0 -29
- data/lib/reveal/templates/revealjs/css/theme/template/settings.scss +0 -34
- data/lib/reveal/templates/revealjs/css/theme/template/theme.scss +0 -170
- data/lib/reveal/templates/revealjs/js/reveal.min.js +0 -9
- data/lib/reveal/templates/revealjs/lib/font/league_gothic-webfont.eot +0 -0
- data/lib/reveal/templates/revealjs/lib/font/league_gothic-webfont.svg +0 -230
- data/lib/reveal/templates/revealjs/lib/font/league_gothic-webfont.ttf +0 -0
- data/lib/reveal/templates/revealjs/lib/font/league_gothic-webfont.woff +0 -0
- data/lib/reveal/templates/revealjs/plugin/postmessage/example.html +0 -39
- data/lib/reveal/templates/revealjs/plugin/postmessage/postmessage.js +0 -42
@@ -0,0 +1,267 @@
|
|
1
|
+
@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
|
2
|
+
/**
|
3
|
+
* White theme for reveal.js. This is the opposite of the 'black' theme.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2015 Hakim El Hattab, http://hakim.se
|
6
|
+
*/
|
7
|
+
section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
|
8
|
+
color: #fff; }
|
9
|
+
|
10
|
+
/*********************************************
|
11
|
+
* GLOBAL STYLES
|
12
|
+
*********************************************/
|
13
|
+
body {
|
14
|
+
background: #fff;
|
15
|
+
background-color: #fff; }
|
16
|
+
|
17
|
+
.reveal {
|
18
|
+
font-family: 'Source Sans Pro', Helvetica, sans-serif;
|
19
|
+
font-size: 38px;
|
20
|
+
font-weight: normal;
|
21
|
+
color: #222; }
|
22
|
+
|
23
|
+
::selection {
|
24
|
+
color: #fff;
|
25
|
+
background: #98bdef;
|
26
|
+
text-shadow: none; }
|
27
|
+
|
28
|
+
.reveal .slides > section, .reveal .slides > section > section {
|
29
|
+
line-height: 1.3;
|
30
|
+
font-weight: inherit; }
|
31
|
+
|
32
|
+
/*********************************************
|
33
|
+
* HEADERS
|
34
|
+
*********************************************/
|
35
|
+
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
|
36
|
+
margin: 0 0 20px 0;
|
37
|
+
color: #222;
|
38
|
+
font-family: 'Source Sans Pro', Helvetica, sans-serif;
|
39
|
+
font-weight: 600;
|
40
|
+
line-height: 1.2;
|
41
|
+
letter-spacing: normal;
|
42
|
+
text-transform: uppercase;
|
43
|
+
text-shadow: none;
|
44
|
+
word-wrap: break-word; }
|
45
|
+
|
46
|
+
.reveal h1 {
|
47
|
+
font-size: 2.5em; }
|
48
|
+
|
49
|
+
.reveal h2 {
|
50
|
+
font-size: 1.6em; }
|
51
|
+
|
52
|
+
.reveal h3 {
|
53
|
+
font-size: 1.3em; }
|
54
|
+
|
55
|
+
.reveal h4 {
|
56
|
+
font-size: 1em; }
|
57
|
+
|
58
|
+
.reveal h1 {
|
59
|
+
text-shadow: none; }
|
60
|
+
|
61
|
+
/*********************************************
|
62
|
+
* OTHER
|
63
|
+
*********************************************/
|
64
|
+
.reveal p {
|
65
|
+
margin: 20px 0;
|
66
|
+
line-height: 1.3; }
|
67
|
+
|
68
|
+
/* Ensure certain elements are never larger than the slide itself */
|
69
|
+
.reveal img, .reveal video, .reveal iframe {
|
70
|
+
max-width: 95%;
|
71
|
+
max-height: 95%; }
|
72
|
+
|
73
|
+
.reveal strong, .reveal b {
|
74
|
+
font-weight: bold; }
|
75
|
+
|
76
|
+
.reveal em {
|
77
|
+
font-style: italic; }
|
78
|
+
|
79
|
+
.reveal ol, .reveal dl, .reveal ul {
|
80
|
+
display: inline-block;
|
81
|
+
text-align: left;
|
82
|
+
margin: 0 0 0 1em; }
|
83
|
+
|
84
|
+
.reveal ol {
|
85
|
+
list-style-type: decimal; }
|
86
|
+
|
87
|
+
.reveal ul {
|
88
|
+
list-style-type: disc; }
|
89
|
+
|
90
|
+
.reveal ul ul {
|
91
|
+
list-style-type: square; }
|
92
|
+
|
93
|
+
.reveal ul ul ul {
|
94
|
+
list-style-type: circle; }
|
95
|
+
|
96
|
+
.reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
|
97
|
+
display: block;
|
98
|
+
margin-left: 40px; }
|
99
|
+
|
100
|
+
.reveal dt {
|
101
|
+
font-weight: bold; }
|
102
|
+
|
103
|
+
.reveal dd {
|
104
|
+
margin-left: 40px; }
|
105
|
+
|
106
|
+
.reveal q, .reveal blockquote {
|
107
|
+
quotes: none; }
|
108
|
+
|
109
|
+
.reveal blockquote {
|
110
|
+
display: block;
|
111
|
+
position: relative;
|
112
|
+
width: 70%;
|
113
|
+
margin: 20px auto;
|
114
|
+
padding: 5px;
|
115
|
+
font-style: italic;
|
116
|
+
background: rgba(255, 255, 255, 0.05);
|
117
|
+
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
|
118
|
+
|
119
|
+
.reveal blockquote p:first-child, .reveal blockquote p:last-child {
|
120
|
+
display: inline-block; }
|
121
|
+
|
122
|
+
.reveal q {
|
123
|
+
font-style: italic; }
|
124
|
+
|
125
|
+
.reveal pre {
|
126
|
+
display: block;
|
127
|
+
position: relative;
|
128
|
+
width: 90%;
|
129
|
+
margin: 20px auto;
|
130
|
+
text-align: left;
|
131
|
+
font-size: 0.55em;
|
132
|
+
font-family: monospace;
|
133
|
+
line-height: 1.2em;
|
134
|
+
word-wrap: break-word;
|
135
|
+
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
|
136
|
+
|
137
|
+
.reveal code {
|
138
|
+
font-family: monospace; }
|
139
|
+
|
140
|
+
.reveal pre code {
|
141
|
+
display: block;
|
142
|
+
padding: 5px;
|
143
|
+
overflow: auto;
|
144
|
+
max-height: 400px;
|
145
|
+
word-wrap: normal;
|
146
|
+
background: #3F3F3F;
|
147
|
+
color: #DCDCDC; }
|
148
|
+
|
149
|
+
.reveal table {
|
150
|
+
margin: auto;
|
151
|
+
border-collapse: collapse;
|
152
|
+
border-spacing: 0; }
|
153
|
+
|
154
|
+
.reveal table th {
|
155
|
+
font-weight: bold; }
|
156
|
+
|
157
|
+
.reveal table th, .reveal table td {
|
158
|
+
text-align: left;
|
159
|
+
padding: 0.2em 0.5em 0.2em 0.5em;
|
160
|
+
border-bottom: 1px solid; }
|
161
|
+
|
162
|
+
.reveal table th[align="center"], .reveal table td[align="center"] {
|
163
|
+
text-align: center; }
|
164
|
+
|
165
|
+
.reveal table th[align="right"], .reveal table td[align="right"] {
|
166
|
+
text-align: right; }
|
167
|
+
|
168
|
+
.reveal table tr:last-child td {
|
169
|
+
border-bottom: none; }
|
170
|
+
|
171
|
+
.reveal sup {
|
172
|
+
vertical-align: super; }
|
173
|
+
|
174
|
+
.reveal sub {
|
175
|
+
vertical-align: sub; }
|
176
|
+
|
177
|
+
.reveal small {
|
178
|
+
display: inline-block;
|
179
|
+
font-size: 0.6em;
|
180
|
+
line-height: 1.2em;
|
181
|
+
vertical-align: top; }
|
182
|
+
|
183
|
+
.reveal small * {
|
184
|
+
vertical-align: top; }
|
185
|
+
|
186
|
+
/*********************************************
|
187
|
+
* LINKS
|
188
|
+
*********************************************/
|
189
|
+
.reveal a {
|
190
|
+
color: #2a76dd;
|
191
|
+
text-decoration: none;
|
192
|
+
-webkit-transition: color 0.15s ease;
|
193
|
+
-moz-transition: color 0.15s ease;
|
194
|
+
transition: color 0.15s ease; }
|
195
|
+
|
196
|
+
.reveal a:hover {
|
197
|
+
color: #6ca2e8;
|
198
|
+
text-shadow: none;
|
199
|
+
border: none; }
|
200
|
+
|
201
|
+
.reveal .roll span:after {
|
202
|
+
color: #fff;
|
203
|
+
background: #1a54a1; }
|
204
|
+
|
205
|
+
/*********************************************
|
206
|
+
* IMAGES
|
207
|
+
*********************************************/
|
208
|
+
.reveal section img {
|
209
|
+
margin: 15px 0px;
|
210
|
+
background: rgba(255, 255, 255, 0.12);
|
211
|
+
border: 4px solid #222;
|
212
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
|
213
|
+
|
214
|
+
.reveal a img {
|
215
|
+
-webkit-transition: all 0.15s linear;
|
216
|
+
-moz-transition: all 0.15s linear;
|
217
|
+
transition: all 0.15s linear; }
|
218
|
+
|
219
|
+
.reveal a:hover img {
|
220
|
+
background: rgba(255, 255, 255, 0.2);
|
221
|
+
border-color: #2a76dd;
|
222
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
|
223
|
+
|
224
|
+
/*********************************************
|
225
|
+
* NAVIGATION CONTROLS
|
226
|
+
*********************************************/
|
227
|
+
.reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
|
228
|
+
border-right-color: #2a76dd; }
|
229
|
+
|
230
|
+
.reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
|
231
|
+
border-left-color: #2a76dd; }
|
232
|
+
|
233
|
+
.reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
|
234
|
+
border-bottom-color: #2a76dd; }
|
235
|
+
|
236
|
+
.reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
|
237
|
+
border-top-color: #2a76dd; }
|
238
|
+
|
239
|
+
.reveal .controls div.navigate-left.enabled:hover {
|
240
|
+
border-right-color: #6ca2e8; }
|
241
|
+
|
242
|
+
.reveal .controls div.navigate-right.enabled:hover {
|
243
|
+
border-left-color: #6ca2e8; }
|
244
|
+
|
245
|
+
.reveal .controls div.navigate-up.enabled:hover {
|
246
|
+
border-bottom-color: #6ca2e8; }
|
247
|
+
|
248
|
+
.reveal .controls div.navigate-down.enabled:hover {
|
249
|
+
border-top-color: #6ca2e8; }
|
250
|
+
|
251
|
+
/*********************************************
|
252
|
+
* PROGRESS BAR
|
253
|
+
*********************************************/
|
254
|
+
.reveal .progress {
|
255
|
+
background: rgba(0, 0, 0, 0.2); }
|
256
|
+
|
257
|
+
.reveal .progress span {
|
258
|
+
background: #2a76dd;
|
259
|
+
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
|
260
|
+
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
|
261
|
+
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
|
262
|
+
|
263
|
+
/*********************************************
|
264
|
+
* SLIDE NUMBER
|
265
|
+
*********************************************/
|
266
|
+
.reveal .slide-number {
|
267
|
+
color: #2a76dd; }
|
@@ -0,0 +1,411 @@
|
|
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, 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
|
+
<!-- Code syntax highlighting -->
|
21
|
+
<link rel="stylesheet" href="lib/css/zenburn.css">
|
22
|
+
|
23
|
+
<!-- Printing and PDF exports -->
|
24
|
+
<script>
|
25
|
+
var link = document.createElement( 'link' );
|
26
|
+
link.rel = 'stylesheet';
|
27
|
+
link.type = 'text/css';
|
28
|
+
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
|
29
|
+
document.getElementsByTagName( 'head' )[0].appendChild( link );
|
30
|
+
</script>
|
31
|
+
|
32
|
+
<!--[if lt IE 9]>
|
33
|
+
<script src="lib/js/html5shiv.js"></script>
|
34
|
+
<![endif]-->
|
35
|
+
</head>
|
36
|
+
|
37
|
+
<body>
|
38
|
+
|
39
|
+
<div class="reveal">
|
40
|
+
|
41
|
+
<!-- Any section element inside of this container is displayed as a slide -->
|
42
|
+
<div class="slides">
|
43
|
+
<section>
|
44
|
+
<h1>Reveal.js</h1>
|
45
|
+
<h3>The HTML Presentation Framework</h3>
|
46
|
+
<p>
|
47
|
+
<small>Created by <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small>
|
48
|
+
</p>
|
49
|
+
</section>
|
50
|
+
|
51
|
+
<section>
|
52
|
+
<h2>Hello There</h2>
|
53
|
+
<p>
|
54
|
+
reveal.js enables you to create beautiful interactive slide decks using HTML. This presentation will show you examples of what it can do.
|
55
|
+
</p>
|
56
|
+
</section>
|
57
|
+
|
58
|
+
<!-- Example of nested vertical slides -->
|
59
|
+
<section>
|
60
|
+
<section>
|
61
|
+
<h2>Vertical Slides</h2>
|
62
|
+
<p>Slides can be nested inside of each other.</p>
|
63
|
+
<p>Use the <em>Space</em> key to navigate through all slides.</p>
|
64
|
+
<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
|
+
</a>
|
68
|
+
</section>
|
69
|
+
<section>
|
70
|
+
<h2>Basement Level 1</h2>
|
71
|
+
<p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
|
72
|
+
</section>
|
73
|
+
<section>
|
74
|
+
<h2>Basement Level 2</h2>
|
75
|
+
<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="transform: rotate(180deg); -webkit-transform: rotate(180deg);">
|
79
|
+
</a>
|
80
|
+
</section>
|
81
|
+
</section>
|
82
|
+
|
83
|
+
<section>
|
84
|
+
<h2>Slides</h2>
|
85
|
+
<p>
|
86
|
+
Not a coder? Not a 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
|
+
</section>
|
89
|
+
|
90
|
+
<section>
|
91
|
+
<h2>Point of View</h2>
|
92
|
+
<p>
|
93
|
+
Press <strong>ESC</strong> to enter the slide overview.
|
94
|
+
</p>
|
95
|
+
<p>
|
96
|
+
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
|
+
</p>
|
98
|
+
</section>
|
99
|
+
|
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
|
+
</p>
|
105
|
+
</section>
|
106
|
+
|
107
|
+
<section data-markdown>
|
108
|
+
<script type="text/template">
|
109
|
+
## Markdown support
|
110
|
+
|
111
|
+
Write content using inline or external Markdown.
|
112
|
+
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
|
113
|
+
|
114
|
+
```
|
115
|
+
<section data-markdown>
|
116
|
+
## Markdown support
|
117
|
+
|
118
|
+
Write content using inline or external Markdown.
|
119
|
+
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
|
120
|
+
</section>
|
121
|
+
```
|
122
|
+
</script>
|
123
|
+
</section>
|
124
|
+
|
125
|
+
<section>
|
126
|
+
<section id="fragments">
|
127
|
+
<h2>Fragments</h2>
|
128
|
+
<p>Hit the next arrow...</p>
|
129
|
+
<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
|
+
<aside class="notes">
|
133
|
+
This slide has fragments which are also stepped through in the notes window.
|
134
|
+
</aside>
|
135
|
+
</section>
|
136
|
+
<section>
|
137
|
+
<h2>Fragment Styles</h2>
|
138
|
+
<p>There's different types of fragments, like:</p>
|
139
|
+
<p class="fragment grow">grow</p>
|
140
|
+
<p class="fragment shrink">shrink</p>
|
141
|
+
<p class="fragment fade-out">fade-out</p>
|
142
|
+
<p class="fragment current-visible">current-visible</p>
|
143
|
+
<p class="fragment highlight-red">highlight-red</p>
|
144
|
+
<p class="fragment highlight-blue">highlight-blue</p>
|
145
|
+
</section>
|
146
|
+
</section>
|
147
|
+
|
148
|
+
<section id="transitions">
|
149
|
+
<h2>Transition Styles</h2>
|
150
|
+
<p>
|
151
|
+
You can select from different transitions, like: <br>
|
152
|
+
<a href="?transition=none#/transitions">None</a> -
|
153
|
+
<a href="?transition=fade#/transitions">Fade</a> -
|
154
|
+
<a href="?transition=slide#/transitions">Slide</a> -
|
155
|
+
<a href="?transition=convex#/transitions">Convex</a> -
|
156
|
+
<a href="?transition=concave#/transitions">Concave</a> -
|
157
|
+
<a href="?transition=zoom#/transitions">Zoom</a>
|
158
|
+
</p>
|
159
|
+
</section>
|
160
|
+
|
161
|
+
<section id="themes">
|
162
|
+
<h2>Themes</h2>
|
163
|
+
<p>
|
164
|
+
reveal.js comes with a few themes built in: <br>
|
165
|
+
<!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
|
166
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/black.css'); return false;">Black (default)</a> -
|
167
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;">White</a> -
|
168
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;">League</a> -
|
169
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;">Sky</a> -
|
170
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;">Beige</a> -
|
171
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;">Simple</a> <br>
|
172
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;">Serif</a> -
|
173
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/blood.css'); return false;">Blood</a> -
|
174
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;">Night</a> -
|
175
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;">Moon</a> -
|
176
|
+
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;">Solarized</a>
|
177
|
+
</p>
|
178
|
+
</section>
|
179
|
+
|
180
|
+
<section>
|
181
|
+
<section data-background="#dddddd">
|
182
|
+
<h2>Slide Backgrounds</h2>
|
183
|
+
<p>
|
184
|
+
Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
|
185
|
+
</p>
|
186
|
+
<a href="#" class="navigate-down">
|
187
|
+
<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
|
188
|
+
</a>
|
189
|
+
</section>
|
190
|
+
<section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png">
|
191
|
+
<h2>Image Backgrounds</h2>
|
192
|
+
<pre><code><section data-background="image.png"></code></pre>
|
193
|
+
</section>
|
194
|
+
<section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
|
195
|
+
<h2>Tiled Backgrounds</h2>
|
196
|
+
<pre><code style="word-wrap: break-word;"><section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"></code></pre>
|
197
|
+
</section>
|
198
|
+
<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">
|
199
|
+
<div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
|
200
|
+
<h2>Video Backgrounds</h2>
|
201
|
+
<pre><code style="word-wrap: break-word;"><section data-background-video="video.mp4,video.webm"></code></pre>
|
202
|
+
</div>
|
203
|
+
</section>
|
204
|
+
<section data-background="http://i.giphy.com/90F8aUepslB84.gif">
|
205
|
+
<h2>... and GIFs!</h2>
|
206
|
+
</section>
|
207
|
+
</section>
|
208
|
+
|
209
|
+
<section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
|
210
|
+
<h2>Background Transitions</h2>
|
211
|
+
<p>
|
212
|
+
Different background transitions are available via the backgroundTransition option. This one's called "zoom".
|
213
|
+
</p>
|
214
|
+
<pre><code>Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
|
215
|
+
</section>
|
216
|
+
|
217
|
+
<section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
|
218
|
+
<h2>Background Transitions</h2>
|
219
|
+
<p>
|
220
|
+
You can override background transitions per-slide.
|
221
|
+
</p>
|
222
|
+
<pre><code style="word-wrap: break-word;"><section data-background-transition="zoom"></code></pre>
|
223
|
+
</section>
|
224
|
+
|
225
|
+
<section>
|
226
|
+
<h2>Pretty Code</h2>
|
227
|
+
<pre><code data-trim contenteditable>
|
228
|
+
function linkify( selector ) {
|
229
|
+
if( supports3DTransforms ) {
|
230
|
+
|
231
|
+
var nodes = document.querySelectorAll( selector );
|
232
|
+
|
233
|
+
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
234
|
+
var node = nodes[i];
|
235
|
+
|
236
|
+
if( !node.className ) {
|
237
|
+
node.className += ' roll';
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
</code></pre>
|
243
|
+
<p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
|
244
|
+
</section>
|
245
|
+
|
246
|
+
<section>
|
247
|
+
<h2>Marvelous List</h2>
|
248
|
+
<ul>
|
249
|
+
<li>No order here</li>
|
250
|
+
<li>Or here</li>
|
251
|
+
<li>Or here</li>
|
252
|
+
<li>Or here</li>
|
253
|
+
</ul>
|
254
|
+
</section>
|
255
|
+
|
256
|
+
<section>
|
257
|
+
<h2>Fantastic Ordered List</h2>
|
258
|
+
<ol>
|
259
|
+
<li>One is smaller than...</li>
|
260
|
+
<li>Two is smaller than...</li>
|
261
|
+
<li>Three!</li>
|
262
|
+
</ol>
|
263
|
+
</section>
|
264
|
+
|
265
|
+
<section>
|
266
|
+
<h2>Tabular Tables</h2>
|
267
|
+
<table>
|
268
|
+
<thead>
|
269
|
+
<tr>
|
270
|
+
<th>Item</th>
|
271
|
+
<th>Value</th>
|
272
|
+
<th>Quantity</th>
|
273
|
+
</tr>
|
274
|
+
</thead>
|
275
|
+
<tbody>
|
276
|
+
<tr>
|
277
|
+
<td>Apples</td>
|
278
|
+
<td>$1</td>
|
279
|
+
<td>7</td>
|
280
|
+
<tr>
|
281
|
+
<tr>
|
282
|
+
<td>Lemonade</td>
|
283
|
+
<td>$2</td>
|
284
|
+
<td>18</td>
|
285
|
+
<tr>
|
286
|
+
<tr>
|
287
|
+
<td>Bread</td>
|
288
|
+
<td>$3</td>
|
289
|
+
<td>2</td>
|
290
|
+
<tr>
|
291
|
+
</tbody>
|
292
|
+
</table>
|
293
|
+
</section>
|
294
|
+
|
295
|
+
<section>
|
296
|
+
<h2>Clever Quotes</h2>
|
297
|
+
<p>
|
298
|
+
These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
|
299
|
+
“The nice thing about standards is that there are so many to choose from”</q> and block:
|
300
|
+
</p>
|
301
|
+
<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
|
302
|
+
“For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
|
303
|
+
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.”
|
304
|
+
</blockquote>
|
305
|
+
</section>
|
306
|
+
|
307
|
+
<section>
|
308
|
+
<h2>Intergalactic Interconnections</h2>
|
309
|
+
<p>
|
310
|
+
You can link between slides internally,
|
311
|
+
<a href="#/2/3">like this</a>.
|
312
|
+
</p>
|
313
|
+
</section>
|
314
|
+
|
315
|
+
<section>
|
316
|
+
<h2>Speaker View</h2>
|
317
|
+
<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>
|
318
|
+
<p>Press the <em>S</em> key to try it out.</p>
|
319
|
+
|
320
|
+
<aside class="notes">
|
321
|
+
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).
|
322
|
+
</aside>
|
323
|
+
</section>
|
324
|
+
|
325
|
+
<section>
|
326
|
+
<h2>Export to PDF</h2>
|
327
|
+
<p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, here's an example:</p>
|
328
|
+
<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>
|
329
|
+
</section>
|
330
|
+
|
331
|
+
<section>
|
332
|
+
<h2>Global State</h2>
|
333
|
+
<p>
|
334
|
+
Set <code>data-state="something"</code> on a slide and <code>"something"</code>
|
335
|
+
will be added as a class to the document element when the slide is open. This lets you
|
336
|
+
apply broader style changes, like switching the page background.
|
337
|
+
</p>
|
338
|
+
</section>
|
339
|
+
|
340
|
+
<section data-state="customevent">
|
341
|
+
<h2>State Events</h2>
|
342
|
+
<p>
|
343
|
+
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
|
344
|
+
</p>
|
345
|
+
<pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
|
346
|
+
Reveal.addEventListener( 'customevent', function() {
|
347
|
+
console.log( '"customevent" has fired' );
|
348
|
+
} );
|
349
|
+
</code></pre>
|
350
|
+
</section>
|
351
|
+
|
352
|
+
<section>
|
353
|
+
<h2>Take a Moment</h2>
|
354
|
+
<p>
|
355
|
+
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.
|
356
|
+
</p>
|
357
|
+
</section>
|
358
|
+
|
359
|
+
<section>
|
360
|
+
<h2>Much more</h2>
|
361
|
+
<ul>
|
362
|
+
<li>Right-to-left support</li>
|
363
|
+
<li><a href="https://github.com/hakimel/reveal.js#api">Extensive JavaScript API</a></li>
|
364
|
+
<li><a href="https://github.com/hakimel/reveal.js#auto-sliding">Auto-progression</a></li>
|
365
|
+
<li><a href="https://github.com/hakimel/reveal.js#parallax-background">Parallax backgrounds</a></li>
|
366
|
+
<li><a href="https://github.com/hakimel/reveal.js#keyboard-bindings">Custom keyboard bindings</a></li>
|
367
|
+
</ul>
|
368
|
+
</section>
|
369
|
+
|
370
|
+
<section style="text-align: left;">
|
371
|
+
<h1>THE END</h1>
|
372
|
+
<p>
|
373
|
+
- <a href="http://slides.com">Try the online editor</a> <br>
|
374
|
+
- <a href="https://github.com/hakimel/reveal.js">Source code & documentation</a>
|
375
|
+
</p>
|
376
|
+
</section>
|
377
|
+
|
378
|
+
</div>
|
379
|
+
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<script src="lib/js/head.min.js"></script>
|
383
|
+
<script src="js/reveal.js"></script>
|
384
|
+
|
385
|
+
<script>
|
386
|
+
|
387
|
+
// Full list of configuration options available at:
|
388
|
+
// https://github.com/hakimel/reveal.js#configuration
|
389
|
+
Reveal.initialize({
|
390
|
+
controls: true,
|
391
|
+
progress: true,
|
392
|
+
history: true,
|
393
|
+
center: true,
|
394
|
+
|
395
|
+
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
396
|
+
|
397
|
+
// Optional reveal.js plugins
|
398
|
+
dependencies: [
|
399
|
+
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
400
|
+
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
401
|
+
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
402
|
+
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
|
403
|
+
{ src: 'plugin/zoom-js/zoom.js', async: true },
|
404
|
+
{ src: 'plugin/notes/notes.js', async: true }
|
405
|
+
]
|
406
|
+
});
|
407
|
+
|
408
|
+
</script>
|
409
|
+
|
410
|
+
</body>
|
411
|
+
</html>
|