Comments (8)
I've put console.log's in the plugin's start, stop, pause, resume, etc.
and my output is getting this:
start
remove
stop
from jquery.countdown.
Could you provide an script to reproduce this issue? JSFiddle is great to do this.
from jquery.countdown.
No, because then I would get embarrassed... LOL
Ya, I just cloned this repo and everything is working when isolated. It's obviously something I'm doing on my end. I'm cleaning up my code to isolate the problem.
Thanks for your help! We can close this.
from jquery.countdown.
Okay so... it's whenever I init the jquery.videoBG plugin it stops working... wondering if a conflicting namespace somewhere. Thinking it's calling your events somehow... Digging deeper... will keep you posted.
from jquery.countdown.
Okay it's not because of events... I'm thinking it's because the videoBG plugin is changing it's position in the DOM therefor the countdown is losing it's reference to the original countdown element..?
from jquery.countdown.
Well it's odd indeed, I looked at the videoBG source and didn't noticed any strange behaviour.
The condition to the countdown exist is to have a DOM element attached to the document (to prevent a interval leak), maybe someone is removing the element with the countdown.
Again, is very hard to me to help you only by assumptions, in the end the problem is to find where is the problem. It would be great if you can provide a minimal use case where it fails. JSFiddle is great to share this kind of proof of concepts.
from jquery.countdown.
Here you are :)
http://jsfiddle.net/JoshuaIRL/3XjLG/2/
from jquery.countdown.
So it's really an issue with how videoBG works, it collects the content and paste after initialize his own elements, so actually remover the countdown element.
A quick solution is to create a wrapper
around both elements:
<div class="wrapper">
<div class="countdown"></div>
<div class="videoz"></div>
</div>
See a working example @ JSFiddle
Since this is not an bug with jquery.countdown I will close this issue.
from jquery.countdown.
Related Issues (20)
- Found Vulnerability - Need Update
- Web page css error
- How set start/end date? HOT 1
- Change Language
- Countdown as a progress bar HOT 1
- Timezone problem
- How to reset the counter when it reaches zero? HOT 1
- Count just business hours
- dutch language HOT 1
- Is epoch supported? HOT 1
- Redirect the page after count down 0
- vue
- Having trouble using woth foreach loop in php HOT 1
- Restart Time after completing Five Days
- Complicated callback..
- Days counter is not working properly HOT 1
- 'Uncaught TypeError: $(...).countdown is not a function' - may be correct!
- Countdown between business hours and excluding weekends and holidays
- Timer interval do not stop after finish.countdown
- Timer pause/resume or stop/start as well as remove are not working properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.countdown.