-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
114 lines (114 loc) · 4.5 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片滤镜</title>
<link href="css/reset.css" rel="stylesheet" type="text/css">
<link href="css/base.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="box1">
<h1>展示台</h1>
<div id="platform">
<div id="imgBox">
<canvas id="imgCanvas"></canvas>
</div>
<div id="btnBox">
<div class="uploadImg">
<input type="file" accept="image/*" onchange="getPicture(this)"/>
<div class="uploadBackground">上传</div>
</div>
<div onclick="go('back')" class="baseBtn">后退</div>
<div onclick="go()" class="baseBtn">前进</div>
<div onclick="downloadPicture()" class="baseBtn">下载</div>
</div>
</div>
</div>
<div id="box2">
<h1>操作台</h1>
<div id="selectBox">
<h2>基础设置</h2>
<label>灰度
<input type="range" title="灰度" oninput="changeNum('grey', this)" min="0" max="100" value="0" step="1"/>
</label>
<label>模糊
<input type="range" title="模糊" oninput="changeNum('blur', this)" min="0" max="5" value="0" step="0.05"/>
</label>
<label>对比度
<input type="range" title="对比度" oninput="changeNum('contrast', this)" min="100" max="1000" value="0"
step="10"/>
</label>
<label>色系反转
<input type="range" title="色相反转" oninput="changeNum('hue-rotate', this)" min="0" max="180" value="0"
step="1"/>
</label>
<label>反色
<input type="range" title="反色" oninput="changeNum('invert', this)" min="0" max="180" value="0" step="1"/>
</label>
<label>褐色
<input type="range" title="褐色" oninput="changeNum('sepia', this)" min="0" max="180" value="0" step="1"/>
</label>
<label>饱和度
<input type="range" title="饱和度" oninput="changeNum('saturate', this)" min="0" max="200" value="0"
step="2"/>
</label>
<label>透明度
<input type="range" title="透明度" oninput="changeNum('opacity', this)" min="0" max="100" value="0" step="1"/>
</label>
<label>亮度
<input type="range" title="亮度" oninput="changeNum('brightness', this)" min="0" max="200" value="0"
step="2"/>
</label>
<h2>其他</h2>
<div onclick="clearNum()" class="baseBtn">重置</div>
<div onclick="cutImg('cut')" class="baseBtn">剪裁</div>
<div class="uploadImg">
<input type="file" accept="image/*" onchange="addImg(this)"/>
<div class="uploadBackground">贴图</div>
</div>
<div onclick="mapImg('text')" class="baseBtn">贴字</div>
<div onclick="drawPicture()" class="baseBtn">绘画</div>
<div onclick="edge()" class="baseBtn">描边</div>
</div>
<div id="temporary"></div>
</div>
<div id="box3">
<h1>其他设置</h1>
<div class="selectBox">
<h2>贴字设置</h2>
<label>字体
<select name="font-family" onchange="changeValue('family', this)">
<option value="Microsoft YaHei UI">Microsoft YaHei UI</option>
<option value="Microsoft JhengHei Light">Microsoft JhengHei Light</option>
<option value="SansSerif">SansSerif</option>
<option value="Bahnschrift">Bahnschrift</option>
</select>
</label>
<label>颜色
<input type="color" onchange="changeValue('color', this)"/>
</label>
<h2>绘图设置</h2>
<label>颜色
<input type="color" onchange="drawChangeValue('color', this)"/>
</label>
<label>尺寸
<input type="range" title="尺寸" onchange="drawChangeValue('size', this)" min="5" max="50" value="5"
step="0.5"/>
</label>
<label>填充
<select name="fill" onchange="drawChangeValue('fill', this)">
<option value=1>是</option>
<option value=0>否</option>
</select>
</label>
</div>
</div>
<script src="js/clipping.js"></script>
<script src="js/download.js"></script>
<script src="js/chartlet.js"></script>
<script src="js/draw.js"></script>
<script src="js/edge.js"></script>
<script src="js/index.js"></script>
</body>
</html>