Also sync js/impress.js / Forgot to run node build.js

This commit is contained in:
Henrik Ingo
2018-01-01 15:32:16 +02:00
parent 729651dd5d
commit 784a6d245b

View File

@@ -2316,11 +2316,14 @@
message.style.right = 0;
message.style.bottom = 0;
message.style.backgroundColor = 'rgba(255, 255, 255, 0.9)';
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 = '<button style="margin: 25vh 25vw;width:50vw;height:50vh;" ' +
'onclick="' + onClickStr + '">' +
var clickStr = 'var x = document.getElementById(\'impress-console-button\');' +
'x.parentNode.removeChild(x);' +
'var r = document.getElementById(\'' + rootId + '\');' +
'impress(\'' + rootId +
'\').lib.util.triggerEvent(r, \'impress:console:open\', {})';
var styleStr = 'margin: 25vh 25vw;width:50vw;height:50vh;';
message.innerHTML = '<button style="' + styleStr + '" ' +
'onclick="' + clickStr + '">' +
lang.clickToOpen +
'</button>';
document.body.appendChild( message );
@@ -2962,12 +2965,13 @@
// check if event target (or any of its parents is a link)
var target = event.target;
try {
// For example, when clicking on the button to launch speaker console, the button
// is immediately deleted from the DOM. In this case target is a DOM element when
// we get it, but turns out to be null if you try to actually do anything with it.
target.id;
var foo = target.id; // jshint ignore:line
}
catch(err) {
catch ( err ) {
return;
}
@@ -2995,9 +2999,9 @@
gc.addEventListener( document, "click", function( event ) {
var target = event.target;
try {
target.id;
var foo = target.id; // jshint ignore:line
}
catch(err) {
catch ( err ) {
return;
}