I round time in the same way as rslite and implemeted essentially the same code change. Didn't read the comments first - doh! The only significant difference is that I return "minutes modulo 60" instead of "if 60 make it 0". I prefer my way 'cos I it looks tidier to my eyes :-) but I would guess my way is less efficient. Yes? No? How much does it matter in this case?
On the subject of when to update the display, I added this code near the other time initialisation bits at the top of fuzzyMe(): var sec=d.getSeconds(); var interval_secs=60-sec; Also, to complete that hack, change the setTimeout line (also in fuzzyMe()) to: setTimeout("fuzzyMe()",1000*interval_secs);
Yes I know that's a bit long-winded but I'm establishing some structure for some more ideas. Just to spell out what it does: whatever time you start the clock, each update will be spot on the top of every minute.
I love fuzzy clocks and predictably this one appeals to me. As a little aside here: a coffee shop near work has a clock with just an hour hand. It has no numerals but instead has regions like "tea-break", "elevenses", "lunch" and so on. They ought to have one for closing time like "It's been great to have you
I really like the idea of this clock. I think it needs to be fuzzier. Example; 53 minutes before or after the hour of five o-cock. 17 minutes before the half hour of ten-thirty. Two hours and ten minutes before noon. It would force everyone to use his or her best computer. Their brain! Well . . . maybe in some cases not their BEST.
Your clock is very nice. I took the liberty of hacking it a little because I like to round the times. For example 2:48 and 2:52 mean "ten to three" for me. To accomplish this I changed the code in getMin function to this (it's also shorter):
Also you might consider reducing the sleep time from 59 sec to something less (I put a quarter of a minute), since otherwise you might catch the clock change almost a minute too late (say you start the fuzzy clock at 1:59:55 - the next check will be at 2:00:54, but it's been 2 o'clock for 54 sec). This is even more visible in the clock with the original version of getMin and was noticed by some of the previous users.
Thats very nice , I liked the blue color a lot better though. I have just changed the name of my/your widget to "DELETE ME (Slet den her og hent Shadowk's Fuzzy Clock)" The part in danish say's "delete this and get Shadowk's Fuzzy Clock".
I have just uploadet a Danish version of Fuzzy Clock, I call it Tekst-ur so that they don't get confused. I did see your post about Translations but I don't know how to PM the file.
EDIT...
Now its later and got this mail, but it's really for you, i don't know how to fix it myself:
Hi,
Thanks for uploading a great widget!
I have one small request to make before I can push it to the new widgets page. Could you please add a close button to your widget.
As described on this page, http://my.opera.com/community/dev/widgets/styleguide/, it is very important for all widgets to be easy to use - and being able to close a widget when not needed is one of the visual requirements.
The clock runs from accurate to 5 minutes slow (i.e. at 20-24 minutes past it displays 20 past): having it run from five minutes fast to accurate would be more useful (i.e. at 21-25 minutes past, have it show 25 past)
despite all the comments having the time improperly announced, mine works just fine. and yes, i'd love to see the clock more fuzzy. a lion skin would be fantabulous. hehe... )
Yeah, it appears to be constantly a minute behind; didn't switch from "five to nine" to "nine" until 9:01pm, didn't switch from "nine" to "ten past nine" until 9:11pm, and didn't switch from "ten past nine" to "quarter past nine" until 9:16pm. (watching it again, it made the "twenty-five past nine" right on the mark.)
Love it nonetheless. =]
Don't suppose you could give it a skin that actually makes it look fuzzy as though it has fur or is carpeted? =D
I PM-ed you with a link to German and North German translations, did you receive them? Please note that I updated them early this morning, and make sure to use the fuzzy.zip file that's 1,707 bytes long. The earlier versions were buggy.
After posting this widget i saw that it did not get much attention so i decided not to translate it. But as i can see now, i was wrong so in this weekend i'll make it possible to use language packs. Also a new UI will be added an maybe even a new feature?how knows?
@Rijk, it is better if i make a multi-langual fuzzy clock, so that people don't have to search for the widget which is in their language
@Skrooks,good idea...but then..that needs translating too
@Everybody, please PM-me with the fuzzy.js that you have translated so come monday i can upload it. This is an invitation to everyone to translate the fuzzy.js file and send it to me
Think you can add different levels of fuzz? Like the highest level would be something like, "Sometime in the afternoon". Feel free to add a bit of sarcasm too, like "Why are you still up?"
Help! I want to translate this to polish. I edited the fuzzy.js file and change this what I need, but now, how to apply this in installed widget or how make new and install it?
Hi! I made a Dutch version. This required a few script changes, because we say 'half two' instead of 'half past one', for example. Would you mind if I upload this? If you want, you could alsocreate a multi-lingual version (like the calendar) of course.
I think I would prefer a thinner widget with a single line text actually, but that would require some changes to the images.
On the subject of when to update the display, I added this code near the other time initialisation bits at the top of fuzzyMe():
var sec=d.getSeconds();
var interval_secs=60-sec;
Also, to complete that hack, change the setTimeout line (also in fuzzyMe()) to:
setTimeout("fuzzyMe()",1000*interval_secs);
Yes I know that's a bit long-winded but I'm establishing some structure for some more ideas.
Just to spell out what it does: whatever time you start the clock, each update will be spot on the top of every minute.
I love fuzzy clocks and predictably this one appeals to me. As a little aside here: a coffee shop near work has a clock with just an hour hand. It has no numerals but instead has regions like "tea-break", "elevenses", "lunch" and so on. They ought to have one for closing time like "It's been great to have you
発言者 cheesemeister, # 2008/03/19 4:13:03
発言者 jim0214, # 2007/10/28 10:50:44
rounded_min = 5 * Math.round(m/5);
if (rounded_min == 60)
rounded_min = 0;
return rounded_min;
Also you might consider reducing the sleep time from 59 sec to something less (I put a quarter of a minute), since otherwise you might catch the clock change almost a minute too late (say you start the fuzzy clock at 1:59:55 - the next check will be at 2:00:54, but it's been 2 o'clock for 54 sec). This is even more visible in the clock with the original version of getMin and was noticed by some of the previous users.
発言者 rslite, # 2007/05/16 14:06:23
発言者 mnjopp, # 2007/01/15 17:11:43
I have just changed the name of my/your widget to "DELETE ME (Slet den her og hent Shadowk's Fuzzy Clock)"
The part in danish say's "delete this and get Shadowk's Fuzzy Clock".
発言者 Thomas-T, # 2006/10/01 4:55:19
発言者 shadowk, # 2006/09/26 17:56:16
But it's too late now.
発言者 Thomas-T, # 2006/09/18 16:00:37
I did see your post about Translations but I don't know how to PM the file.
EDIT...
Now its later and got this mail, but it's really for you, i don't know how to fix it myself:
Hi,
Thanks for uploading a great widget!
I have one small request to make before I can push it to the new widgets page. Could you please add a close button to your widget.
As described on this page, http://my.opera.com/community/dev/widgets/styleguide/, it is very important for all widgets to be easy to use - and being able to close a widget when not needed is one of the visual requirements.
Your widget is currently located on your personal widgets page:
http://widgets.opera.com/author/Thomas-T
and it will always be available there.
It would be great if you could edit your widget and help us make widgets as popular and easy to use as possible!
Thanks for your support
Regards,
Gautam
ps. For free images and widget templates, view this page: http://my.opera.com/community/dev/widgets/resources/ - you will just need to copy+paste to give your widget some more style!
発言者 Thomas-T, # 2006/09/18 7:24:44
発言者 acondon747, # 2006/08/31 19:29:45
:-)
a little bit more transparent, and it´s perfect
発言者 themanupstairs, # 2006/08/26 22:06:22
発言者 nickoli, # 2006/08/06 21:33:13
発言者 hmoh005, # 2006/07/25 15:31:47
Love it nonetheless. =]
Don't suppose you could give it a skin that actually makes it look fuzzy as though it has fur or is carpeted? =D
発言者 Ejrech, # 2006/07/16 6:09:19
発言者 Michaeldee, # 2006/07/11 23:45:38
発言者 ermel, # 2006/07/01 12:05:59
@Rijk, it is better if i make a multi-langual fuzzy clock, so that people don't have to search for the widget which is in their language
@Skrooks,good idea...but then..that needs translating too
@Everybody, please PM-me with the fuzzy.js that you have translated so come monday i can upload it.
発言者 shadowk, # 2006/06/22 17:37:11
発言者 Skrooks, # 2006/06/22 5:41:51
発言者 Rijk, # 2006/06/22 2:09:44
発言者 ciaastek, # 2006/06/20 23:21:17
I think I would prefer a thinner widget with a single line text actually, but that would require some changes to the images.
発言者 Rijk, # 2006/06/20 0:41:45