-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (78 loc) · 2.75 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nerko+One&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Handjet:[email protected]&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./src/style.css" />
<title>照片水印工具</title>
</head>
<body>
<header class="fixed-header">
<div class="header">
<a
href="https://github.com/ptsfdtz/Photo-classification"
target="_blank"
class="logo"
>
<img
src="images/GitHub_Logo.png"
alt="仓库地址"
class="github-logo"
/>
</a>
</div>
</header>
<div class="photo-container" id="photoContainer">
<canvas id="canvas"></canvas>
<div id="placeholder">点击此处上传</div>
<input type="file" id="upload" accept="image/*" style="display: none" />
</div>
<div class="controls">
<div class="control-group">
<label for="fontSelect">选择字体:</label>
<select id="fontSelect" class="styled-select">
<option value="Arial">Arial</option>
<option value="Verdana">Verdana</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Nerko One">Nerko One</option>
<option value="Handjet">Handjet</option>
<option value="Permanent Marker">Permanent Marker</option>
</select>
</div>
<div class="control-group">
<label for="positionSelect">选择水印位置:</label>
<select id="positionSelect" class="styled-select">
<option value="bottom-right">右下角</option>
<option value="bottom-left">左下角</option>
<option value="top-right">右上角</option>
<option value="top-left">左上角</option>
</select>
</div>
<div class="control-group">
<label for="colorSelect">选择水印颜色:</label>
<div class="color-picker">
<input type="color" id="colorSelect" class="styled-color" value="#ffffff" />
</div>
</div>
<button id="download" class="download-btn" style="display: none">
下载图片
</button>
</div>
<script src="./src/script.js"></script>
</body>
</html>