-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Countdown Circle #23
Comments
Hey there, the option you're looking for is $("#YourTimer").TimeCircles({ total_duration: 15}); |
Thanks :) Worked like a charm. Could you tell me if its possible to change the color so that when there are 15 seconds to 10 seconds, the color is green. When the time is between 10 seconds and 5 seconds, the color is yellow, when it gets to 5 seconds to 0, the color is red? Thanks a lot |
That would be something like: var $timerDiv = $("#YourTimer");
$timerDiv.TimeCircles({ total_duration: 15, time: { Seconds: { color: "#00FF00" } }}).addListener(unit, value, total) {
if(total == 10) $timerDiv.TimeCircles({ time: { Seconds: { color: "#FFFF00" } } });
else if(total == 5) $timerDiv.TimeCircles({ time: { Seconds: { color: "#FF0000" } } });
}); (I haven't tested this code, but the code should look something like this). |
Thanks for your help. That last bit of code doesn't work or I'm doing it wrong. |
Could you link it to me so I can have a look? |
Ok, here's the link: http://hoppedupdesigns.com/countdownTimer/index.html |
var $timerDiv = $("#YourTimer");
$timerDiv.TimeCircles({ total_duration: 15, time: { Seconds: { color: "#00FF00" } }}).addListener(function(unit, value, total) {
if(total == 10) $timerDiv.TimeCircles({ time: { Seconds: { color: "#FFFF00" } } });
else if(total == 5) $timerDiv.TimeCircles({ time: { Seconds: { color: "#FF0000" } } });
}); Found an error, try this: |
Yep, that fixed it. Works great now. Thanks for your help and time. I'll stop bugging you now :) |
I have set the countdown to 15 seconds but when the countdown starts, the color that shows the remaining time starts at about 3 o'clock. I want the color to decrease starting at 12 o'clock until the countdown hits 0. I hope this makes sense.
![screen shot 2014-02-23 at 2 40 19 pm](https://camo.githubusercontent.com/097849b0fdb812820746825231d262a76359fa38c8952592a64b7031d24df90e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353230353431362f323234313133362f35663431333733652d396363322d313165332d396330342d3834663563623463333931352e706e67)
Thanks, Jason
The text was updated successfully, but these errors were encountered: