Skip to content

Commit

Permalink
Updated Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
objectivehtml committed Dec 12, 2014
1 parent f1da30b commit 3500cc4
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 5 deletions.
18 changes: 17 additions & 1 deletion CHANGE LOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flipclock",
"version": "0.7.5",
"version": "0.7.6",
"homepage": "https://github.com/objectivehtml/FlipClock",
"authors": [
"Objective HTML",
Expand Down
47 changes: 47 additions & 0 deletions examples/test.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/flipclock/js/libs/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 3500cc4

@srkcool
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.