slide_hero 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/README.md +1 -1
  4. data/lib/slide_hero/version.rb +1 -1
  5. data/lib/slide_hero/views/layout.html.erb +2 -2
  6. data/vendor/reveal.js/.gitignore +3 -1
  7. data/vendor/reveal.js/.travis.yml +1 -1
  8. data/vendor/reveal.js/CONTRIBUTING.md +19 -0
  9. data/vendor/reveal.js/Gruntfile.js +58 -21
  10. data/vendor/reveal.js/LICENSE +1 -1
  11. data/vendor/reveal.js/README.md +154 -74
  12. data/vendor/reveal.js/css/print/paper.css +193 -167
  13. data/vendor/reveal.js/css/print/pdf.css +20 -53
  14. data/vendor/reveal.js/css/reveal.css +912 -1651
  15. data/vendor/reveal.js/css/reveal.scss +1316 -0
  16. data/vendor/reveal.js/css/theme/README.md +1 -1
  17. data/vendor/reveal.js/css/theme/beige.css +177 -60
  18. data/vendor/reveal.js/css/theme/black.css +261 -0
  19. data/vendor/reveal.js/css/theme/blood.css +191 -75
  20. data/vendor/reveal.js/css/theme/league.css +267 -0
  21. data/vendor/reveal.js/css/theme/moon.css +168 -51
  22. data/vendor/reveal.js/css/theme/night.css +165 -42
  23. data/vendor/reveal.js/css/theme/serif.css +181 -58
  24. data/vendor/reveal.js/css/theme/simple.css +173 -50
  25. data/vendor/reveal.js/css/theme/sky.css +170 -47
  26. data/vendor/reveal.js/css/theme/solarized.css +168 -51
  27. data/vendor/reveal.js/css/theme/source/beige.scss +1 -12
  28. data/vendor/reveal.js/css/theme/source/black.scss +49 -0
  29. data/vendor/reveal.js/css/theme/source/blood.scss +4 -4
  30. data/vendor/reveal.js/css/theme/source/{default.scss → league.scss} +5 -13
  31. data/vendor/reveal.js/css/theme/source/moon.scss +1 -12
  32. data/vendor/reveal.js/css/theme/source/serif.scss +1 -1
  33. data/vendor/reveal.js/css/theme/source/sky.scss +1 -1
  34. data/vendor/reveal.js/css/theme/source/solarized.scss +1 -12
  35. data/vendor/reveal.js/css/theme/source/white.scss +49 -0
  36. data/vendor/reveal.js/css/theme/template/settings.scss +13 -4
  37. data/vendor/reveal.js/css/theme/template/theme.scss +182 -13
  38. data/vendor/reveal.js/css/theme/white.css +261 -0
  39. data/vendor/reveal.js/index.html +198 -178
  40. data/vendor/reveal.js/js/reveal.js +1286 -392
  41. data/vendor/reveal.js/lib/css/zenburn.css +74 -71
  42. data/vendor/reveal.js/lib/font/{league_gothic_license → league-gothic/LICENSE} +0 -0
  43. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
  44. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
  45. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
  46. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
  47. data/vendor/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
  48. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  49. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  50. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  51. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  52. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  53. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  54. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  55. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  56. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  57. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  58. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  59. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  60. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  61. data/vendor/reveal.js/package.json +9 -7
  62. data/vendor/reveal.js/plugin/highlight/highlight.js +2 -4
  63. data/vendor/reveal.js/plugin/leap/leap.js +4 -2
  64. data/vendor/reveal.js/plugin/markdown/example.html +2 -2
  65. data/vendor/reveal.js/plugin/markdown/markdown.js +8 -7
  66. data/vendor/reveal.js/plugin/notes/notes.html +321 -182
  67. data/vendor/reveal.js/plugin/notes/notes.js +89 -45
  68. data/vendor/reveal.js/plugin/notes-server/client.js +49 -46
  69. data/vendor/reveal.js/plugin/notes-server/index.js +28 -21
  70. data/vendor/reveal.js/plugin/notes-server/notes.html +351 -97
  71. data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +24 -20
  72. data/vendor/reveal.js/plugin/zoom-js/zoom.js +77 -57
  73. data/vendor/reveal.js/test/examples/barebones.html +2 -2
  74. data/vendor/reveal.js/test/examples/embedded-media.html +2 -2
  75. data/vendor/reveal.js/test/examples/math.html +2 -2
  76. data/vendor/reveal.js/test/examples/slide-backgrounds.html +29 -7
  77. data/vendor/reveal.js/test/test-markdown-element-attributes.html +6 -6
  78. data/vendor/reveal.js/test/test-markdown-slide-attributes.html +7 -7
  79. data/vendor/reveal.js/test/test-markdown.html +4 -4
  80. data/vendor/reveal.js/test/test-pdf.html +83 -0
  81. data/vendor/reveal.js/test/test-pdf.js +15 -0
  82. data/vendor/reveal.js/test/test.html +5 -4
  83. data/vendor/reveal.js/test/test.js +143 -9
  84. metadata +31 -13
  85. data/vendor/reveal.js/css/reveal.min.css +0 -7
  86. data/vendor/reveal.js/css/theme/default.css +0 -148
  87. data/vendor/reveal.js/js/reveal.min.js +0 -9
  88. data/vendor/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
  89. data/vendor/reveal.js/lib/font/league_gothic-webfont.svg +0 -230
  90. data/vendor/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
  91. data/vendor/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
  92. data/vendor/reveal.js/plugin/postmessage/example.html +0 -39
  93. data/vendor/reveal.js/plugin/postmessage/postmessage.js +0 -42
@@ -5,9 +5,21 @@
5
5
  document.querySelector( '.reveal' ).addEventListener( 'mousedown', function( event ) {
6
6
  var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
7
7
 
8
+ var zoomPadding = 20;
9
+ var revealScale = Reveal.getScale();
10
+
8
11
  if( event[ modifier ] && isEnabled ) {
9
12
  event.preventDefault();
10
- zoom.to({ element: event.target, pan: false });
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
+ });
11
23
  }
12
24
  } );
13
25
 
@@ -16,11 +28,11 @@
16
28
  })();
17
29
 
18
30
  /*!
19
- * zoom.js 0.2 (modified version for use with reveal.js)
31
+ * zoom.js 0.3 (modified for use with reveal.js)
20
32
  * http://lab.hakim.se/zoom-js
21
33
  * MIT licensed
22
34
  *
23
- * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
35
+ * Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se
24
36
  */
25
37
  var zoom = (function(){
26
38
 
@@ -35,8 +47,6 @@ var zoom = (function(){
35
47
  var panEngageTimeout = -1,
36
48
  panUpdateInterval = -1;
37
49
 
38
- var currentOptions = null;
39
-
40
50
  // Check for transform support so that we can fallback otherwise
41
51
  var supportsTransforms = 'WebkitTransform' in document.body.style ||
42
52
  'MozTransform' in document.body.style ||
@@ -58,7 +68,7 @@ var zoom = (function(){
58
68
  if( level !== 1 && event.keyCode === 27 ) {
59
69
  zoom.out();
60
70
  }
61
- }, false );
71
+ } );
62
72
 
63
73
  // Monitor mouse movement for panning
64
74
  document.addEventListener( 'mousemove', function( event ) {
@@ -66,38 +76,56 @@ var zoom = (function(){
66
76
  mouseX = event.clientX;
67
77
  mouseY = event.clientY;
68
78
  }
69
- }, false );
79
+ } );
70
80
 
71
81
  /**
72
- * Applies the CSS required to zoom in, prioritizes use of CSS3
82
+ * Applies the CSS required to zoom in, prefers the use of CSS3
73
83
  * transforms but falls back on zoom for IE.
74
84
  *
75
- * @param {Number} pageOffsetX
76
- * @param {Number} pageOffsetY
77
- * @param {Number} elementOffsetX
78
- * @param {Number} elementOffsetY
85
+ * @param {Object} rect
79
86
  * @param {Number} scale
80
87
  */
81
- function magnify( pageOffsetX, pageOffsetY, elementOffsetX, elementOffsetY, scale ) {
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;
82
99
 
83
100
  if( supportsTransforms ) {
84
- var origin = pageOffsetX +'px '+ pageOffsetY +'px',
85
- transform = 'translate('+ -elementOffsetX +'px,'+ -elementOffsetY +'px) scale('+ scale +')';
86
-
87
- document.body.style.transformOrigin = origin;
88
- document.body.style.OTransformOrigin = origin;
89
- document.body.style.msTransformOrigin = origin;
90
- document.body.style.MozTransformOrigin = origin;
91
- document.body.style.WebkitTransformOrigin = origin;
92
-
93
- document.body.style.transform = transform;
94
- document.body.style.OTransform = transform;
95
- document.body.style.msTransform = transform;
96
- document.body.style.MozTransform = transform;
97
- document.body.style.WebkitTransform = transform;
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
+ }
98
126
  }
99
127
  else {
100
- // Reset all values
128
+ // Reset
101
129
  if( scale === 1 ) {
102
130
  document.body.style.position = '';
103
131
  document.body.style.left = '';
@@ -106,11 +134,11 @@ var zoom = (function(){
106
134
  document.body.style.height = '';
107
135
  document.body.style.zoom = '';
108
136
  }
109
- // Apply scale
137
+ // Scale
110
138
  else {
111
139
  document.body.style.position = 'relative';
112
- document.body.style.left = ( - ( pageOffsetX + elementOffsetX ) / scale ) + 'px';
113
- document.body.style.top = ( - ( pageOffsetY + elementOffsetY ) / scale ) + 'px';
140
+ document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
141
+ document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
114
142
  document.body.style.width = ( scale * 100 ) + '%';
115
143
  document.body.style.height = ( scale * 100 ) + '%';
116
144
  document.body.style.zoom = scale;
@@ -119,11 +147,13 @@ var zoom = (function(){
119
147
 
120
148
  level = scale;
121
149
 
122
- if( level !== 1 && document.documentElement.classList ) {
123
- document.documentElement.classList.add( 'zoomed' );
124
- }
125
- else {
126
- document.documentElement.classList.remove( 'zoomed' );
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
+ }
127
157
  }
128
158
  }
129
159
 
@@ -159,7 +189,7 @@ var zoom = (function(){
159
189
  function getScrollOffset() {
160
190
  return {
161
191
  x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset,
162
- y: window.scrollY !== undefined ? window.scrollY : window.pageXYffset
192
+ y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset
163
193
  }
164
194
  }
165
195
 
@@ -175,6 +205,7 @@ var zoom = (function(){
175
205
  * - scale: can be used instead of width/height to explicitly set scale
176
206
  */
177
207
  to: function( options ) {
208
+
178
209
  // Due to an implementation limitation we can't zoom in
179
210
  // to another element without zooming out first
180
211
  if( level !== 1 ) {
@@ -188,11 +219,12 @@ var zoom = (function(){
188
219
  if( !!options.element ) {
189
220
  // Space around the zoomed in element to leave on screen
190
221
  var padding = 20;
222
+ var bounds = options.element.getBoundingClientRect();
191
223
 
192
- options.width = options.element.getBoundingClientRect().width + ( padding * 2 );
193
- options.height = options.element.getBoundingClientRect().height + ( padding * 2 );
194
- options.x = options.element.getBoundingClientRect().left - padding;
195
- options.y = options.element.getBoundingClientRect().top - padding;
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 );
196
228
  }
197
229
 
198
230
  // If width/height values are set, calculate scale from those values
@@ -204,13 +236,7 @@ var zoom = (function(){
204
236
  options.x *= options.scale;
205
237
  options.y *= options.scale;
206
238
 
207
- var scrollOffset = getScrollOffset();
208
-
209
- if( options.element ) {
210
- scrollOffset.x -= ( window.innerWidth - ( options.width * options.scale ) ) / 2;
211
- }
212
-
213
- magnify( scrollOffset.x, scrollOffset.y, options.x, options.y, options.scale );
239
+ magnify( options, options.scale );
214
240
 
215
241
  if( options.pan !== false ) {
216
242
 
@@ -222,8 +248,6 @@ var zoom = (function(){
222
248
 
223
249
  }
224
250
  }
225
-
226
- currentOptions = options;
227
251
  }
228
252
  },
229
253
 
@@ -234,13 +258,7 @@ var zoom = (function(){
234
258
  clearTimeout( panEngageTimeout );
235
259
  clearInterval( panUpdateInterval );
236
260
 
237
- var scrollOffset = getScrollOffset();
238
-
239
- if( currentOptions && currentOptions.element ) {
240
- scrollOffset.x -= ( window.innerWidth - ( currentOptions.width * currentOptions.scale ) ) / 2;
241
- }
242
-
243
- magnify( scrollOffset.x, scrollOffset.y, 0, 0, 1 );
261
+ magnify( { x: 0, y: 0 }, 1 );
244
262
 
245
263
  level = 1;
246
264
  },
@@ -256,3 +274,5 @@ var zoom = (function(){
256
274
 
257
275
  })();
258
276
 
277
+
278
+
@@ -6,7 +6,7 @@
6
6
 
7
7
  <title>reveal.js - Barebones</title>
8
8
 
9
- <link rel="stylesheet" href="../../css/reveal.min.css">
9
+ <link rel="stylesheet" href="../../css/reveal.css">
10
10
  </head>
11
11
 
12
12
  <body>
@@ -29,7 +29,7 @@
29
29
 
30
30
  </div>
31
31
 
32
- <script src="../../js/reveal.min.js"></script>
32
+ <script src="../../js/reveal.js"></script>
33
33
 
34
34
  <script>
35
35
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10
10
 
11
- <link rel="stylesheet" href="../../css/reveal.min.css">
11
+ <link rel="stylesheet" href="../../css/reveal.css">
12
12
  <link rel="stylesheet" href="../../css/theme/default.css" id="theme">
13
13
  </head>
14
14
 
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
 
37
37
  <script src="../../lib/js/head.min.js"></script>
38
- <script src="../../js/reveal.min.js"></script>
38
+ <script src="../../js/reveal.js"></script>
39
39
 
40
40
  <script>
41
41
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10
10
 
11
- <link rel="stylesheet" href="../../css/reveal.min.css">
11
+ <link rel="stylesheet" href="../../css/reveal.css">
12
12
  <link rel="stylesheet" href="../../css/theme/night.css" id="theme">
13
13
  </head>
14
14
 
@@ -160,7 +160,7 @@
160
160
  </div>
161
161
 
162
162
  <script src="../../lib/js/head.min.js"></script>
163
- <script src="../../js/reveal.min.js"></script>
163
+ <script src="../../js/reveal.js"></script>
164
164
 
165
165
  <script>
166
166
 
@@ -8,8 +8,18 @@
8
8
 
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10
10
 
11
- <link rel="stylesheet" href="../../css/reveal.min.css">
11
+ <link rel="stylesheet" href="../../css/reveal.css">
12
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>
13
23
  </head>
14
24
 
15
25
  <body>
@@ -26,6 +36,10 @@
26
36
  <h2>data-background: #bb00bb</h2>
27
37
  </section>
28
38
 
39
+ <section data-background-color="lightblue">
40
+ <h2>data-background: lightblue</h2>
41
+ </section>
42
+
29
43
  <section>
30
44
  <section data-background="#ff0000">
31
45
  <h2>data-background: #ff0000</h2>
@@ -45,25 +59,25 @@
45
59
  <section>
46
60
  <h2>Background applied to stack</h2>
47
61
  </section>
48
- <section data-background="rgba(100, 0, 0, 0.2)">
62
+ <section data-background="rgb(66, 66, 66)">
49
63
  <h2>Background applied to slide inside of stack</h2>
50
64
  </section>
51
65
  </section>
52
66
 
53
- <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
67
+ <section data-background-transition="slide" data-background="assets/image1.png">
54
68
  <h2>Background image</h2>
55
69
  </section>
56
70
 
57
71
  <section>
58
- <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
72
+ <section data-background-transition="slide" data-background="assets/image1.png">
59
73
  <h2>Background image</h2>
60
74
  </section>
61
- <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
75
+ <section data-background-transition="slide" data-background="assets/image1.png">
62
76
  <h2>Background image</h2>
63
77
  </section>
64
78
  </section>
65
79
 
66
- <section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111" style="background: rgba(255,255,255,0.9)">
80
+ <section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111">
67
81
  <h2>Background image</h2>
68
82
  <pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
69
83
  </section>
@@ -75,6 +89,14 @@
75
89
  <h2>Same background twice (2/2)</h2>
76
90
  </section>
77
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
+
78
100
  <section>
79
101
  <section data-background="#417203">
80
102
  <h2>Same background twice vertical (1/2)</h2>
@@ -101,7 +123,7 @@
101
123
  </div>
102
124
 
103
125
  <script src="../../lib/js/head.min.js"></script>
104
- <script src="../../js/reveal.min.js"></script>
126
+ <script src="../../js/reveal.js"></script>
105
127
 
106
128
  <script>
107
129
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  <title>reveal.js - Test Markdown Element Attributes</title>
8
8
 
9
- <link rel="stylesheet" href="../css/reveal.min.css">
9
+ <link rel="stylesheet" href="../css/reveal.css">
10
10
  <link rel="stylesheet" href="qunit-1.12.0.css">
11
11
  </head>
12
12
 
@@ -19,10 +19,10 @@
19
19
 
20
20
  <div class="slides">
21
21
 
22
- <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> -->
22
+ <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
23
23
 
24
24
  <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
25
- <section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">>
25
+ <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">>
26
26
  <script type="text/template">
27
27
  ## Slide 1.1
28
28
  <!-- {_class="fragment fade-out" data-fragment-index="1"} -->
@@ -75,8 +75,8 @@
75
75
 
76
76
 
77
77
  <section data-markdown data-separator="^\n\n\n"
78
- data-vertical="^\n\n"
79
- data-notes="^Note:"
78
+ data-separator-vertical="^\n\n"
79
+ data-separator-notes="^Note:"
80
80
  data-charset="utf-8">
81
81
  <script type="text/template">
82
82
  # Test attributes in Markdown with default separator
@@ -123,7 +123,7 @@
123
123
  </div>
124
124
 
125
125
  <script src="../lib/js/head.min.js"></script>
126
- <script src="../js/reveal.min.js"></script>
126
+ <script src="../js/reveal.js"></script>
127
127
  <script src="../plugin/markdown/marked.js"></script>
128
128
  <script src="../plugin/markdown/markdown.js"></script>
129
129
  <script src="qunit-1.12.0.js"></script>
@@ -6,7 +6,7 @@
6
6
 
7
7
  <title>reveal.js - Test Markdown Attributes</title>
8
8
 
9
- <link rel="stylesheet" href="../css/reveal.min.css">
9
+ <link rel="stylesheet" href="../css/reveal.css">
10
10
  <link rel="stylesheet" href="qunit-1.12.0.css">
11
11
  </head>
12
12
 
@@ -19,12 +19,12 @@
19
19
 
20
20
  <div class="slides">
21
21
 
22
- <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> -->
22
+ <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
23
23
 
24
24
  <!-- Slides are separated by three lines, vertical slides by two lines, attributes are one any line starting with (spaces and) two dashes -->
25
25
  <section data-markdown data-separator="^\n\n\n"
26
- data-vertical="^\n\n"
27
- data-notes="^Note:"
26
+ data-separator-vertical="^\n\n"
27
+ data-separator-notes="^Note:"
28
28
  data-attributes="--\s(.*?)$"
29
29
  data-charset="utf-8">
30
30
  <script type="text/template">
@@ -56,8 +56,8 @@
56
56
  </section>
57
57
 
58
58
  <section data-markdown data-separator="^\n\n\n"
59
- data-vertical="^\n\n"
60
- data-notes="^Note:"
59
+ data-separator-vertical="^\n\n"
60
+ data-separator-notes="^Note:"
61
61
  data-charset="utf-8">
62
62
  <script type="text/template">
63
63
  # Test attributes in Markdown with default separator
@@ -117,7 +117,7 @@
117
117
  </div>
118
118
 
119
119
  <script src="../lib/js/head.min.js"></script>
120
- <script src="../js/reveal.min.js"></script>
120
+ <script src="../js/reveal.js"></script>
121
121
  <script src="../plugin/markdown/marked.js"></script>
122
122
  <script src="../plugin/markdown/markdown.js"></script>
123
123
  <script src="qunit-1.12.0.js"></script>
@@ -6,7 +6,7 @@
6
6
 
7
7
  <title>reveal.js - Test Markdown</title>
8
8
 
9
- <link rel="stylesheet" href="../css/reveal.min.css">
9
+ <link rel="stylesheet" href="../css/reveal.css">
10
10
  <link rel="stylesheet" href="qunit-1.12.0.css">
11
11
  </head>
12
12
 
@@ -19,10 +19,10 @@
19
19
 
20
20
  <div class="slides">
21
21
 
22
- <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> -->
22
+ <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
23
23
 
24
24
  <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
25
- <section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$">
25
+ <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$">
26
26
  <script type="text/template">
27
27
  ## Slide 1.1
28
28
 
@@ -41,7 +41,7 @@
41
41
  </div>
42
42
 
43
43
  <script src="../lib/js/head.min.js"></script>
44
- <script src="../js/reveal.min.js"></script>
44
+ <script src="../js/reveal.js"></script>
45
45
  <script src="../plugin/markdown/marked.js"></script>
46
46
  <script src="../plugin/markdown/markdown.js"></script>
47
47
  <script src="qunit-1.12.0.js"></script>
@@ -0,0 +1,83 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+
7
+ <title>reveal.js - Test PDF exports</title>
8
+
9
+ <link rel="stylesheet" href="../css/reveal.css">
10
+ <link rel="stylesheet" href="../css/print/pdf.css">
11
+ <link rel="stylesheet" href="qunit-1.12.0.css">
12
+ </head>
13
+
14
+ <body style="overflow: auto;">
15
+
16
+ <div id="qunit"></div>
17
+ <div id="qunit-fixture"></div>
18
+
19
+ <div class="reveal" style="display: none;">
20
+
21
+ <div class="slides">
22
+
23
+ <section>
24
+ <h1>1</h1>
25
+ <img data-src="fake-url.png">
26
+ </section>
27
+
28
+ <section>
29
+ <section>
30
+ <h1>2.1</h1>
31
+ </section>
32
+ <section>
33
+ <h1>2.2</h1>
34
+ </section>
35
+ <section>
36
+ <h1>2.3</h1>
37
+ </section>
38
+ </section>
39
+
40
+ <section id="fragment-slides">
41
+ <section>
42
+ <h1>3.1</h1>
43
+ <ul>
44
+ <li class="fragment">4.1</li>
45
+ <li class="fragment">4.2</li>
46
+ <li class="fragment">4.3</li>
47
+ </ul>
48
+ </section>
49
+
50
+ <section>
51
+ <h1>3.2</h1>
52
+ <ul>
53
+ <li class="fragment" data-fragment-index="0">4.1</li>
54
+ <li class="fragment" data-fragment-index="0">4.2</li>
55
+ </ul>
56
+ </section>
57
+
58
+ <section>
59
+ <h1>3.3</h1>
60
+ <ul>
61
+ <li class="fragment" data-fragment-index="1">3.3.1</li>
62
+ <li class="fragment" data-fragment-index="4">3.3.2</li>
63
+ <li class="fragment" data-fragment-index="4">3.3.3</li>
64
+ </ul>
65
+ </section>
66
+ </section>
67
+
68
+ <section>
69
+ <h1>4</h1>
70
+ </section>
71
+
72
+ </div>
73
+
74
+ </div>
75
+
76
+ <script src="../lib/js/head.min.js"></script>
77
+ <script src="../js/reveal.js"></script>
78
+ <script src="qunit-1.12.0.js"></script>
79
+
80
+ <script src="test-pdf.js"></script>
81
+
82
+ </body>
83
+ </html>
@@ -0,0 +1,15 @@
1
+
2
+ Reveal.addEventListener( 'ready', function() {
3
+
4
+ // Only one test for now, we're mainly ensuring that there
5
+ // are no execution errors when running PDF mode
6
+
7
+ test( 'Reveal.isReady', function() {
8
+ strictEqual( Reveal.isReady(), true, 'returns true' );
9
+ });
10
+
11
+
12
+ } );
13
+
14
+ Reveal.initialize({ pdf: true });
15
+
@@ -6,7 +6,7 @@
6
6
 
7
7
  <title>reveal.js - Tests</title>
8
8
 
9
- <link rel="stylesheet" href="../css/reveal.min.css">
9
+ <link rel="stylesheet" href="../css/reveal.css">
10
10
  <link rel="stylesheet" href="qunit-1.12.0.css">
11
11
  </head>
12
12
 
@@ -19,12 +19,13 @@
19
19
 
20
20
  <div class="slides">
21
21
 
22
- <section>
22
+ <section data-background-image="examples/assets/image1.png">
23
23
  <h1>1</h1>
24
+ <img data-src="fake-url.png">
24
25
  </section>
25
26
 
26
27
  <section>
27
- <section>
28
+ <section data-background="examples/assets/image2.png">
28
29
  <h1>2.1</h1>
29
30
  </section>
30
31
  <section>
@@ -72,7 +73,7 @@
72
73
  </div>
73
74
 
74
75
  <script src="../lib/js/head.min.js"></script>
75
- <script src="../js/reveal.min.js"></script>
76
+ <script src="../js/reveal.js"></script>
76
77
  <script src="qunit-1.12.0.js"></script>
77
78
 
78
79
  <script src="test.js"></script>