I’m having a bit of an issue with the scratch off. It works fine when using Mac devices (iPads) and viewing in Chrome on the desktop but when using an Android (Samsung) mobile devices, Firefox and Chrome on the desktop, the document does not display. It only displays a gray background.
The file works the same way even after I export it to HTML.
I tried to figure this out as much as I can. I’m thinking it has to be a js error so I used an on javascript tester. I did receive many warnings. Here are a few that were found in the _hype_generated_script.js and the scratch.min.js.
ScratchOff Hype Generated JS
Use ‘===‘ to compare with ‘null’.
Use ‘===‘ to compare with ‘false’.
Confussing use of ‘!’.
‘a’ used out of scope.
‘f’ used out of scope.
Don’t make functions within a loop.
ScratchOff JS
‘e’ is already defined.
‘f’ is already defined.
Missing radix parameter.
Use ‘!==’ to compare with ‘0’.
Use ‘!==’ to compare with ‘0’.
Missing ‘()’ invoking a constructor.
Unnecessary semicolon.
Any help or direction would be so much appreciated.
Thanks so much!
Marian
Hi Daniel.
Thanks for getting back to me.
That scratch off you show here was something I did months ago, totally forgot about it but, I have been using it as a template for the new design which is not working in both Chrome and FF or the Samsungs.
I can revisit that document to see what broke with the design I’m working on now.
The one version of the Samsung is Android 5.1.1 and Chrome 60.0.3112.
Thanks for your help.
I’ll let you know how this works out for me.
Marian
The file that was not working for me in FF or Chrome and the Samsung was because of different code used. The reason why I was using the second code so not to go into code when images were being replaced. At the time I was only testing in Safari with the second code.