-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (122 loc) · 4.62 KB
/
index.html
File metadata and controls
123 lines (122 loc) · 4.62 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ProgressBar</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
margin: 0;
padding: 0;
box-sizing: border-box;
overflow-x: hidden;
}
header {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #eee;
flex-direction: column;
padding: 15px;
}
main{
width: 80%;
margin: auto;
}
h1, h3{
margin: 0;
}
svg {
width: 300px;
display: block;
transform: rotate(-90deg);
float: left;
}
svg text{
transform: rotate(90deg);
transform-origin: 50% 50%;
}
</style>
</head>
<body>
<header>
<h1>Pure Javascript plugins</h1>
<h3>Three Types of Progressbar in here</h3>
<ul>
<li>Static Color</li>
<li>Leniar Gradient Color</li>
<li>Radial Gradient Color</li>
</ul>
</header>
<main>
<div id="progresbar"></div>
<div id="progresbar2"></div>
<div id="progresbar3"></div>
</main>
<script src="script.js"></script>
<script>
progressbar('#progresbar3', {
backStrokeColor : '#eee',
backFillColor : 'none',
backStrokeWidth : '4',
radius : '30',
frontStrokeColor : '#ffcdc2',
frontStrokeWidth : '6',
frontFillColor : 'none',
strokeLineCap : 'round',
parcent : '50'
});
progressbar('#progresbar', {
backStrokeColor : '#eee',
backFillColor : 'none',
backStrokeWidth : '4',
radius : '30',
frontStrokeColor : '#f00',
frontStrokeWidth : '6',
frontFillColor : 'none',
textColor : '#f00',
strokeLineCap : 'butt',
parcent : '80',
gradient : 'linear',
gradColor : [
{
offset: "0%",
stopColor : '#6b0404',
stopOpacity : '1'
},
{
offset: "40%",
stopColor : 'red',
stopOpacity : '1'
}
]
});
progressbar('#progresbar2', {
backStrokeColor : '#eee',
backFillColor : 'none',
backStrokeWidth : '4',
radius : '30',
frontStrokeColor : '#f00',
frontStrokeWidth : '6',
frontFillColor : 'none',
strokeLineCap : 'round',
parcent : '90',
gradient : 'radial',
gradColor : [
{
offset: "95%",
stopColor : 'red',
stopOpacity : '.3'
},
{
offset: "100%",
stopColor : 'red',
stopOpacity : '1'
}
]
});
</script>
</body>
</html>