-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (46 loc) · 1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>签名档生成</title>
<style>
body{
background-color: rgb(214,190,150);
margin: 0;
display: flex;
flex-direction: column;
}
body, html {
height: 100%
}
div {
text-align: center;
margin: 8px
}
spacer {
display: block;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.qrcode{
display: none;
}
</style>
</head>
<body>
<spacer></spacer>
<div>
<input id="uid" type="text" placeholder="uid" value="20">
<input id="username" type="text" placeholder="username" value="outsidero">
<input id="color" type="text" placeholder="color" value="rgb(26,170,235)">
<button id="genBtn">生成</button>
</div>
<div>
<canvas id="canvas" width="600" height="110"></canvas>
<img id="qrcode" class="qrcode" src="./assets/qrcode.png">
</div>
<spacer></spacer>
</body>
<script src="./main.js"></script>
</html>