Firefox incompatible with demo

Back to General discussions forum

spudowiar     2015-07-04 13:10:32

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!

Rodion (admin)     2015-07-06 07:08:59
User avatar

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.)

Mastermind     2016-03-21 20:38:20

Still now working in Firefox.

Please login and solve 5 problems to be able to post at forum