-
Notifications
You must be signed in to change notification settings - Fork 2
/
showcase.html
74 lines (60 loc) · 1.71 KB
/
showcase.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
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="format-detection" content="telephone=no" />
<title>emiya-canvas</title>
<style>
.hidden {
display: none;
}
* {
padding: 0;
margin: 0;
}
h5 {
padding-left: 10px;
margin-bottom: 10px;
}
#canvas,
#unrepair {
display: block;
margin: 0 auto;
}
button {
margin-top: 10px;
margin-left: 10px;
padding: 8px;
background-color: #428bca;
border-color: #357ebd;
color: #fff;
border-radius: 10px;
margin-bottom: 15px;
-khtml-border-radius: 10px;
text-align: center;
vertical-align: middle;
border: 1px solid transparent;
font-size: 14px;
}
#preview {
width: 100%;
margin-top: 20px;
}
</style>
</head>
<body>
<button id="selectbtn">选择图片</button>
<button id="reload">reload</button>
<h5>未修正的图片:</h5>
<canvas id="uncorrected"></canvas>
<h5>修正过后的图片:</h5>
<canvas id="corrected"></canvas>
<h5>原生 Img:</h5>
<img src="" alt="" id="preview">
<input type="file" class="hidden" id="upload" accept="image/*">
<script src="./dist/emiya-canvas.min.js"></script>
<script src="./dist/showcase.js"></script>
</body>
</html>