-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample-default-theme.html
More file actions
173 lines (159 loc) · 4.59 KB
/
Copy pathexample-default-theme.html
File metadata and controls
173 lines (159 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html>
<head>
<title>jCounter - jQuery plugin - devingredients.com</title>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/jquery.jCounter.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.jCounter-0.1.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//first counter
$(".countdown1").jCounter({
date: "01 january 2013 12:00:00", //format: DD month YYYY HH:MM:SS
timezone: "Europe/Bucharest",
format: "dd:hh:mm:ss",
twoDigits: 'on',
callback: function() { console.log("Counter 1 finished!") }
});
$('.pause1').click(function() {
$(".countdown1").jCounter('pause');
});
$('.stop1').click(function() {
$(".countdown1").jCounter('stop');
});
$('.start1').click(function() {
$(".countdown1").jCounter('start');
});
//second counter
$(".countdown2").jCounter({
format: "ss",
twoDigits: 'on',
customDuration: 60*9, //9 minutes
callback: function() { console.log("Counter 2 finished!") }
});
$('.pause2').click(function() {
$(".countdown2").jCounter('pause');
});
$('.stop2').click(function() {
$(".countdown2").jCounter('stop');
});
$('.reset2').click(function() {
$(".countdown2").jCounter('reset');
});
$('.start2').click(function() {
$(".countdown2").jCounter('start');
});
//third counter
$(".countdown3").jCounter({
format: "dd:hh:mm:ss",
twoDigits: 'on',
customRange: '10:9999',
callback: function() { console.log("Counter 3 finished!") }
});
$('.pause3').click(function() {
$(".countdown3").jCounter('pause');
});
$('.stop3').click(function() {
$(".countdown3").jCounter('stop');
});
$('.reset3').click(function() {
$(".countdown3").jCounter('reset');
});
$('.start3').click(function() {
$(".countdown3").jCounter('start');
});
});
</script>
</head>
<body>
<h3 style="color: #0777a8">Visit the official page of <a href="http://devingredients.com/jcounter" title="">jCounter Plugin</a> for info and documentation</h3>
<h2 style="color: #4b667b">Date-based countdown</h2>
<div class="dsb-theme-wrapper countdown1">
<div class="dsb-theme">
<div class="counter-wrapper">
<ul>
<li>
<p class="days">00</p>
</li>
<li>
<p class="hours">00</p>
</li>
<li>
<p class="minutes">00</p>
</li>
<li>
<p class="seconds">00</p>
</li>
</ul>
<div class="jC-clear"></div>
</div>
<p class="jCtext">
<span><em class="textDays">DAYS</em></span>
<span><em class="textHours">HOURS</em></span>
<span><em class="textMinutes">MINUTES</em></span>
<span><em class="textSeconds">SECONDS</em></span>
</p>
<div class="jC-clear"></div>
</div>
</div>
<p>
<a class="dsb-btn pause1" href="javascript:;" title="">PAUSE</a>
<a class="dsb-btn stop1" href="javascript:;" title="">STOP</a>
<a class="dsb-btn start1" href="javascript:;" title="">START</a>
</p>
<br>
<h2 style="color: #6a6a6a">Custom-Duration Counter</h2>
<div class="wsb-theme-wrapper countdown2">
<div class="wsb-theme">
<div class="counter-wrapper">
<ul>
<li>
<p class="seconds">00</p>
</li>
</ul>
<div class="jC-clear"></div>
</div>
<div class="jC-clear"></div>
</div>
</div>
<p>
<a class="wsb-btn pause2" href="javascript:;" title="">PAUSE</a>
<a class="wsb-btn stop2" href="javascript:;" title="">STOP</a>
<a class="wsb-btn reset2" href="javascript:;" title="">RESET</a>
<a class="wsb-btn start2" href="javascript:;" title="">START</a>
</p>
<br>
<h2 style="color: #4b667b">Custom-Range Count Up</h2>
<div class="dsb-theme-wrapper countdown3">
<div class="dsb-theme">
<div class="counter-wrapper">
<ul>
<li>
<p class="hours">00</p>
</li>
<li>
<p class="minutes">00</p>
</li>
<li>
<p class="seconds">00</p>
</li>
</ul>
<div class="jC-clear"></div>
</div>
<p class="jCtext">
<span><em class="textHours">HOURS</em></span>
<span><em class="textMinutes">MINUTES</em></span>
<span><em class="textSeconds">SECONDS</em></span>
</p>
<div class="jC-clear"></div>
</div>
</div>
<p>
<a class="dsb-btn pause3" href="javascript:;" title="">PAUSE</a>
<a class="dsb-btn stop3" href="javascript:;" title="">STOP</a>
<a class="dsb-btn reset3" href="javascript:;" title="">RESET</a>
<a class="dsb-btn start3" href="javascript:;" title="">START</a>
</p>
</body>
</html>