Giter Site home page Giter Site logo

Comments (7)

wimbarelds avatar wimbarelds commented on July 19, 2024

It's not currently possible. The problem is that the "super unit" for the largest visible unit is the next bigger unit. Frankly I have no idea why I did that. I have changed that with the latest commit, see: 9dcca68

from timecircles.

wimbarelds avatar wimbarelds commented on July 19, 2024

I've pushed a new version, and since I haven't heard back from the last commit I'm assuming that it solved the problem. If you've not yet tried it, download the latest version and let me know if it does/doesn't work.

from timecircles.

wimbarelds avatar wimbarelds commented on July 19, 2024

I've just released version 1.1.4:
https://github.com/wimbarelds/TimeCircles/releases/tag/1.1.4

In this version, you'll have to set the "total_duration" variable in order to keep doing this.
You'd probably want to change this setting when you switch over to only showing seconds.

In your case, I would recommend setting this value to 90 at that point. Read the release notes for a better idea how this setting can be set or used.

from timecircles.

j3ffthestampede avatar j3ffthestampede commented on July 19, 2024

awesome I will look into it soon.
Thanks for the good work!

from timecircles.

ramza1 avatar ramza1 commented on July 19, 2024

The totla duration does not have a circle round it

from timecircles.

wimbarelds avatar wimbarelds commented on July 19, 2024

Then you're probably doing something wrong. I just tested it by typing the following in console on the demo page:

$("#DateCountdown").data('timer', 5).removeData('date').removeAttr('data-date').TimeCircles({total_duration: 5, time: { Days: {show: false}, Hours: {show: false}, Minutes: {show: false}}}).rebuild().restart();

The demo page is at: http://git.wimbarelds.nl/TimeCircles/

So, it's clearly working- but you're probably doing something wrong.

Could you show is your code?

from timecircles.

ramza1 avatar ramza1 commented on July 19, 2024

$(function(){
$("#PageOpenTimer").TimeCircles({total_duration: 60, direction: "Counter-clockwise",
time: { Days: { show: false }, Hours: { show: false }, Minutes: { show: false }, Seconds: { color: "#ff6138" } },
circle_bg_color: "#f5f5f5"
}).addListener(function (unit, value, total){
if (total == 0) {
$("#PageOpenTimer").TimeCircles().stop();
$('#question-block').empty();
$('#question-block').html("

Time Up move to next question

");
}
});
})

i tried it with this your example and it works now. but the problem is that the addlistner method is not working i also think its because its not counting down from the duration to zero

from timecircles.

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.