forked from samyDzz/ProBar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (36 loc) · 1.09 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
<!DOCTYPE html>
<html>
<head>
<title>Progress bar</title>
</head>
<body>
<!-- Require Jquery -->
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<!-- Require ProBar.js -->
<script src="ProBar.js"></script>
<!-- script -->
<script>
// options
var options = {
color : "#2a2a2a", // color of the Progress bar.
bgColor : "#efefef", // color background of the Progress bar
speed : 0.3, // speed of animation. ( unit in secondes )
wrapper : "body" // the wrapper who append ProBar. if use class => ".class" ,if use id => "#id"
};
// instantiate.
var probar = new ProBar(options);
probar.goto(100,3);
///////////////////
// All functions //
///////////////////
probar.setColor("#2980b9"); // change color of ProBar.
probar.setWrapperColor("#ecf0f1"); // change background color of ProBar.
probar.setSpeed(3000); // change Speed to 3 secondes.
probar.goto(100); // reach 100%.
probar.goto(100,2000); // reach 100% in 2 secondes
</script>
</body>
</html>