wimbarelds / TimeCircles

jQuery plugin to show time since or time until a specific time
296 stars 149 forks source link

Access prev_time appropriately #91

Open trinibago opened 9 years ago

trinibago commented 9 years ago

Hello Wim,

thanks for the great JS lib. It is a really nice piece. I abused it for creating a minute counter, while showing the running seconds also: http://jsfiddle.net/chrissonar/x1qv9b6m/1/ (there seems to be something CSS broken, but that is because of jsfiddle and does not matter) I want it to start with second 0, instead of the current time second. Inspecting the source, I guess the reason the line 444 ("this.data.prev_time = curDate") in the update method of time_circles.js. I don't know how to work around it. Do you have any idea?

wimbarelds commented 9 years ago

Could you explain what you mean by:

I want it to start with second 0, instead of the current time second.

The jsFiddle doesn't seem to be doing anything at all for me.

trinibago commented 9 years ago

The jsFiddle doesn't seem to be doing anything at all for me.

The jsFiddle is a seconds circle incrementing minutes (after the seconds circle hit 59 seconds). So kinda minute timer, but also showing, that it is running by the seconds circle. (The jsFiddle minutes representation is broken, because the jsFiddle CSS is partially broken. but that does not matter and is jsFiddle specific)

I want it to start with second 0, instead of the current time second.

The seconds circle starts with the seconds of the current time (the angle). I want it to start with second zero each and every time (angle: zero degree).