-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
381 lines (380 loc) · 13.9 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="title">
简易图片加水印,防盗图必备 - 加水印 JiaShuiYin.com
</title>
<meta
name="description"
content="水印大师是一款简单易用的在线图片加水印工具。支持批量处理、自定义水印文字、位置、颜色和大小。保护您的图片,防止盗用。完全免费,无需注册。"
/>
<meta name="keywords" content="图片水印,加水印,防盗图,批量处理,在线工具" />
<meta name="author" content="PDMaker" />
<link rel="canonical" href="https://jiashuiyin.com" />
<meta
property="og:title"
content="简易图片加水印,防盗图必备 - 加水印 JiaShuiYin.com"
/>
<meta
property="og:description"
content="一款简单易用的在线图片加水印工具。支持批量处理、自定义水印文字、位置、颜色和大小。保护您的图片,防止盗用。完全免费,无需注册。"
/>
<meta property="og:url" content="https://jiashuiyin.com" />
<meta property="og:type" content="website" />
<meta
property="og:image"
content="https://jiashuiyin.com/images/logo.jpg"
/>
<link rel="stylesheet" href="styles.css" />
<link
rel="icon"
type="image/x-icon"
sizes="16x16 32x32 48x48"
href="/images/favicon.ico"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/images/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/images/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/images/favicon-16x16.png"
/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "加水印.com",
"url": "https://jiashuiyin.com",
"description": "简单易用的在线图片加水印工具,支持批量处理和自定义水印。",
"applicationCategory": "MultimediaApplication",
"operatingSystem": "All",
"offers": {
"@type": "Offer",
"price": "0"
}
}
</script>
<script
defer
data-domain="jiashuiyin.com"
src="https://data.tuocibao.com/js/script.js"
></script>
<meta name="robots" content="index, follow" />
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-4WH6LLGNFX"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-4WH6LLGNFX");
</script>
</head>
<body class="bg-gray-100 font-sans">
<div id="pageLoader" class="page-loader">
<div class="loader"></div>
</div>
<nav class="bg-white shadow-md">
<div
class="container mx-auto px-4 py-3 flex justify-between items-center"
>
<a
href="javascript:void(0);"
onclick="location.reload();"
class="flex items-center cursor-pointer"
>
<img
src="../images/logo.png"
alt="加水印网站Logo"
class="h-8 w-8 mr-2"
/>
<span class="text-xl font-bold text-gray-800" data-i18n="logo"
>加水印.com</span
>
</a>
<div class="relative">
<select
id="languageSelector"
class="appearance-none bg-white border border-gray-300 rounded px-4 py-2 pr-8 leading-tight focus:outline-none focus:border-blue-500"
aria-label="选择语言"
>
<option value="zh-CN">简体中文</option>
<option value="en">English</option>
</select>
<div
class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"
>
<svg
class="fill-current h-4 w-4"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
>
<path
d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"
/>
</svg>
</div>
</div>
</div>
</nav>
<div class="container mx-auto px-4 py-8 mt-16">
<div class="max-w-3xl mx-auto">
<h1 class="text-3xl font-bold mb-2 text-center" data-i18n="heading">
简易图片加水印,防盗图必备
</h1>
<p class="text-l text-gray-600 mb-6 text-center" data-i18n="subheading">
快速为多张图片添加自定义水印,一键生成,非常简单易用
</p>
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
<div class="mb-4">
<label
class="block text-gray-700 text-sm font-bold mb-2"
for="imageInput"
data-i18n="selectImages"
>
选择图片(最多20张)
</label>
<input
id="imageInput"
type="file"
accept="image/*"
multiple
class="hidden"
/>
<!-- 修改粘贴区域的样式,添加文本颜色 -->
<div
id="pasteArea"
class="mt-2 border-2 border-dashed border-blue-500 rounded-lg p-6 text-center cursor-pointer hover:bg-blue-50 transition-colors duration-300"
>
<span data-i18n="pasteAreaText">点击上传或直接粘贴图片</span>
</div>
<!-- 在粘贴区域下方添加预览区域 -->
<div id="imagePreviewArea" class="mt-2 flex flex-wrap gap-2"></div>
</div>
<div class="mb-4">
<label
class="block text-gray-700 text-sm font-bold mb-2"
for="watermarkText"
data-i18n="watermarkText"
>
水印文字
</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
id="watermarkText"
type="text"
data-i18n-placeholder="inputWatermarkText"
/>
</div>
<div class="mb-4 flex flex-wrap -mx-2">
<div class="w-full sm:w-1/4 px-2 mb-4 sm:mb-0">
<label
class="block text-gray-700 text-sm font-bold mb-2"
for="watermarkPosition"
data-i18n="watermarkPosition"
>
水印位置
</label>
<select
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm"
id="watermarkPosition"
>
<option value="tile" selected data-i18n="watermarkPositionTile">
整体平铺
</option>
<option
value="bottomRight"
data-i18n="watermarkPositionBottomRight"
>
右下角
</option>
<option
value="bottomLeft"
data-i18n="watermarkPositionBottomLeft"
>
左下角
</option>
<option value="topRight" data-i18n="watermarkPositionTopRight">
右上角
</option>
<option value="topLeft" data-i18n="watermarkPositionTopLeft">
左上角
</option>
</select>
</div>
<div class="w-full sm:w-1/4 px-2 mb-4 sm:mb-0">
<label
class="block text-gray-700 text-sm font-bold mb-2"
for="watermarkDensity"
data-i18n="watermarkDensity"
>
水印密度
</label>
<select
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm"
id="watermarkDensity"
>
<option value="2" data-i18n="twoByTwo">2x2 (4个水印)</option>
<option value="3" selected data-i18n="threeByThree">
3x3 (9个水印)
</option>
<option value="4" data-i18n="fourByFour">4x4 (16个水印)</option>
<option value="5" data-i18n="fiveByFive">5x5 (25个水印)</option>
<option value="6" data-i18n="sixBySix">6x6 (36个水印)</option>
</select>
</div>
<div class="w-full sm:w-1/4 px-2 mb-4 sm:mb-0">
<label
class="block text-gray-700 text-sm font-bold mb-2"
for="watermarkColor"
data-i18n="watermarkColor"
>
水印颜色
</label>
<div class="relative">
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm"
id="watermarkColor"
type="text"
value="#e3e3e3"
placeholder="#000000"
/>
<div
class="absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer"
>
<div
id="colorPreview"
class="w-6 h-6 rounded border border-gray-300"
></div>
</div>
<input
type="color"
id="colorPicker"
class="absolute opacity-0 -z-10"
aria-label="选择水印颜色"
/>
</div>
</div>
<div class="w-full sm:w-1/4 px-2">
<label
class="block text-gray-700 text-sm font-bold mb-2"
for="watermarkSize"
data-i18n="watermarkSize"
>
水印大小(字号Px)
</label>
<div class="relative">
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline text-sm"
id="watermarkSize"
type="number"
min="10"
max="100"
value="20"
step="1"
/>
</div>
</div>
</div>
<div class="flex items-center justify-center flex-col">
<div class="flex w-full space-x-2 button-container">
<button
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline process-button"
id="processButton"
type="button"
data-i18n="processImages"
>
处理图片
</button>
<button
class="bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline reset-button"
id="resetButton"
type="button"
data-i18n="resetButton"
>
重置
</button>
</div>
<div id="processingLoader" class="processing-loader">
<div class="loader"></div>
<p class="mt-2" data-i18n="processingImages">
正在处理图片,请稍候...
</p>
</div>
</div>
</div>
<!-- 在 previewContainer 上方添加以下代码 -->
<div id="resultSection" class="hidden">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold" data-i18n="watermarkResults">
加水印结果
</h3>
<button
id="downloadAllButton"
class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
data-i18n="downloadAll"
>
一键全部下载
</button>
</div>
<div id="previewContainer" class="space-y-4"></div>
</div>
</div>
</div>
<div id="imageModal" class="modal hidden">
<img id="modalImage" src="" alt="放大预览" class="modal-content" />
</div>
<script src="i18n.js" type="module"></script>
<script src="script.js" type="module"></script>
<script>
window.addEventListener("load", function () {
document.getElementById("pageLoader").style.display = "none";
});
</script>
<footer class="mt-8 py-4 bg-gray-100">
<div class="container mx-auto px-4">
<p class="text-gray-600 text-center">
©2024 <span data-i18n="copyright">加水印网 Jiashuiyin.com </span
><span data-i18n="rights">保留所有权利</span>
</p>
<div class="mt-2 flex justify-center items-center space-x-4">
<span class="text-gray-600 font-bold" data-i18n="friendlyLinks"
>友情链接:</span
>
<a
href="https://researchtitle.textgen.net/"
class="text-blue-500 hover:text-blue-700"
target="_blank"
rel="noopener"
data-i18n="aiTitleGenerator"
>AI论文标题生成器</a
>
<a
href="https://github.com/pdmaker/watermark-master"
class="text-blue-500 hover:text-blue-700"
target="_blank"
rel="noopener"
data-i18n="githubProject"
>GitHub</a
>
</div>
</div>
</footer>
</body>
</html>