I need a simple timer for the web. The ones out there don't fit the bill.
- The background turns blue when there is less than five minutes left.
- The background turns violet when there is less than two minutes.
- The background turns red when time runs out.
There are a few different time formats for ease of reading:
- Above an hour, it will format time with an hours suffix as "h" and a minutes suffix with "m". For example: "1h 23m"
- Below and hour, it will only show minutes. For example: "46m"
- Below tem minutes, it will show both minutes and seconds. For example: "7:45"
- Below one minute, it will only show seconds. For example: "25"