always construct controls and progress bar at startup (closes #384)
This commit is contained in:
parent
5353404361
commit
6ece551f8a
@ -181,7 +181,7 @@ var Reveal = (function(){
|
|||||||
dom.slides = document.querySelector( '.reveal .slides' );
|
dom.slides = document.querySelector( '.reveal .slides' );
|
||||||
|
|
||||||
// Progress bar
|
// Progress bar
|
||||||
if( !dom.wrapper.querySelector( '.progress' ) && config.progress ) {
|
if( !dom.wrapper.querySelector( '.progress' ) ) {
|
||||||
var progressElement = document.createElement( 'div' );
|
var progressElement = document.createElement( 'div' );
|
||||||
progressElement.classList.add( 'progress' );
|
progressElement.classList.add( 'progress' );
|
||||||
progressElement.innerHTML = '<span></span>';
|
progressElement.innerHTML = '<span></span>';
|
||||||
@ -189,7 +189,7 @@ var Reveal = (function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Arrow controls
|
// Arrow controls
|
||||||
if( !dom.wrapper.querySelector( '.controls' ) && config.controls ) {
|
if( !dom.wrapper.querySelector( '.controls' ) ) {
|
||||||
var controlsElement = document.createElement( 'aside' );
|
var controlsElement = document.createElement( 'aside' );
|
||||||
controlsElement.classList.add( 'controls' );
|
controlsElement.classList.add( 'controls' );
|
||||||
controlsElement.innerHTML = '<div class="navigate-left"></div>' +
|
controlsElement.innerHTML = '<div class="navigate-left"></div>' +
|
||||||
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user