This repository was archived by the owner on May 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.js
executable file
·65 lines (58 loc) · 1.59 KB
/
demo.js
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
(function($) {
$(document).ready(function() {
//example 1
$('.easybars').easyBars();
//example 2
$('.easybars-multi').easyBars();
//example 3
$('.easybars-colorful').easyBars({
'backgroundColor' : '#ccc', 'barColor' : '#ff0000', 'labelColor' : '#eee'
});
//example 4
$('.easybars-multicolor').easyBars({
'backgroundColor' : '#ccc',
'labelColor' : {
'0' : 'white',
'44' : 'orange',
'100': 'turquoise'
},
'barColor' : {
'0' : 'red',
'25' : 'orange',
'50' : 'yellow',
'75' : 'purple',
'100': 'green'
}
});
//example 5
$('.easybars-html5-data-attr').easyBars();
//example 6
$('.easybars-right-left').easyBars({
'label' : 'Mostly Complete! 80 of 120',
'barColor' : { '0' : 'salmon' },
'barDirection' : 'rl',
'height' : '100',
'width' : '500',
'current' : 80,
'total' : 120
});
$('.easybars-top-bottom').easyBars({
'label' : '30%',
'barColor' : { '0' : 'gold' },
'barDirection' : 'tb',
'height' : '500',
'width' : '100',
'current' : 30,
'total' : 100
});
$('.easybars-bottom-top').easyBars({
'label' : '40%',
'barColor' : { '0' : 'green' },
'barDirection' : 'bt',
'height' : '550',
'width' : '70',
'current' : 40,
'total' : 100
});
});
})(jQuery);