Moment Js UTC to Local Time

I’m trying to convert UTC time to the local time. I’ve been following this example from this link: http://jsfiddle.net/FLhpq/4/light/. I can’t seem to get the right local output. For example, if its 10: 30 am in here, instead of getting 10:30 ill get 15: 30. Here is my code: No matter what I do the … Read more

navigator.geolocation.getCurrentPosition sometimes works sometimes doesn’t

So I have a pretty simple bit of JS using the navigator.geolocation.getCurrentPosition jammy. Basically what’s happening here is we get the current position, if it’s obtained, two “watermarks” are placed in two fields that say “Current Position” and two hidden fields are created with the lat-long data as their value (they’re removed in the beginning … Read more

Change an image with onclick()

I want to change an image to some other image when i click on the object. the code is stacked in the following order: What I wish to do is, when I click on the <li> i want to change the image to a coloured version of the image, i.e. some other image. Now, I … Read more