Start a timer via the url
31–39 of 39 posts
Re: Start a timer via the url
#32I think it needs to be able to flash the favicon, when you have several tabs open, you can't see the title change.
Re: Start a timer via the url
#33We've (Sleep.fm) allowed users to set our online alarm clock by typing or clicking a URL(sets time & sound).
Examples...
http://sleep.fm/7am (sets alarm for 7am)
http://sleep.fm/10pmRooster (sets alarm for 10pm; sound is Rooster)
http://sleep.fm/6amWeather (sets alarm for 6am; sound is spoken weather report)
Re: Start a timer via the url
#34Simple and cool. How about making the URLs more human readable: alrt.io/2minutes50seconds or alrt.io/2m50s instead of alrt.io/2%20minutes%2050%20seconds The %20 makes it really hard to parse.
Re: Start a timer via the url
#35The timeLeft -= 1000 approach is not the best one because setTimeout doesn't guarantee when the next tick is gonna happen. Just open the JS console and type: for (var i = 0; i You will block the JS execution and your next tick will happen when the loop finishes. Using new Date().getTime() should do the job. Edited for formatting.
Re: Start a timer via the url
#36Re: Start a timer via the url
#37Great idea! Is the source anywhere? Would be cool too language processing for something like http://alrt.io/three%20hours
Patches are always welcome!
Re: Start a timer via the url
#38Am I misunderstanding something? I tried starting it thusly: http://alrt.io/3%20hours%2022%20minutes Is the point not that it can handle a variety of input?