RUN THE SCRIPT:
Just doubleclick anywhere on the white space of this webpage and the local time
of 22 capitals will appear. Doubleclick again and the worldtime will disappear.CONFIGURE THE SCRIPT:
- Copy the script-block into the head section of your HTML-file.
- Copy the style-sheet into the head section of your HTML-file.
- Configure the part "timestyle" of the style-sheet (font, font-size, color etc.)
- Copy the div-container (id="timediv") into the end of the body-section.
- Configure the variables of the script and add or delete new world capitals.