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
| var cSpeed = 6000;
|
| // Simple Counter
|
| var value = $('.s-counter2').text();
| $('.s-counter2').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.s-counter3').text();
| $('.s-counter3').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.s-counter4').text();
| $('.s-counter4').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
|
|
| // With Icon
|
| var value = $('.ico-counter1').text();
| $('.ico-counter1').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.ico-counter2').text();
| $('.ico-counter2').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.ico-counter3').text();
| $('.ico-counter3').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
|
|
| // Circle
|
| var value = $('.c-counter1').text();
| $('.c-counter1').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.c-counter2').text();
| $('.c-counter2').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.c-counter3').text();
| $('.c-counter3').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
| var value = $('.c-counter4').text();
| $('.c-counter4').countTo({
| from: 0,
| to: value,
| speed: cSpeed,
| formatter: function (value, options) {
| return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
| }
| });
|
|