JS code working only in editors
I have a relatively simple JS script that I want to use, and it works perfectly fine in editors like Plunk/Fiddle, but does not work on my actual page for some reason.
Here it is in a Plunk project:
Originally, the bar doesn't even show at all. However I've already tried adding document.ready onload function to the code, and this caused the bar to SHOW but not actually function (like it does in the editors). Even if I try to download it from Plunk, which I assume would include the external files that might be causing this, it still doesn't seem to work.
Any ideas for a solution to this? Thanks alot!