I am having trouble chaining my a javascript function off of the TimeCircle jQuery plugin. To summarize, this plugin creates a timer, and I want to call a function when the timer reaches 0. In the documentation they provided a built in function end() that is called automatically when the timer reaches 0. The documentation only shows me how to chain a jQuery function:
$(".example").TimeCircles().end().fadeOut();
This is what the documentation says:
end()
To allow you to chain TimeCircles to other jQuery functions, you can use the end() function. The end function returns the jQuery object and allows you to trigger jQuery function as desired.
After the TimeCircle's countdown ends, I want to accomplish something like this:
$(".example").TimeCircles().end(function() { console.log("timer ended") });
However, the function is never called when it ends. Does anyone know how I could chain my own javascript function?
Here is the link to the plugin's documentation - http://git.wimbarelds.nl/TimeCircles/readme.php