I found this neat countdown timer and I was curious if someone could help with a few changes to it.
- Start on the click of a button.
- Where would I place an AJAX call function to a PHP file for when the timer hits 0?
- Repeat when it is finished.
The timer I found is here: http://jsfiddle.net/johnschult/gs3WY/
var countdown = $("#countdown").countdown360({
radius: 60,
seconds: 20,
label: ['sec', 'secs'],
fontColor: '#FFFFFF',
autostart: false,
onComplete: function () {
console.log('done');
}
});
countdown.start();
$('#countdown').click(function() {
countdown.extendTimer(2);
});
Thanks in advance for any help given.