-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (50 loc) · 1.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="index.css" />
<title>头像生成</title>
</head>
<body>
<div style="float: left;">
<input type="text" class="name-input" placeholder="请输入用户名"/>
<span class="create-avatar">点击生成</span>
</div>
<div class="canvas-div">
<div>
<img id="canvas-img-0" src="" style="display: none"/>
<a id="canvas-a-0" href="" style="display: none"/></a>
<canvas id="canvas-0" width="80" height="80" style="border: 1px solid #eaeaea">
</canvas>
<span class="download" id="0">下载</span>
</div>
<div>
<img id="canvas-img-1" src="" style="display: none"/>
<a id="canvas-a-1" href="" style="display: none"></a>
<canvas id="canvas-1" width="80" height="80" style="border: 1px solid #eaeaea">
</canvas>
<span class="download" id="1">下载</span>
</div>
<div>
<img id="canvas-img-2" src="" style="display: none"/>
<a id="canvas-a-2" href="" style="display: none"/></a>
<canvas id="canvas-2" width="80" height="80" style="border: 1px solid #eaeaea">
</canvas>
<span class="download" id="2">下载</span>
</div>
<div>
<img id="canvas-img-3" src="" style="display: none"/>
<a id="canvas-a-3" href="" style="display: none"/></a>
<canvas id="canvas-3" width="80" height="80" style="border: 1px solid #eaeaea">
</canvas>
<span class="download" id="3">下载</span>
</div>
</div>
<div style="clear:both"></div>
<div class="name-div"></div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="js/index.js"></script>
</html>