Hey Chris - Thanks for sharing the timer, I showed it to the blog post author to try out. Here's her feedback on improvements that can be made:
- When in Stopwatch mode, the buttons should be start and stop--so that it doesnt toggle between timer and stopwatch - The blinking is slightly annoying after a while. I also noticed that it seems to quickly flicker between a time and "TIME's UP" when you visit a wave with a timed up timer. We'll continue trying it out in our meetings. Thanks! - pamela On Fri, Feb 12, 2010 at 2:14 AM, HaiColon <[email protected]> wrote: > Here is my current implementation of this if anyone wants to try it > out in a wave: > > http://colongadgets.appspot.com/gadgets/timealready/timealready.xml > > Usage: > ---------- > > Eggtimer mode > Enter something like... > 5 minutes > 1 hour 20 seconds > 2 hours and 30 seconds > 4 seconds, 20 minutes > 1h5m2s (this is for really lazy people like myself) > ...and click on Timer > > Stopwatch mode > Click the stopwatch button to start the timer, click stop to stop it > > Seems to work fine but I haven't done much testing yet. I tried stuff > like setting my computer's clock to a wrong time, using multiple > gadgets, opening the wave with the gadgets in multiple Wave clients, > etc. I haven't checked for any memory leaks yet so you may not want to > display the timer for 2 days or something.. :) This is all hacked > together rather quickly and I'm very new to JavaScript (a dangerous > combination). > > What's missing is an eggtimer alarm sound, I plan to add that by > making use of the HTML5 audio tag (or video tag if the audio tag isn't > working right, haven't done anything with the video/audio tags yet). > > I'm also thinking about adding messages to the gadget like "Chris > started the stopwatch at [time]" and "Chris stopped the stopwatch at > [time]", the display of this messages div could be set to hidden of > course if someone doesn't want to see those messages. > > And here is the code (MIT licensed) if you want to get an idea of how > it can be done for your own implementation: > > http://code.google.com/p/timealready/ > > If you want to use some or all of the code but you don't know how to > use the MIT license, it basically says (and this is my personal > understanding so I don't give any guarantees or legal advice here) > that if you take only a function or two, do whatever you want with the > code. If you take more than that or the whole thing (the MIT license > calls this "substantial portions"), you have to include the copyright > notice with your application which gives attribution to me (which is > just fair) and the MIT license itself, but your changes and additions > can be licensed however you want. But again, I'm very new to > JavaScript, so better make sure you understand the code you copy > because it's not going to be very good code and you might want to > improve it before using it. > > If you check out the code and open the timealready.html in a browser, > you can try out the gadget locally for testing purposes or for use as > a desktop eggtimer / stopwatch. This works because the actual code is > decoupled from the Wave specific code, so it's easy to add other > layers on top of it to make the gadget work with other services for > example. Maybe Google Buzz in the future? ;) Could be easily turned > into an Adobe AIR or Appcelerator application too. > > Cheers, > Chris > > -- > You received this message because you are subscribed to the Google Groups > "Google Wave API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-wave-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
