Code Monkey home page Code Monkey logo

Comments (7)

letstri avatar letstri commented on May 18, 2024

Hi, I'll update the lib. I want to add calculations only for existing DOM elements in timer.

from timezz.

maximus1127 avatar maximus1127 commented on May 18, 2024

oh what glorious news!!! This will add that little extra sauce to my project. Greatly appreciated.

from timezz.

letstri avatar letstri commented on May 18, 2024

@maximus1127 Done.

from timezz.

maximus1127 avatar maximus1127 commented on May 18, 2024

wonderful! what's the parameter to activate this new feature?

from timezz.

letstri avatar letstri commented on May 18, 2024

@maximus1127 you can remove not needed data attributes, in your case I think this variant will be correct:

<div class="j-timer">
  <span data-minutes></span>
  <span data-seconds></span>
</div>

from timezz.

maximus1127 avatar maximus1127 commented on May 18, 2024

image

Hmm, i swapped out the code in my project for the latest file in your dist folder and removed my hours html element and got this error in the console. Did I do that upgrade process correctly?

from timezz.

letstri avatar letstri commented on May 18, 2024

I changed selectors to HTML Element, you need to initialize with document.querySelector, or something like that. Read documentation for more info)

from timezz.

Related Issues (8)

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.