slidemgr 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +13 -0
- data/LICENCE +674 -0
- data/README.md +153 -0
- data/Rakefile +3 -0
- data/bin/setup +7 -0
- data/bin/slidemgr +10 -0
- data/config.yml +0 -0
- data/lib/command_router.rb +27 -0
- data/lib/commands/create.rb +61 -0
- data/lib/commands/init.rb +78 -0
- data/lib/commands/list.rb +12 -0
- data/lib/commands/refresh.rb +49 -0
- data/lib/commands/remove.rb +32 -0
- data/lib/commands/rename.rb +31 -0
- data/lib/commands/start.rb +36 -0
- data/lib/commands/sync.rb +31 -0
- data/lib/template/config.yml.erb +4 -0
- data/lib/template/content.md.erb +2 -0
- data/lib/template/index.erb +103 -0
- data/lib/template/overview_index.erb +9 -0
- data/lib/template/reveal.js-3.0.0/.DS_Store +0 -0
- data/lib/template/reveal.js-3.0.0/Gruntfile.js +174 -0
- data/lib/template/reveal.js-3.0.0/LICENSE +19 -0
- data/lib/template/reveal.js-3.0.0/css/print/paper.css +202 -0
- data/lib/template/reveal.js-3.0.0/css/print/pdf.css +157 -0
- data/lib/template/reveal.js-3.0.0/css/reveal.css +1141 -0
- data/lib/template/reveal.js-3.0.0/css/reveal.scss +1316 -0
- data/lib/template/reveal.js-3.0.0/css/theme/README.md +25 -0
- data/lib/template/reveal.js-3.0.0/css/theme/beige.css +265 -0
- data/lib/template/reveal.js-3.0.0/css/theme/black.css +261 -0
- data/lib/template/reveal.js-3.0.0/css/theme/blood.css +291 -0
- data/lib/template/reveal.js-3.0.0/css/theme/league.css +267 -0
- data/lib/template/reveal.js-3.0.0/css/theme/moon.css +265 -0
- data/lib/template/reveal.js-3.0.0/css/theme/night.css +259 -0
- data/lib/template/reveal.js-3.0.0/css/theme/serif.css +261 -0
- data/lib/template/reveal.js-3.0.0/css/theme/simple.css +261 -0
- data/lib/template/reveal.js-3.0.0/css/theme/sky.css +268 -0
- data/lib/template/reveal.js-3.0.0/css/theme/solarized.css +265 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/beige.scss +39 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/black.scss +49 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/blood.scss +91 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/league.scss +34 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/moon.scss +57 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/night.scss +35 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/serif.scss +35 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/simple.scss +38 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/sky.scss +46 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/solarized.scss +63 -0
- data/lib/template/reveal.js-3.0.0/css/theme/source/white.scss +49 -0
- data/lib/template/reveal.js-3.0.0/css/theme/template/mixins.scss +29 -0
- data/lib/template/reveal.js-3.0.0/css/theme/template/settings.scss +43 -0
- data/lib/template/reveal.js-3.0.0/css/theme/template/theme.scss +339 -0
- data/lib/template/reveal.js-3.0.0/css/theme/white.css +261 -0
- data/lib/template/reveal.js-3.0.0/js/reveal.js +4276 -0
- data/lib/template/reveal.js-3.0.0/lib/css/zenburn.css +117 -0
- data/lib/template/reveal.js-3.0.0/lib/font/league-gothic/LICENSE +2 -0
- data/lib/template/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.css +10 -0
- data/lib/template/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.eot +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.woff +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/LICENSE +45 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/lib/template/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/lib/template/reveal.js-3.0.0/lib/js/classList.js +2 -0
- data/lib/template/reveal.js-3.0.0/lib/js/head.min.js +8 -0
- data/lib/template/reveal.js-3.0.0/lib/js/html5shiv.js +7 -0
- data/lib/template/reveal.js-3.0.0/plugin/highlight/highlight.js +30 -0
- data/lib/template/reveal.js-3.0.0/plugin/leap/leap.js +159 -0
- data/lib/template/reveal.js-3.0.0/plugin/markdown/example.html +129 -0
- data/lib/template/reveal.js-3.0.0/plugin/markdown/example.md +31 -0
- data/lib/template/reveal.js-3.0.0/plugin/markdown/markdown.js +393 -0
- data/lib/template/reveal.js-3.0.0/plugin/markdown/marked.js +37 -0
- data/lib/template/reveal.js-3.0.0/plugin/math/math.js +64 -0
- data/lib/template/reveal.js-3.0.0/plugin/multiplex/client.js +13 -0
- data/lib/template/reveal.js-3.0.0/plugin/multiplex/index.js +56 -0
- data/lib/template/reveal.js-3.0.0/plugin/multiplex/master.js +51 -0
- data/lib/template/reveal.js-3.0.0/plugin/notes/notes.html +406 -0
- data/lib/template/reveal.js-3.0.0/plugin/notes/notes.js +122 -0
- data/lib/template/reveal.js-3.0.0/plugin/notes-server/client.js +60 -0
- data/lib/template/reveal.js-3.0.0/plugin/notes-server/index.js +66 -0
- data/lib/template/reveal.js-3.0.0/plugin/notes-server/notes.html +396 -0
- data/lib/template/reveal.js-3.0.0/plugin/print-pdf/print-pdf.js +48 -0
- data/lib/template/reveal.js-3.0.0/plugin/remotes/remotes.js +39 -0
- data/lib/template/reveal.js-3.0.0/plugin/search/search.js +196 -0
- data/lib/template/reveal.js-3.0.0/plugin/zoom-js/zoom.js +278 -0
- data/lib/template/reveal.js-3.0.0/test/examples/assets/image1.png +0 -0
- data/lib/template/reveal.js-3.0.0/test/examples/assets/image2.png +0 -0
- data/lib/template/reveal.js-3.0.0/test/examples/barebones.html +41 -0
- data/lib/template/reveal.js-3.0.0/test/examples/embedded-media.html +49 -0
- data/lib/template/reveal.js-3.0.0/test/examples/math.html +185 -0
- data/lib/template/reveal.js-3.0.0/test/examples/slide-backgrounds.html +144 -0
- data/lib/template/reveal.js-3.0.0/test/qunit-1.12.0.css +244 -0
- data/lib/template/reveal.js-3.0.0/test/qunit-1.12.0.js +2212 -0
- data/lib/template/reveal.js-3.0.0/test/test-markdown-element-attributes.html +134 -0
- data/lib/template/reveal.js-3.0.0/test/test-markdown-element-attributes.js +46 -0
- data/lib/template/reveal.js-3.0.0/test/test-markdown-slide-attributes.html +128 -0
- data/lib/template/reveal.js-3.0.0/test/test-markdown-slide-attributes.js +47 -0
- data/lib/template/reveal.js-3.0.0/test/test-markdown.html +52 -0
- data/lib/template/reveal.js-3.0.0/test/test-markdown.js +15 -0
- data/lib/template/reveal.js-3.0.0/test/test-pdf.html +83 -0
- data/lib/template/reveal.js-3.0.0/test/test-pdf.js +15 -0
- data/lib/template/reveal.js-3.0.0/test/test.html +82 -0
- data/lib/template/reveal.js-3.0.0/test/test.js +572 -0
- data/lib/util.rb +99 -0
- data/lib/version.rb +3 -0
- data/slidemgr.gemspec +24 -0
- metadata +193 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
// Custom reveal.js integration
|
|
2
|
+
(function(){
|
|
3
|
+
var isEnabled = true;
|
|
4
|
+
|
|
5
|
+
document.querySelector( '.reveal' ).addEventListener( 'mousedown', function( event ) {
|
|
6
|
+
var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
|
|
7
|
+
|
|
8
|
+
var zoomPadding = 20;
|
|
9
|
+
var revealScale = Reveal.getScale();
|
|
10
|
+
|
|
11
|
+
if( event[ modifier ] && isEnabled ) {
|
|
12
|
+
event.preventDefault();
|
|
13
|
+
|
|
14
|
+
var bounds = event.target.getBoundingClientRect();
|
|
15
|
+
|
|
16
|
+
zoom.to({
|
|
17
|
+
x: ( bounds.left * revealScale ) - zoomPadding,
|
|
18
|
+
y: ( bounds.top * revealScale ) - zoomPadding,
|
|
19
|
+
width: ( bounds.width * revealScale ) + ( zoomPadding * 2 ),
|
|
20
|
+
height: ( bounds.height * revealScale ) + ( zoomPadding * 2 ),
|
|
21
|
+
pan: false
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
} );
|
|
25
|
+
|
|
26
|
+
Reveal.addEventListener( 'overviewshown', function() { isEnabled = false; } );
|
|
27
|
+
Reveal.addEventListener( 'overviewhidden', function() { isEnabled = true; } );
|
|
28
|
+
})();
|
|
29
|
+
|
|
30
|
+
/*!
|
|
31
|
+
* zoom.js 0.3 (modified for use with reveal.js)
|
|
32
|
+
* http://lab.hakim.se/zoom-js
|
|
33
|
+
* MIT licensed
|
|
34
|
+
*
|
|
35
|
+
* Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se
|
|
36
|
+
*/
|
|
37
|
+
var zoom = (function(){
|
|
38
|
+
|
|
39
|
+
// The current zoom level (scale)
|
|
40
|
+
var level = 1;
|
|
41
|
+
|
|
42
|
+
// The current mouse position, used for panning
|
|
43
|
+
var mouseX = 0,
|
|
44
|
+
mouseY = 0;
|
|
45
|
+
|
|
46
|
+
// Timeout before pan is activated
|
|
47
|
+
var panEngageTimeout = -1,
|
|
48
|
+
panUpdateInterval = -1;
|
|
49
|
+
|
|
50
|
+
// Check for transform support so that we can fallback otherwise
|
|
51
|
+
var supportsTransforms = 'WebkitTransform' in document.body.style ||
|
|
52
|
+
'MozTransform' in document.body.style ||
|
|
53
|
+
'msTransform' in document.body.style ||
|
|
54
|
+
'OTransform' in document.body.style ||
|
|
55
|
+
'transform' in document.body.style;
|
|
56
|
+
|
|
57
|
+
if( supportsTransforms ) {
|
|
58
|
+
// The easing that will be applied when we zoom in/out
|
|
59
|
+
document.body.style.transition = 'transform 0.8s ease';
|
|
60
|
+
document.body.style.OTransition = '-o-transform 0.8s ease';
|
|
61
|
+
document.body.style.msTransition = '-ms-transform 0.8s ease';
|
|
62
|
+
document.body.style.MozTransition = '-moz-transform 0.8s ease';
|
|
63
|
+
document.body.style.WebkitTransition = '-webkit-transform 0.8s ease';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Zoom out if the user hits escape
|
|
67
|
+
document.addEventListener( 'keyup', function( event ) {
|
|
68
|
+
if( level !== 1 && event.keyCode === 27 ) {
|
|
69
|
+
zoom.out();
|
|
70
|
+
}
|
|
71
|
+
} );
|
|
72
|
+
|
|
73
|
+
// Monitor mouse movement for panning
|
|
74
|
+
document.addEventListener( 'mousemove', function( event ) {
|
|
75
|
+
if( level !== 1 ) {
|
|
76
|
+
mouseX = event.clientX;
|
|
77
|
+
mouseY = event.clientY;
|
|
78
|
+
}
|
|
79
|
+
} );
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Applies the CSS required to zoom in, prefers the use of CSS3
|
|
83
|
+
* transforms but falls back on zoom for IE.
|
|
84
|
+
*
|
|
85
|
+
* @param {Object} rect
|
|
86
|
+
* @param {Number} scale
|
|
87
|
+
*/
|
|
88
|
+
function magnify( rect, scale ) {
|
|
89
|
+
|
|
90
|
+
var scrollOffset = getScrollOffset();
|
|
91
|
+
|
|
92
|
+
// Ensure a width/height is set
|
|
93
|
+
rect.width = rect.width || 1;
|
|
94
|
+
rect.height = rect.height || 1;
|
|
95
|
+
|
|
96
|
+
// Center the rect within the zoomed viewport
|
|
97
|
+
rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2;
|
|
98
|
+
rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2;
|
|
99
|
+
|
|
100
|
+
if( supportsTransforms ) {
|
|
101
|
+
// Reset
|
|
102
|
+
if( scale === 1 ) {
|
|
103
|
+
document.body.style.transform = '';
|
|
104
|
+
document.body.style.OTransform = '';
|
|
105
|
+
document.body.style.msTransform = '';
|
|
106
|
+
document.body.style.MozTransform = '';
|
|
107
|
+
document.body.style.WebkitTransform = '';
|
|
108
|
+
}
|
|
109
|
+
// Scale
|
|
110
|
+
else {
|
|
111
|
+
var origin = scrollOffset.x +'px '+ scrollOffset.y +'px',
|
|
112
|
+
transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')';
|
|
113
|
+
|
|
114
|
+
document.body.style.transformOrigin = origin;
|
|
115
|
+
document.body.style.OTransformOrigin = origin;
|
|
116
|
+
document.body.style.msTransformOrigin = origin;
|
|
117
|
+
document.body.style.MozTransformOrigin = origin;
|
|
118
|
+
document.body.style.WebkitTransformOrigin = origin;
|
|
119
|
+
|
|
120
|
+
document.body.style.transform = transform;
|
|
121
|
+
document.body.style.OTransform = transform;
|
|
122
|
+
document.body.style.msTransform = transform;
|
|
123
|
+
document.body.style.MozTransform = transform;
|
|
124
|
+
document.body.style.WebkitTransform = transform;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
// Reset
|
|
129
|
+
if( scale === 1 ) {
|
|
130
|
+
document.body.style.position = '';
|
|
131
|
+
document.body.style.left = '';
|
|
132
|
+
document.body.style.top = '';
|
|
133
|
+
document.body.style.width = '';
|
|
134
|
+
document.body.style.height = '';
|
|
135
|
+
document.body.style.zoom = '';
|
|
136
|
+
}
|
|
137
|
+
// Scale
|
|
138
|
+
else {
|
|
139
|
+
document.body.style.position = 'relative';
|
|
140
|
+
document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
|
|
141
|
+
document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
|
|
142
|
+
document.body.style.width = ( scale * 100 ) + '%';
|
|
143
|
+
document.body.style.height = ( scale * 100 ) + '%';
|
|
144
|
+
document.body.style.zoom = scale;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
level = scale;
|
|
149
|
+
|
|
150
|
+
if( document.documentElement.classList ) {
|
|
151
|
+
if( level !== 1 ) {
|
|
152
|
+
document.documentElement.classList.add( 'zoomed' );
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
document.documentElement.classList.remove( 'zoomed' );
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Pan the document when the mosue cursor approaches the edges
|
|
162
|
+
* of the window.
|
|
163
|
+
*/
|
|
164
|
+
function pan() {
|
|
165
|
+
var range = 0.12,
|
|
166
|
+
rangeX = window.innerWidth * range,
|
|
167
|
+
rangeY = window.innerHeight * range,
|
|
168
|
+
scrollOffset = getScrollOffset();
|
|
169
|
+
|
|
170
|
+
// Up
|
|
171
|
+
if( mouseY < rangeY ) {
|
|
172
|
+
window.scroll( scrollOffset.x, scrollOffset.y - ( 1 - ( mouseY / rangeY ) ) * ( 14 / level ) );
|
|
173
|
+
}
|
|
174
|
+
// Down
|
|
175
|
+
else if( mouseY > window.innerHeight - rangeY ) {
|
|
176
|
+
window.scroll( scrollOffset.x, scrollOffset.y + ( 1 - ( window.innerHeight - mouseY ) / rangeY ) * ( 14 / level ) );
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Left
|
|
180
|
+
if( mouseX < rangeX ) {
|
|
181
|
+
window.scroll( scrollOffset.x - ( 1 - ( mouseX / rangeX ) ) * ( 14 / level ), scrollOffset.y );
|
|
182
|
+
}
|
|
183
|
+
// Right
|
|
184
|
+
else if( mouseX > window.innerWidth - rangeX ) {
|
|
185
|
+
window.scroll( scrollOffset.x + ( 1 - ( window.innerWidth - mouseX ) / rangeX ) * ( 14 / level ), scrollOffset.y );
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function getScrollOffset() {
|
|
190
|
+
return {
|
|
191
|
+
x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset,
|
|
192
|
+
y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return {
|
|
197
|
+
/**
|
|
198
|
+
* Zooms in on either a rectangle or HTML element.
|
|
199
|
+
*
|
|
200
|
+
* @param {Object} options
|
|
201
|
+
* - element: HTML element to zoom in on
|
|
202
|
+
* OR
|
|
203
|
+
* - x/y: coordinates in non-transformed space to zoom in on
|
|
204
|
+
* - width/height: the portion of the screen to zoom in on
|
|
205
|
+
* - scale: can be used instead of width/height to explicitly set scale
|
|
206
|
+
*/
|
|
207
|
+
to: function( options ) {
|
|
208
|
+
|
|
209
|
+
// Due to an implementation limitation we can't zoom in
|
|
210
|
+
// to another element without zooming out first
|
|
211
|
+
if( level !== 1 ) {
|
|
212
|
+
zoom.out();
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
options.x = options.x || 0;
|
|
216
|
+
options.y = options.y || 0;
|
|
217
|
+
|
|
218
|
+
// If an element is set, that takes precedence
|
|
219
|
+
if( !!options.element ) {
|
|
220
|
+
// Space around the zoomed in element to leave on screen
|
|
221
|
+
var padding = 20;
|
|
222
|
+
var bounds = options.element.getBoundingClientRect();
|
|
223
|
+
|
|
224
|
+
options.x = bounds.left - padding;
|
|
225
|
+
options.y = bounds.top - padding;
|
|
226
|
+
options.width = bounds.width + ( padding * 2 );
|
|
227
|
+
options.height = bounds.height + ( padding * 2 );
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// If width/height values are set, calculate scale from those values
|
|
231
|
+
if( options.width !== undefined && options.height !== undefined ) {
|
|
232
|
+
options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / options.height ), 1 );
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if( options.scale > 1 ) {
|
|
236
|
+
options.x *= options.scale;
|
|
237
|
+
options.y *= options.scale;
|
|
238
|
+
|
|
239
|
+
magnify( options, options.scale );
|
|
240
|
+
|
|
241
|
+
if( options.pan !== false ) {
|
|
242
|
+
|
|
243
|
+
// Wait with engaging panning as it may conflict with the
|
|
244
|
+
// zoom transition
|
|
245
|
+
panEngageTimeout = setTimeout( function() {
|
|
246
|
+
panUpdateInterval = setInterval( pan, 1000 / 60 );
|
|
247
|
+
}, 800 );
|
|
248
|
+
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Resets the document zoom state to its default.
|
|
256
|
+
*/
|
|
257
|
+
out: function() {
|
|
258
|
+
clearTimeout( panEngageTimeout );
|
|
259
|
+
clearInterval( panUpdateInterval );
|
|
260
|
+
|
|
261
|
+
magnify( { x: 0, y: 0 }, 1 );
|
|
262
|
+
|
|
263
|
+
level = 1;
|
|
264
|
+
},
|
|
265
|
+
|
|
266
|
+
// Alias
|
|
267
|
+
magnify: function( options ) { this.to( options ) },
|
|
268
|
+
reset: function() { this.out() },
|
|
269
|
+
|
|
270
|
+
zoomLevel: function() {
|
|
271
|
+
return level;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
})();
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>reveal.js - Barebones</title>
|
|
8
|
+
|
|
9
|
+
<link rel="stylesheet" href="../../css/reveal.css">
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
|
|
14
|
+
<div class="reveal">
|
|
15
|
+
|
|
16
|
+
<div class="slides">
|
|
17
|
+
|
|
18
|
+
<section>
|
|
19
|
+
<h2>Barebones Presentation</h2>
|
|
20
|
+
<p>This example contains the bare minimum includes and markup required to run a reveal.js presentation.</p>
|
|
21
|
+
</section>
|
|
22
|
+
|
|
23
|
+
<section>
|
|
24
|
+
<h2>No Theme</h2>
|
|
25
|
+
<p>There's no theme included, so it will fall back on browser defaults.</p>
|
|
26
|
+
</section>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<script src="../../js/reveal.js"></script>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
|
|
36
|
+
Reveal.initialize();
|
|
37
|
+
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
</body>
|
|
41
|
+
</html>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>reveal.js - Embedded Media</title>
|
|
8
|
+
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
10
|
+
|
|
11
|
+
<link rel="stylesheet" href="../../css/reveal.css">
|
|
12
|
+
<link rel="stylesheet" href="../../css/theme/default.css" id="theme">
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
|
|
17
|
+
<div class="reveal">
|
|
18
|
+
|
|
19
|
+
<div class="slides">
|
|
20
|
+
|
|
21
|
+
<section>
|
|
22
|
+
<h2>Embedded Media Test</h2>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<section>
|
|
26
|
+
<iframe data-autoplay width="420" height="345" src="http://www.youtube.com/embed/l3RQZ4mcr1c"></iframe>
|
|
27
|
+
</section>
|
|
28
|
+
|
|
29
|
+
<section>
|
|
30
|
+
<h2>Empty Slide</h2>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<script src="../../lib/js/head.min.js"></script>
|
|
38
|
+
<script src="../../js/reveal.js"></script>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
|
|
42
|
+
Reveal.initialize({
|
|
43
|
+
transition: 'linear'
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
</body>
|
|
49
|
+
</html>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>reveal.js - Math Plugin</title>
|
|
8
|
+
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
10
|
+
|
|
11
|
+
<link rel="stylesheet" href="../../css/reveal.css">
|
|
12
|
+
<link rel="stylesheet" href="../../css/theme/night.css" id="theme">
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
|
|
17
|
+
<div class="reveal">
|
|
18
|
+
|
|
19
|
+
<div class="slides">
|
|
20
|
+
|
|
21
|
+
<section>
|
|
22
|
+
<h2>reveal.js Math Plugin</h2>
|
|
23
|
+
<p>A thin wrapper for MathJax</p>
|
|
24
|
+
</section>
|
|
25
|
+
|
|
26
|
+
<section>
|
|
27
|
+
<h3>The Lorenz Equations</h3>
|
|
28
|
+
|
|
29
|
+
\[\begin{aligned}
|
|
30
|
+
\dot{x} & = \sigma(y-x) \\
|
|
31
|
+
\dot{y} & = \rho x - y - xz \\
|
|
32
|
+
\dot{z} & = -\beta z + xy
|
|
33
|
+
\end{aligned} \]
|
|
34
|
+
</section>
|
|
35
|
+
|
|
36
|
+
<section>
|
|
37
|
+
<h3>The Cauchy-Schwarz Inequality</h3>
|
|
38
|
+
|
|
39
|
+
<script type="math/tex; mode=display">
|
|
40
|
+
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
|
|
41
|
+
</script>
|
|
42
|
+
</section>
|
|
43
|
+
|
|
44
|
+
<section>
|
|
45
|
+
<h3>A Cross Product Formula</h3>
|
|
46
|
+
|
|
47
|
+
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
|
|
48
|
+
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
|
|
49
|
+
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
|
|
50
|
+
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
|
|
51
|
+
\end{vmatrix} \]
|
|
52
|
+
</section>
|
|
53
|
+
|
|
54
|
+
<section>
|
|
55
|
+
<h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
|
|
56
|
+
|
|
57
|
+
\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
|
|
58
|
+
</section>
|
|
59
|
+
|
|
60
|
+
<section>
|
|
61
|
+
<h3>An Identity of Ramanujan</h3>
|
|
62
|
+
|
|
63
|
+
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
|
|
64
|
+
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
|
|
65
|
+
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
|
|
66
|
+
</section>
|
|
67
|
+
|
|
68
|
+
<section>
|
|
69
|
+
<h3>A Rogers-Ramanujan Identity</h3>
|
|
70
|
+
|
|
71
|
+
\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
|
|
72
|
+
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
|
|
73
|
+
</section>
|
|
74
|
+
|
|
75
|
+
<section>
|
|
76
|
+
<h3>Maxwell’s Equations</h3>
|
|
77
|
+
|
|
78
|
+
\[ \begin{aligned}
|
|
79
|
+
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
|
|
80
|
+
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
|
|
81
|
+
\nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
|
|
82
|
+
\]
|
|
83
|
+
</section>
|
|
84
|
+
|
|
85
|
+
<section>
|
|
86
|
+
<section>
|
|
87
|
+
<h3>The Lorenz Equations</h3>
|
|
88
|
+
|
|
89
|
+
<div class="fragment">
|
|
90
|
+
\[\begin{aligned}
|
|
91
|
+
\dot{x} & = \sigma(y-x) \\
|
|
92
|
+
\dot{y} & = \rho x - y - xz \\
|
|
93
|
+
\dot{z} & = -\beta z + xy
|
|
94
|
+
\end{aligned} \]
|
|
95
|
+
</div>
|
|
96
|
+
</section>
|
|
97
|
+
|
|
98
|
+
<section>
|
|
99
|
+
<h3>The Cauchy-Schwarz Inequality</h3>
|
|
100
|
+
|
|
101
|
+
<div class="fragment">
|
|
102
|
+
\[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
|
|
103
|
+
</div>
|
|
104
|
+
</section>
|
|
105
|
+
|
|
106
|
+
<section>
|
|
107
|
+
<h3>A Cross Product Formula</h3>
|
|
108
|
+
|
|
109
|
+
<div class="fragment">
|
|
110
|
+
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
|
|
111
|
+
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
|
|
112
|
+
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
|
|
113
|
+
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
|
|
114
|
+
\end{vmatrix} \]
|
|
115
|
+
</div>
|
|
116
|
+
</section>
|
|
117
|
+
|
|
118
|
+
<section>
|
|
119
|
+
<h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
|
|
120
|
+
|
|
121
|
+
<div class="fragment">
|
|
122
|
+
\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
|
|
123
|
+
</div>
|
|
124
|
+
</section>
|
|
125
|
+
|
|
126
|
+
<section>
|
|
127
|
+
<h3>An Identity of Ramanujan</h3>
|
|
128
|
+
|
|
129
|
+
<div class="fragment">
|
|
130
|
+
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
|
|
131
|
+
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
|
|
132
|
+
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
|
|
133
|
+
</div>
|
|
134
|
+
</section>
|
|
135
|
+
|
|
136
|
+
<section>
|
|
137
|
+
<h3>A Rogers-Ramanujan Identity</h3>
|
|
138
|
+
|
|
139
|
+
<div class="fragment">
|
|
140
|
+
\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
|
|
141
|
+
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
|
|
142
|
+
</div>
|
|
143
|
+
</section>
|
|
144
|
+
|
|
145
|
+
<section>
|
|
146
|
+
<h3>Maxwell’s Equations</h3>
|
|
147
|
+
|
|
148
|
+
<div class="fragment">
|
|
149
|
+
\[ \begin{aligned}
|
|
150
|
+
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
|
|
151
|
+
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
|
|
152
|
+
\nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
|
|
153
|
+
\]
|
|
154
|
+
</div>
|
|
155
|
+
</section>
|
|
156
|
+
</section>
|
|
157
|
+
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<script src="../../lib/js/head.min.js"></script>
|
|
163
|
+
<script src="../../js/reveal.js"></script>
|
|
164
|
+
|
|
165
|
+
<script>
|
|
166
|
+
|
|
167
|
+
Reveal.initialize({
|
|
168
|
+
history: true,
|
|
169
|
+
transition: 'linear',
|
|
170
|
+
|
|
171
|
+
math: {
|
|
172
|
+
// mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
|
|
173
|
+
config: 'TeX-AMS_HTML-full'
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
dependencies: [
|
|
177
|
+
{ src: '../../lib/js/classList.js' },
|
|
178
|
+
{ src: '../../plugin/math/math.js', async: true }
|
|
179
|
+
]
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
</script>
|
|
183
|
+
|
|
184
|
+
</body>
|
|
185
|
+
</html>
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>reveal.js - Slide Backgrounds</title>
|
|
8
|
+
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
10
|
+
|
|
11
|
+
<link rel="stylesheet" href="../../css/reveal.css">
|
|
12
|
+
<link rel="stylesheet" href="../../css/theme/serif.css" id="theme">
|
|
13
|
+
<style type="text/css" media="screen">
|
|
14
|
+
.slides section.has-dark-background,
|
|
15
|
+
.slides section.has-dark-background h2 {
|
|
16
|
+
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
.slides section.has-light-background,
|
|
19
|
+
.slides section.has-light-background h2 {
|
|
20
|
+
color: #222;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
</head>
|
|
24
|
+
|
|
25
|
+
<body>
|
|
26
|
+
|
|
27
|
+
<div class="reveal">
|
|
28
|
+
|
|
29
|
+
<div class="slides">
|
|
30
|
+
|
|
31
|
+
<section data-background="#00ffff">
|
|
32
|
+
<h2>data-background: #00ffff</h2>
|
|
33
|
+
</section>
|
|
34
|
+
|
|
35
|
+
<section data-background="#bb00bb">
|
|
36
|
+
<h2>data-background: #bb00bb</h2>
|
|
37
|
+
</section>
|
|
38
|
+
|
|
39
|
+
<section data-background-color="lightblue">
|
|
40
|
+
<h2>data-background: lightblue</h2>
|
|
41
|
+
</section>
|
|
42
|
+
|
|
43
|
+
<section>
|
|
44
|
+
<section data-background="#ff0000">
|
|
45
|
+
<h2>data-background: #ff0000</h2>
|
|
46
|
+
</section>
|
|
47
|
+
<section data-background="rgba(0, 0, 0, 0.2)">
|
|
48
|
+
<h2>data-background: rgba(0, 0, 0, 0.2)</h2>
|
|
49
|
+
</section>
|
|
50
|
+
<section data-background="salmon">
|
|
51
|
+
<h2>data-background: salmon</h2>
|
|
52
|
+
</section>
|
|
53
|
+
</section>
|
|
54
|
+
|
|
55
|
+
<section data-background="rgba(0, 100, 100, 0.2)">
|
|
56
|
+
<section>
|
|
57
|
+
<h2>Background applied to stack</h2>
|
|
58
|
+
</section>
|
|
59
|
+
<section>
|
|
60
|
+
<h2>Background applied to stack</h2>
|
|
61
|
+
</section>
|
|
62
|
+
<section data-background="rgb(66, 66, 66)">
|
|
63
|
+
<h2>Background applied to slide inside of stack</h2>
|
|
64
|
+
</section>
|
|
65
|
+
</section>
|
|
66
|
+
|
|
67
|
+
<section data-background-transition="slide" data-background="assets/image1.png">
|
|
68
|
+
<h2>Background image</h2>
|
|
69
|
+
</section>
|
|
70
|
+
|
|
71
|
+
<section>
|
|
72
|
+
<section data-background-transition="slide" data-background="assets/image1.png">
|
|
73
|
+
<h2>Background image</h2>
|
|
74
|
+
</section>
|
|
75
|
+
<section data-background-transition="slide" data-background="assets/image1.png">
|
|
76
|
+
<h2>Background image</h2>
|
|
77
|
+
</section>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
80
|
+
<section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111">
|
|
81
|
+
<h2>Background image</h2>
|
|
82
|
+
<pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
|
|
83
|
+
</section>
|
|
84
|
+
|
|
85
|
+
<section data-background="#888888">
|
|
86
|
+
<h2>Same background twice (1/2)</h2>
|
|
87
|
+
</section>
|
|
88
|
+
<section data-background="#888888">
|
|
89
|
+
<h2>Same background twice (2/2)</h2>
|
|
90
|
+
</section>
|
|
91
|
+
|
|
92
|
+
<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">
|
|
93
|
+
<h2>Video background</h2>
|
|
94
|
+
</section>
|
|
95
|
+
|
|
96
|
+
<section data-background-iframe="https://slides.com">
|
|
97
|
+
<h2>Iframe background</h2>
|
|
98
|
+
</section>
|
|
99
|
+
|
|
100
|
+
<section>
|
|
101
|
+
<section data-background="#417203">
|
|
102
|
+
<h2>Same background twice vertical (1/2)</h2>
|
|
103
|
+
</section>
|
|
104
|
+
<section data-background="#417203">
|
|
105
|
+
<h2>Same background twice vertical (2/2)</h2>
|
|
106
|
+
</section>
|
|
107
|
+
</section>
|
|
108
|
+
|
|
109
|
+
<section data-background="#934f4d">
|
|
110
|
+
<h2>Same background from horizontal to vertical (1/3)</h2>
|
|
111
|
+
</section>
|
|
112
|
+
<section>
|
|
113
|
+
<section data-background="#934f4d">
|
|
114
|
+
<h2>Same background from horizontal to vertical (2/3)</h2>
|
|
115
|
+
</section>
|
|
116
|
+
<section data-background="#934f4d">
|
|
117
|
+
<h2>Same background from horizontal to vertical (3/3)</h2>
|
|
118
|
+
</section>
|
|
119
|
+
</section>
|
|
120
|
+
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<script src="../../lib/js/head.min.js"></script>
|
|
126
|
+
<script src="../../js/reveal.js"></script>
|
|
127
|
+
|
|
128
|
+
<script>
|
|
129
|
+
|
|
130
|
+
// Full list of configuration options available here:
|
|
131
|
+
// https://github.com/hakimel/reveal.js#configuration
|
|
132
|
+
Reveal.initialize({
|
|
133
|
+
center: true,
|
|
134
|
+
// rtl: true,
|
|
135
|
+
|
|
136
|
+
transition: 'linear',
|
|
137
|
+
// transitionSpeed: 'slow',
|
|
138
|
+
// backgroundTransition: 'slide'
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
</script>
|
|
142
|
+
|
|
143
|
+
</body>
|
|
144
|
+
</html>
|