We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e03c0a commit a7a4862Copy full SHA for a7a4862
1 file changed
examples/daily-counter-countdown.html
@@ -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
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