forked from pguso/js-plugin-circliful
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·150 lines (143 loc) · 4.69 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SVG Circliful</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="css/material-design-iconic-font.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/jquery.circliful.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<section class="container">
<h3>Circliful</h3>
<div class="row">
<div class="col-lg-2">
<div id="test-circle"></div>
</div>
<div class="col-lg-2">
<div id="test-circle2"></div>
</div>
<div class="col-lg-2">
<div id="test-circle3"></div>
</div>
<div class="col-lg-2">
<div id="test-circle4"></div>
</div>
<div class="col-lg-2">
<div id="test-circle5"></div>
</div>
<div class="col-lg-2">
<div id="test-circle7"></div>
</div>
</div>
<div class="row">
<div class="col-lg-2">
<div id="test-circle6"></div>
</div>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="js/jquery.circliful.js"></script>
<script>
$( document ).ready(function() { // 6,32 5,38 2,34
$("#test-circle").circliful({
animation: 1,
animationStep: 5,
foregroundBorderWidth: 15,
backgroundBorderWidth: 15,
percent: 38,
textSize: 28,
textStyle: 'font-size: 12px;',
textColor: '#666',
});
$("#test-circle2").circliful({
animation: 0,
animationStep: 6,
foregroundBorderWidth: 5,
backgroundColor: "none",
fillColor: '#eee',
percent: 50,
iconColor: '#3498DB',
icon: 'f206',
iconSize: '40',
iconPosition: 'middle'
});
$("#test-circle3").circliful({
animation: 1,
animationStep: 6,
foregroundBorderWidth: 5,
backgroundBorderWidth: 1,
percent: 88,
iconColor: '#3498DB',
icon: 'f004',
iconSize: '40',
iconPosition: 'middle'
});
$("#test-circle4").circliful({
animation: 1,
animationStep: 1,
target: 10,
start: 2,
showPercent: 1,
backgroundColor: '#000',
foregroundColor: '#A8C64A',
fontColor: '#000',
iconColor: '#000',
icon: 'f0a0',
iconSize: '40',
iconPosition: 'middle',
text: 'No Kids'
});
$("#test-circle5").circliful({
animationStep: 5,
foregroundBorderWidth: 5,
backgroundBorderWidth: 15,
percent: 80,
icon: 'f0a0',
iconPosition: 'middle',
text: 'Space Left',
textBelow: true
});
$("#test-circle6").circliful({
animation: 1,
animationStep: 5,
foregroundBorderWidth: 7,
backgroundBorderWidth: 7,
textSize: 28,
textStyle: 'font-size: 12px;',
textColor: '#666',
multiPercentage: 1,
percentages: [
{'percent': 10, 'color': '#3180B8', 'title': 'Gryffindor' },
{'percent': 30, 'color': '#4ADBEA', 'title': 'Ravenclaw' },
{'percent': 50, 'color': '#49EBA8', 'title': 'Hufflepuff' },
{'percent': 70, 'color': '#FFCA35', 'title': 'Slytherin' }
],
multiPercentageLegend: 1,
replacePercentageByText: '',
backgroundColor: '#eee',
icon: 'f0d0',
iconPosition: 'middle',
iconColor: '#273B4E'
});
$("#test-circle7").circliful({
animation: 1,
animationStep: 5,
percent: 80,
textSize: 28,
textStyle: 'font-size: 12px;',
textColor: '#666',
progressColor: {20: '#CC9487', 40: '#FA6C00', 60: '#FF6C99'}
});
});
</script>
</body>
</html>