aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2015-08-07 22:55:37 -0600
committerDan Allen <dan.j.allen@gmail.com>2015-08-07 23:04:23 -0600
commitccbc7ed6bcd9a2fe9a8d6c651fdc8644ecc08ee6 (patch)
treeb90a8ca66c406bdcb0bf9362a6b634fc3a1392e5 /js
parentb390e66c270d4fc26755fc4097e02808ea567721 (diff)
downloadfreenode-live-2017-presentation-ccbc7ed6bcd9a2fe9a8d6c651fdc8644ecc08ee6.tar
freenode-live-2017-presentation-ccbc7ed6bcd9a2fe9a8d6c651fdc8644ecc08ee6.tar.gz
resolves #1324 allow display property to be configured
- allow display property apply to current slide to be configured
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index ff5ea53..499d006 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -45,6 +45,9 @@
minScale: 0.2,
maxScale: 1.5,
+ // Value of the display CSS property applied to current slide to make it visible
+ display: 'block',
+
// Display controls in the bottom right corner
controls: true,
@@ -2721,7 +2724,7 @@
function showSlide( slide ) {
// Show the slide element
- slide.style.display = 'block';
+ slide.style.display = config.display;
// Media elements with data-src attributes
toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src]' ) ).forEach( function( element ) {