forked from objectivehtml/FlipClock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- (Example) Added new interval callback example
- Loading branch information
1 parent
880fe38
commit 40e996b
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<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> | ||
<div class="message"></div> | ||
|
||
<script type="text/javascript"> | ||
var clock; | ||
|
||
$(document).ready(function() { | ||
|
||
clock = $('.clock').FlipClock({ | ||
clockFace: 'MinuteCounter', | ||
callbacks: { | ||
interval: function() { | ||
var time = this.factory.getTime().time; | ||
|
||
if(time) { | ||
console.log('interval', time); | ||
} | ||
} | ||
} | ||
}); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |