A simple concept of alarm clock in HTML5
JavaScript
Latest commit 3d2f691 Sep 8, 2012 @yyjhao Fixed a bug in localstroage
Permalink
Failed to load latest commit information.
README.md Initial commit Sep 7, 2012
main.html Initial commit Sep 7, 2012
script.js Fixed a bug in localstroage Sep 8, 2012
style.scss Initial commit Sep 7, 2012

README.md

Alarm.html

This is a simple demo/concept of an alarm clock implemented using HTML5 technology.

It supports alarm clock using flexible phrases like "in a minutes", "after 10 minutes", "13:14" or "8:20pm".

When timed out, it plays a song from Youtube using Youtube's JavaScript API, and while there's an option to set a local file, it is not implemented :P

Also, only the song used for the alarm is remembered, and the app doesn't remember the alarms you set after reload.

Works best on Webkit, and Firefox and IE10 are supported too! But ironically, while the interface is designed to be mobile-friendly, it won't work on mobile safari because videos/audios cannot be played on mobile safari unless it's initiated by a user action.

You can try it out here.