Skip to content
This repository has been archived by the owner on Sep 24, 2023. It is now read-only.
/ world-clock Public archive

Insert multiple clocks onto a page using vanilla JavaScript, no dependencies.

Notifications You must be signed in to change notification settings

royemosby/world-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Inserts multiple clocks onto a page using vanilla Javascript.

Grab world-clock.js from the scripts directory. Place alongside other scripts (if any) in the target project. Link to the script at the bottom of the target html page(s) right before the closing </body> tag. Optionally, 'defer' may be used inside of the <script>tag but omitting it will not cause any problems since it's a

Use standard time zones for the offset. Daylight savings time is picked up by 4 groups as outlined in Wikipedia at the Template:Daylight saving in time zone/techdoc

Inspired by"Live Clock" script (3.0) by Mark Plachetta (astroboy@zip.com.au) http://www.zip.com.au/~astroboy/liveclock/ link dead but saved for posterity

  • 12hr/24hr option
  • show seconds option
  • full month/ abbreviated month option
  • full day/ abbreviated day option
  • separate build clocks from update clocks

About

Insert multiple clocks onto a page using vanilla JavaScript, no dependencies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published