Releases: wimbarelds/TimeCircles
Bug fixes and functionality
Fixed a bug with setting count_past_zero
giving errors.
Added functionality that lets you set what time circles views as the "total duration".
By default, the total duration is 1 year (or more accurately, 365 days), however you can now also set it to a month (meaning the "Days" timer would be roughly half full at 15 days).
By setting it to "Auto"
, TimeCircles will simply look at which values you're showing- and pick something bigger than your biggest unit.
Other available settings are: "Years"
, "Months"
, "Days"
, "Hours"
, "Minutes"
.
You can also give this variable a numeric value (in seconds). So, if for example you're only showing the 'Seconds' timer, you can set total_duration to 100 (Or any other value).
Simply do:
$("Countdown").TimeCircles({ total_duration: "Months" });
To use this setting.
Bug fixes
Fixed a bug in the destroy feature and changed a behavior when the biggest units are not being shown.
plugins.jquery.com update
plugins.jquery.com did not recognize the last update. Only pushing a new release so that it gets updated there. No other reason.
New functionality
Added functions:
- .restart()
- .rebuild()
- .getTime()
Added extra parameter to addListener, type. Should be either "all" or "visible", default = "visible".
If set to all, will also broadcast changes of values that are not being shown. See issue #12
1.0.5
addListener fix
Previously, the addListener function would give a total value as third parameter to the callback. The total value however was an absolute value (Math.abs). This is no longer the case.
Bug fixes
Bug fixes:
- TimeCircles incorrectly read width and height as 0 if it was hidden. This is fixed now.
- Avoid Date.parse when given a date string as formatted in documentation. Date.parse does not use local time and can be inconsistent. Kept using it as fallback, so that strings like: "Thu Jan 09 2014 16:55:47 GMT+0100" can still be used.
1.0.2
Fixed Date.parse for safari and flickering issue when count_past_zero was set to false.