diff --git a/css/impress-demo.css b/css/impress-demo.css index e478573..b92c76c 100644 --- a/css/impress-demo.css +++ b/css/impress-demo.css @@ -715,6 +715,7 @@ body.impress-mouse-timeout { .impress-enabled { pointer-events: none } .impress-enabled #impress { pointer-events: auto } .impress-enabled #impress-toolbar { pointer-events: auto } +.impress-enabled #impress-console-button { pointer-events: auto } /* There is one funny thing I just realized. diff --git a/examples/2D-navigation/css/presentation.css b/examples/2D-navigation/css/presentation.css index 8a03a7e..036addc 100644 --- a/examples/2D-navigation/css/presentation.css +++ b/examples/2D-navigation/css/presentation.css @@ -338,3 +338,4 @@ body.impress-mouse-timeout { .impress-enabled { pointer-events: none } .impress-enabled #impress { pointer-events: auto } .impress-enabled #impress-toolbar { pointer-events: auto } +.impress-enabled #impress-console-button { pointer-events: auto } diff --git a/examples/3D-rotations/css/3D-rotations.css b/examples/3D-rotations/css/3D-rotations.css index c8fadb8..9c12fd2 100644 --- a/examples/3D-rotations/css/3D-rotations.css +++ b/examples/3D-rotations/css/3D-rotations.css @@ -277,3 +277,4 @@ body.impress-mouse-timeout { .impress-enabled { pointer-events: none } .impress-enabled #impress { pointer-events: auto } .impress-enabled #impress-toolbar { pointer-events: auto } +.impress-enabled #impress-console-button { pointer-events: auto } diff --git a/examples/classic-slides/css/classic-slides.css b/examples/classic-slides/css/classic-slides.css index b491cf0..cbd821c 100644 --- a/examples/classic-slides/css/classic-slides.css +++ b/examples/classic-slides/css/classic-slides.css @@ -462,3 +462,4 @@ body.impress-mouse-timeout { .impress-enabled { pointer-events: none } .impress-enabled #impress { pointer-events: auto } .impress-enabled #impress-toolbar { pointer-events: auto } +.impress-enabled #impress-console-button { pointer-events: auto } diff --git a/examples/cube/css/cube.css b/examples/cube/css/cube.css index 931113e..4ea33c9 100644 --- a/examples/cube/css/cube.css +++ b/examples/cube/css/cube.css @@ -254,3 +254,4 @@ body.impress-mouse-timeout { .impress-enabled { pointer-events: none } .impress-enabled #impress { pointer-events: auto } .impress-enabled #impress-toolbar { pointer-events: auto } +.impress-enabled #impress-console-button { pointer-events: auto } diff --git a/examples/markdown/css/markdown-slides.css b/examples/markdown/css/markdown-slides.css index ed1e23a..db79088 100644 --- a/examples/markdown/css/markdown-slides.css +++ b/examples/markdown/css/markdown-slides.css @@ -231,3 +231,4 @@ body.impress-mouse-timeout { .impress-enabled { pointer-events: none } .impress-enabled #impress { pointer-events: auto } .impress-enabled #impress-toolbar { pointer-events: auto } +.impress-enabled #impress-console-button { pointer-events: auto } diff --git a/js/impress.js b/js/impress.js index 338b2f7..1ea0aa7 100644 --- a/js/impress.js +++ b/js/impress.js @@ -2309,15 +2309,16 @@ // ... so I add a button to klick. // workaround on firefox var message = document.createElement( 'div' ); - message.id = 'consoleWindowError'; + message.id = 'impress-console-button'; message.style.position = 'fixed'; message.style.left = 0; message.style.top = 0; message.style.right = 0; message.style.bottom = 0; message.style.backgroundColor = 'rgba(255, 255, 255, 0.9)'; - var onClickStr = 'var x = document.getElementById(\'consoleWindowError\');' + - 'x.parentNode.removeChild(x);impressConsole().open();'; + var onClickStr = 'var x = document.getElementById(\'impress-console-button\');' + + 'x.parentNode.removeChild(x);var root = document.getElementById(\'' + rootId + '\');' + + 'impress(\'' + rootId + '\').lib.util.triggerEvent(root, \'impress:console:open\', {})'; message.innerHTML = '