config option for disabling the help overlay

This commit is contained in:
Hakim El Hattab 2014-06-16 18:46:38 +02:00
parent 2e0fe815a6
commit ebfb496743
1 changed files with 38 additions and 30 deletions

View File

@ -85,6 +85,10 @@
// i.e. contained within a limited portion of the screen // i.e. contained within a limited portion of the screen
embedded: false, embedded: false,
// Flags if we should show a help overlay when the questionmark
// key is pressed
help: true,
// Number of milliseconds between automatically proceeding to the // Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten // next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides // by using a data-autoslide attribute on your slides
@ -1278,6 +1282,8 @@
*/ */
function showHelp() { function showHelp() {
if( config.help ) {
closeOverlay(); closeOverlay();
dom.overlay = document.createElement( 'div' ); dom.overlay = document.createElement( 'div' );
@ -1314,6 +1320,8 @@
} }
}
/** /**
* Closes any currently open overlay. * Closes any currently open overlay.
*/ */