make hiding of address bar configurable
This commit is contained in:
parent
79340908f4
commit
041a525a3c
@ -74,6 +74,9 @@ var Reveal = (function(){
|
|||||||
// Apply a 3D roll to links on hover
|
// Apply a 3D roll to links on hover
|
||||||
rollingLinks: false,
|
rollingLinks: false,
|
||||||
|
|
||||||
|
// Hides the address bar on mobile devices
|
||||||
|
hideAddressBar: true,
|
||||||
|
|
||||||
// Opens links in an iframe preview overlay
|
// Opens links in an iframe preview overlay
|
||||||
previewLinks: false,
|
previewLinks: false,
|
||||||
|
|
||||||
@ -767,7 +770,7 @@ var Reveal = (function(){
|
|||||||
*/
|
*/
|
||||||
function hideAddressBar() {
|
function hideAddressBar() {
|
||||||
|
|
||||||
if( isMobileDevice ) {
|
if( config.hideAddressBar && isMobileDevice ) {
|
||||||
// Events that should trigger the address bar to hide
|
// Events that should trigger the address bar to hide
|
||||||
window.addEventListener( 'load', removeAddressBar, false );
|
window.addEventListener( 'load', removeAddressBar, false );
|
||||||
window.addEventListener( 'orientationchange', removeAddressBar, false );
|
window.addEventListener( 'orientationchange', removeAddressBar, false );
|
||||||
|
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