-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (58 loc) · 1.65 KB
/
index.html
File metadata and controls
59 lines (58 loc) · 1.65 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
<!DOCTYPE html>
<html>
<head>
<title>jProgress</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="msapplication-tap-highlight" content="no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style type="text/css">
.container{
text-align: center;
}
.can{
width: 300px;
height: 300px;
margin: 0 auto;
display: inline;
}
</style>
</head>
<body>
<div class="container">
<canvas id="canvas1" class='can'></canvas>
<div ><span id="num1">0</span>/1110000</div>
</div>
<div class="container">
<canvas id="canvas2" class='can'></canvas>
<div ><span id="num2">0</span>/1110000</div>
</div>
<script src="js/jProgress.js"></script>
<script type="text/javascript">
var img = new Image(); // 创建一个<img>元素
img.src = 'img/a.png';
var img2 = new Image();
img2.src = 'img/b.png';
window.onload=function(){
var o1=new jProgress({
id:'canvas1',
color:'#45ffcd',
img:img,
total:1110000,
variation:618456,
numid:"num1"
});
var o2=new jProgress({
id:'canvas2',
color:'#ff9937',
img:img,
total:10000,
variation:9000,
numid:"num2"
});
}
</script>
</body>
</html>