Skip to content

Commit a7a4862

Browse files
committed
Added DailyCounter countdown interface
1 parent 5e03c0a commit a7a4862

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<html>
2+
<head>
3+
<link rel="stylesheet" href="../compiled/flipclock.css">
4+
5+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
6+
7+
<script src="../compiled/flipclock.js"></script>
8+
</head>
9+
<body>
10+
<div class="clock" style="margin:2em;"></div>
11+
<div class="message"></div>
12+
13+
<script type="text/javascript">
14+
var clock;
15+
16+
$(document).ready(function() {
17+
var clock;
18+
19+
clock = $('.clock').FlipClock({
20+
clockFace: 'DailyCounter',
21+
autoStart: false,
22+
callbacks: {
23+
stop: function() {
24+
$('.message').html('The clock has stopped!')
25+
}
26+
}
27+
});
28+
29+
clock.setTime(220880);
30+
clock.setCountdown(true);
31+
clock.start();
32+
33+
});
34+
</script>
35+
36+
</body>
37+
</html>

0 commit comments

Comments
 (0)