Wow!!! Thanks a million for your help!!! Now it works perfectly. I'll upload "Word Clock" later this day, (credit goes to you, of corse!) - greetings from Germany
Hallo, I'm working on a "word clock" for XWidget using your "verbal clock" script (Thanks for sharing it!), but it seems as if there is a litte bug in it. Every hour, starting at a quarter to 1 o'clock , to 2 o'clock etc. the clock shows the wrong hour. For instance " one minute to four" at 4:59 instead of "one minute to five". Unfortunately I'm a newbie at JavaScript and cannot fix it. It would be great if you could help me to fix that! Thank you very much! screenshot [link]
Time display bug has been corrected. Added the following line of code ; timeH++; if (timeH>12) { timeH = 1; } to follow after ; timeM=30-(timeM-30); in function clockOnUpdate as part of the true actions for (timeM>30)
I'm working on a "word clock" for XWidget using your "verbal clock" script (Thanks for sharing it!), but
it seems as if there is a litte bug in it. Every hour, starting at a quarter to 1 o'clock , to 2 o'clock etc. the clock shows the wrong hour. For instance " one minute to four" at 4:59 instead of "one minute to five". Unfortunately I'm a newbie at JavaScript and cannot fix it. It would be great if you could help me to fix that! Thank you very much!
screenshot [link]
Added the following line of code ;
timeH++; if (timeH>12) { timeH = 1; }
to follow after ;
timeM=30-(timeM-30);
in function clockOnUpdate as part of the true actions for (timeM>30)
(I don't actually use this widget, it was just a programming exercise, so I may have noticed it myself.)