I hate sharing my code, but I don't have any other option. I tried everything to prevent it, but I need to find out what's wrong about it.
http://pastebin.com/zMjne7P0
User focusses out input field (line 83)(I tried inputting ";" for tests, which should return error, as it's invalid name). And the entire big function executes well, it understands that the field is not empty, so it just goes on, it notices that it's not alphanumeric. And here's the problem. Line 71 doesn't get executed, the if (isFirstError) {}
is considered a true statement (like it should). And it should execute everything function within, so it kinda "does", except I see no effect whatsoever, the opacity is still 0 and I haven't seen it even flikker in browser.
Regardless of existence of lines 30 and 31, the problem is still there.
The only error (warning) I get is:
navigator.battery is deprecated. Use navigator.getBattery() instead. index.js:50
wtf?