Analog Clocks
Tuesday September 30, 2008
Old JavaScripts never die, they just get rewritten
In between writing new scripts and tutorials, I occasionally revisit old scripts and look into what needs to be done to update them. This week I have revisited both my original analog clock script and also the more recently written multi-clock version to see what needed to be done to modernise them. In the case of the multi-clock version it already has most of the code enclosed within objects to minimise interference from other scripts and completely unobtrusive and so I have made just a few minor tweaks to the code to make it slightly shorter without changing the way it works at all. The original script has undergone somewhat bigger changes as I have reworked the code based on some of what is in the multi-clock version to remove the need for the body script and to make it unobtrusive. There is no point in my also amending it to enclose the code in an object because that would just make it the same as the multi-clock version.
Analog Clocks


No comments yet. Leave a Comment