I am trying to use the example based here: http://www.techtricky.com/jquery-code-to-show-time-in-different-countries/
However I am new to JS and am having trouble. I am basically trying to get it to show the time without the select box.
I will then be trying to show multiple different times at once.
e.g.
+——————+
| 10:14:14 pm |
| 08:14:14 pm |
| 06:14:14 pm |
+——————+
I realise that the var options allows me to set the style and the time offset. However the function is the bit I am confused. I’ve been trying to set the #zones to automatically run but can’t get it to without having to select something. (ideally I wouldn’t have the select in there at all, I tried setting a default to the zones select but that didn’t work either) I think it’s because the function has $(“#zones”).change so will only run on a change.
TIA!
You could do something ugly like that
Obviously you can do it in a loop or something so you don’t have to write your code 3 times like I did here
Also – There are few examples in the jclock documentation : https://sites.google.com/site/jqueryjclockjs/