mirror of
https://github.com/objectivehtml/FlipClock.git
synced 2024-09-21 10:27:25 +00:00
Updated Changelog
This commit is contained in:
parent
f1da30bbb1
commit
3500cc434c
@ -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.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flipclock",
|
||||
"version": "0.7.5",
|
||||
"version": "0.7.6",
|
||||
"homepage": "https://github.com/objectivehtml/FlipClock",
|
||||
"authors": [
|
||||
"Objective HTML",
|
||||
|
47
examples/test.html
Normal file
47
examples/test.html
Normal file
@ -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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user