Permalink
Browse files

Updated Changelog

  • Loading branch information...
1 parent f1da30b commit 3500cc434c94832228b5cec5fe31915733ebaa95 @objectivehtml committed Dec 12, 2014
Showing with 68 additions and 5 deletions.
  1. +17 −1 CHANGE LOG.md
  2. +1 −1 bower.json
  3. +47 −0 examples/test.html
  4. +1 −1 package.json
  5. +2 −2 src/flipclock/js/libs/core.js
View
@@ -1,7 +1,23 @@
# FlipClock.js
+#### 0.7.7
+##### 12/12/2014
+
+- (Bug Fix) Recompiled build and version. Mistake in previous release.
+
+#### 0.7.6
+##### 12/12/2014
+
+- (Example) Added new interval callback example
+- (Bug Fix) Merge pull request #160 from rustygreen/patch-1
+- (Bug Fix) Fixed constructor bug passing "factory". Updated face.js, the "factory" was not being passed into the constructor, instead a typo was "factor".
+- (Bug Fix) Merge pull request #150 from charlesbaynham/Fix-modulus-for-getWeeks
+- (Bug Fix) Fixed typo in the definition of getWeeks, preventing its usage
+- (Bug Fix) Merge pull request #156 from laureanoendeiza/patch-1
+- (Bug Fix) Fixed typo in the definition of getWeeks, preventing its usage.
+
#### 0.7.5
-##### 21/10/2014
+##### 10/10/2014
- (Bug Fix) Fixed a typo in the definition of the (unused by default) method getWeeks.
View
@@ -1,6 +1,6 @@
{
"name": "flipclock",
- "version": "0.7.5",
+ "version": "0.7.6",
"homepage": "https://github.com/objectivehtml/FlipClock",
"authors": [
"Objective HTML",
View
@@ -0,0 +1,47 @@
+<html>
+ <head>
+ <link rel="stylesheet" href="../compiled/flipclock.css">
+
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
+
+ <script src="../compiled/flipclock.js"></script>
+ </head>
+ <body>
+ <div class="clock" style="margin:2em;"></div>
+
+ <script type="text/javascript">
+ var clock;
+
+ $(document).ready(function() {
+ // Set dates.
+ var futureDate = new Date("October 9, 2014 12:02 PM EDT");
+ var currentDate = new Date();
+
+ // Calculate the difference in seconds between the future and current date
+ var diff = futureDate.getTime() / 1000 - currentDate.getTime() / 1000;
+
+ // Calculate day difference and apply class to .clock for extra digit styling.
+ function dayDiff(first, second) {
+ return (second-first)/(1000*60*60*24);
+ }
+
+ if (dayDiff(currentDate, futureDate) < 100) {
+ $('.clock').addClass('twoDayDigits');
+ } else {
+ $('.clock').addClass('threeDayDigits');
+ }
+
+ if(diff < 0) {
+ diff = 0;
+ }
+
+ // Instantiate a coutdown FlipClock
+ clock = $('.clock').FlipClock(diff, {
+ clockFace: 'DailyCounter',
+ countdown: true
+ });
+ });
+ </script>
+
+ </body>
+</html>
View
@@ -1,6 +1,6 @@
{
"name": "flipclock",
- "version": "0.7.5",
+ "version": "0.7.6",
"email": "support@objectivehtml.com",
"author": "Objective HTML, LLC <support@objectivehtml.com>",
"license": "MIT",
@@ -51,13 +51,13 @@ var FlipClock;
* Build Date
*/
- buildDate: '2014-10-06',
+ buildDate: '2014-12-12',
/**
* Version
*/
- version: '0.7.5',
+ version: '0.7.6',
/**
* Sets the default options

1 comment on commit 3500cc4

@srkcool

i use day countdown works good
but not responsive any suggestion plz.

Please sign in to comment.