Countdown Timer add class at specific time
Hi - i'm currently using a countdown timer plugin (http://hilios.github.io/jQuery.countdown/) and what i want to achieve is a simple class which is added to a div based on how much time is left.
if the time left is greater than 10 minutes change div to the color green.
if the time left is between 1-10 minutes change div to orange and finally.
if the time left is under 1 minute change div to red.
I've created a fiddle of how it currently looks
there's 3 class which i want to add to the traffic-light div .green, .orange and .red based on the info above
is this possible? there are currently no events in the documentation like what i want to achieve. Your help is very much appreciated