forked from iamjoel/front-end-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
65 lines (62 loc) · 1.4 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>demo</title>
<style type="text/css">
li{
list-style: none;
}
#canvas-wrap{
position: relative;
}
#canvas{
display: block;
margin: 0 auto;
}
.anim-start {
width: 200px;
height: 200px;
background-color: #ddd;
position: absolute;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -100px;
}
.anim-start img {
width: 100%;
height: 100%;
}
.avatar {
display: block;
height: 50px;
width: 50px;
background-color: #ddd;
}
.tags{
display: block !important;
}
</style>
</head>
<body>
<p>签到人数为 <span id="total-num">50</span></p>
<button id="pause-btn">暂停</button>
<button id="resume-btn">开始</button>
<button id="add-btn">新人加入</button>
<button id="add-multi-btn">新人加20</button>
<div id="canvas-wrap">
<!-- <div class="avatar outstand"></div> -->
<canvas width="1000" height="1000" id="canvas">
<p>Anything in here will be replaced on browsers that support the canvas element</p>
</canvas>
</div>
<div id="tags">
<ul>
</ul>
</div>
<script src="../vendor/jquery.js"></script>
<script src="assets/vendor/jquery.tagcanvas.js"></script>
<script src="demo.js"></script>
</body>
</html>