-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdemo.Rmd
371 lines (229 loc) · 7.23 KB
/
demo.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
---
title: Checking Reveal.js
author: Ramnath Vaidyanathan
mode : selfcontained
framework: revealjs
hitheme : zenburn
revealjs:
theme: solarized
transition: none
center: "true"
url: {lib: "."}
bootstrap:
theme: amelia
navbar:
title: Slidify
items:
- {item: Home, href: index, icon: home}
- {item: "Start", href: start, icon: signin}
- {item: Author, href: about, icon: pencil}
- {item: Style, href: style, icon: hand-right, class: dropdown,
dropdown: true, menu: [
{item: io2012, href: 'samples/intro'},
{item: deck.js, href: 'samples/deck.js'},
{item: shower, href: 'samples/shower'},
{item: landslide, href: 'samples/landslide'}
]
}
- {item: Customize, href: customize, icon: gift}
- {item: Extend, href: extend, icon: cogs}
- {item: Publish, href: publish, icon: github}
---
# Reveal.js
### HTML PRESENTATIONS MADE EASY
<small> Created by [Hakim El Hattab](http://hakim.se) / [@hakimel](http://twitter.com/hakimel) </small>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
*** =pnotes
Some notes on the first slide
---
## Heads Up
reveal.js is a framework for easily creating beautiful presentations using HTML. You'll need a browser with support for CSS 3D transforms to see it in its full glory.
<section>
---
## Slide 1
---
## Slide 2
</section>
--- &vertical
## Vertical Slides
Slides can be nested inside of other slides, try pressing <a href="#" class="navigate-down">down</a>
<a href="#" class="image navigate-down">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
***
## Basement Level 1
Press down or up to navigate.
***
## Basement Level 2
Cornify
<a class="test" href="http://cornify.com">
<img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif" alt="Unicorn">
</a>
***
## Basement Level 3
That's it, time to go back up.
<a href="#/2" class="image">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(180deg);">
</a>
--- &vertical
## Vertical Slides
Slides can be nested inside of other slides, try pressing <a href="#" class="navigate-down">down</a>
<a href="#" class="image navigate-down">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
***
## Basement Level 1
Press down or up to navigate.
***
## Basement Level 2
Cornify
---
## Point of View
Press ESC to enter the slide overview. Hold down alt and click on any element to zoom in on it using [zoom.js](http://lab.hakim.se/zoom-js). Alt + click anywhere to zoom back out.
---
## RVL.IO
If you don't like writing slides in HTML you can use the online editor [rvl.io](http://rvl.io).
---
## Works in Mobile Safari
Try it out! You can swipe through the slides and pinch your way to the overview.
---
## Marvolous Unordered List
- No order here
- Or here
- Or here
- Or here
---
## Fantastic Ordered List
1. One is smaller than...
2. Two is smaller than...
3. Three!
--- #transitions
## TRANSITION STYLES
You can select from different transitions, like:
```{r echo = F, results = 'asis', comment = NA}
transitions = c("cube", "page", "concave", "zoom", "linear", "fade", "none", "default")
names(transitions) = gsub("^([a-z])", "\\U\\1", transitions, perl = TRUE)
x = sprintf("[%s](?transition=%s#/transitions)", names(transitions), transitions)
cat(paste(x, collapse = ' - '))
```
--- #themes
## Themes
Reveal.js comes with a few themes built in:
```{r echo = F, results = 'asis', comment = NA}
themes = c("sky", "beige", "simple", "serif", "night", "default", "solarized", "moon")
names(themes) = gsub("^([a-z])", "\\U\\1", themes, perl = TRUE)
x = sprintf("[%s](?theme=%s#/themes)", names(themes), themes)
cat(paste(x, collapse = ' - '))
```
<small>* Theme demos are loaded after the presentation which leads to flicker. In production you should load your theme in the `<head>` using a `<link>`.</small>
--- ds:alert &vertical
## Global State
Set `data-state="something"` on a slide and "something" 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 background.
<a href="#" class="image navigate-down">
<img width="178" height="238"
src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
*** ds:blackout
## Blackout
<a href="#" class="image navigate-down">
<img width="178" height="238"
src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
*** ds:soothe
## Soothe
<a href="#" class="image navigate-next">
<img width="178" height="238" alt="Up arrow" style="-webkit-transform: rotate(-90deg);"
src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" >
</a>
--- ds:red &vertical
## Custom Soothe Styles
*** ds:orange
## Orange
*** ds:yellow
## Yellow
*** ds:green
## Green
*** ds:blue
## Blue
*** ds:indigo
## Indigo
*** ds:violet
## Violet
*** ds:brown
## Brown
---
## Custom Events
Additionally custom events can be triggered on a per slide basis by binding to the data-state name.
```
Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
```
---
## Clever Quotes
These guys come in two forms, inline: <q>The nice thing about standards is that there are so many to choose from and block:</q>
> 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.
---
## Pretty Code
```
function linkify( selector ) {
if( supports3DTransforms ) {
var nodes = document.querySelectorAll( selector );
for( var i = 0, len = nodes.length; i < len; i++ ) {
var node = nodes[i];
if( !node.className ) ) {
node.className += ' roll';
}
};
}
}
```
Courtesy of [highlight.js](http://softwaremaniacs.org/soft/highlight/en/description/)
---
## Intergalactic Interconnections
You can link between slides internally, [like this](#/2/3).
---
## Fragmented Views
Hit the next arrow...
.fragment ... to step through ...
> - any type
> - of view
> - __fragments__
---
## Take a Moment
Press b or period on your keyboard to enter the 'paused' mode. This mode is helpful when you want to take distracting slides off the screen during a presentation.
---
## Incremental Paragraphs
.fragment This is paragraph 1 and should appear on first click.
.fragment This is paragraph 2 and should appear on second click.
.small [Back to the Beginning](#/0)
---
## Title
This is a slide
- point 1
- point 2
- point 3
---
## Incremental Reveal
These points should be animated
> - Point 1
> - .highlight-red Point 2
> - .grow Point 3
<script>
$('ul.incremental li').addClass('fragment')
</script>
---
## Code with slide
```{r eval = T}
library(ggplot2)
qplot(wt, mpg, data = mtcars)
```
--- &vertical ds:soothe
## Vertical Slides
The next set of slides will be vertical slides.
***
## Slide 1
This is slide 1
***
## Slide 2
<iframe src='http://www.statdistributions.com' width = '960px' height = '600px'></iframe>