aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-28 11:51:21 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-28 11:51:21 +0200
commit9873839a50bffa9ef57050cf583588db2f66fde6 (patch)
tree2334b8ab684c8c8e03dbc5730d13c87bdc904c93
parent9f0224adf9c33d466292c5917533cee15c8536ed (diff)
downloadfosdem-2018-presentation-9873839a50bffa9ef57050cf583588db2f66fde6.tar
fosdem-2018-presentation-9873839a50bffa9ef57050cf583588db2f66fde6.tar.gz
fix issue with background images on first vertical sldie
-rw-r--r--js/reveal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 8c8b619..df1b1f5 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2332,8 +2332,8 @@
if( background.hasAttribute( 'data-loaded' ) === false ) {
background.setAttribute( 'data-loaded', 'true' );
- var backgroundImage = slide.getAttribute( 'data-background-image' );
- var backgroundVideo = slide.getAttribute( 'data-background-video' );
+ var backgroundImage = slide.getAttribute( 'data-background-image' ),
+ backgroundVideo = slide.getAttribute( 'data-background-video' );
// Images
if( backgroundImage ) {
@@ -2673,7 +2673,7 @@
h = Math.max( horizontalSlides.indexOf( slideh ), 0 );
// Assume we're not vertical
- v = 0;
+ v = undefined;
// If this is a vertical slide, grab the vertical index
if( isVertical ) {