Code Monkey home page Code Monkey logo

Comments (8)

jfrux avatar jfrux commented on July 16, 2024

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.

hilios avatar hilios commented on July 16, 2024

Could you provide an script to reproduce this issue? JSFiddle is great to do this.

from jquery.countdown.

jfrux avatar jfrux commented on July 16, 2024

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.

jfrux avatar jfrux commented on July 16, 2024

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.

jfrux avatar jfrux commented on July 16, 2024

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.

hilios avatar hilios commented on July 16, 2024

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.

jfrux avatar jfrux commented on July 16, 2024

Here you are :)
http://jsfiddle.net/JoshuaIRL/3XjLG/2/

from jquery.countdown.

hilios avatar hilios commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.