-
Notifications
You must be signed in to change notification settings - Fork 209
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
don't work when use 2 or more countdow on 1 page #22
Comments
Quick fix it all outer functions to include in the plugin. jQuery.fn.countdown = function(userOptions) { var digits = []; var intervals = []; var createDigits = function(where, options) {} var makeMovement = function(elem, steps, isForward, options) {} var margin = function(elem, val) {} var moveDigit = function(elem, options) {} var parseRelativeDate = function(form, options) {} var formatCompute = function(d, options) {} var pad = function(x){return (1e15+""+x).slice(-2)}; /* Plugin code */ }; |
This fix doesn't work. The problem remains. |
yesworld's fix works! Thanks! |
Any suggestions how to fix it? |
Analized what yesworld said, and fix really works!
Nothing should be outside. |
Hi, this solution doesn't seem to be working for me, could you please provide more details. How are you starting your countdown? Should I be using a class to call the countdown or do I have to call it multiple times with multiple element ids? I've tried these approaches but none seemed to work for me. Any help would be appreciated, thanks |
Nevermind, I got it! It only works using multiple element ids and make sure you look for the "jQuery.fn.countdown = function(userOptions) {" and put all previous outer functions inside it. Thank you for this! |
As mentioned in the comments, this does not do an works
with
does not work
Here is the explained JS description from above ...
|
correct work only last of them
i understand that problem is in code
var digits = [];
var intervals = [];
but how to fix it ...
The text was updated successfully, but these errors were encountered: