Back to General discussions forum
I just wanted to let you know that Firefox cannot run some of the demos (e.g. Maxit Single-Player or Safe Landing) because some of the JavaScript is used non-standard.
In the Maxit Single-Player demo, the <canvas>
tag has onclick="clickMove()"
. This should be changed to onclick="clickMove(event)"
.
This is because Firefox used the implicit event
variable but, unlike Internet Explorer (and others), it does not define it as window.event
.
In the Safe Landing demo, the charCode
attribute is used incorrectly.
As you are using jQuery, you can replace every occurence of charCode
with which
and replace the backspace block with
if (e.which == 8) {
self.key(e);
}
Thanks in advance!
Hi! Thanks for your bug report!
As I've tried to make the proposed change for Maxit, I've found that it is not the last error in FireFox, so probably few more actions are needed. I'll try to fix it bit later.
(It seems bad that the code for maxit is not moved to github yet, as with some other demos. Probably it is also worth of taking care.)
Still now working in Firefox.