Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
276 lines (263 loc) · 18 KB
/
Copy pathindex.html
File metadata and controls
276 lines (263 loc) · 18 KB
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
<!doctype html>
<!--
The app markup. This file is the template for the site, not a page of it:
scripts/build-pages.mjs copies the header, the tool (<main class="shop">), the drop veil and
toast, and the footer note from here into every tool page under site/. Its <head> is not used;
each page gets its own. Edit the tool here, then run npm run dev or npm run build.
-->
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MarkDrift: free moving watermark for videos and photos</title>
<meta name="description" content="Put your name or logo on many videos and photos at once, free. Moving, tiled or corner watermarks. Runs in your browser: no upload, no sign-up, no watermark of ours." />
<meta name="theme-color" content="#FFFFFF" />
<meta name="color-scheme" content="light" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="preload" href="/fonts/google-sans-flex-latin.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="/src/fonts.css" />
<link rel="stylesheet" href="/src/style.css" />
</head>
<body>
<header class="bar">
<a class="brand" href="/tools/watermark/" aria-label="MarkDrift by UptoSolve, home">
<svg class="brand-mark" viewBox="0 0 28 20" aria-hidden="true" focusable="false"><rect x="1" y="1" width="26" height="18" rx="4" fill="none" stroke="currentColor" stroke-width="2"/><rect class="brand-dot" x="15" y="11" width="9" height="5" rx="2"/></svg>
<span class="brand-name">MarkDrift</span>
<span class="brand-by">by UptoSolve</span>
</a>
<p class="bar-note"><span data-icon="lock"></span>Runs on this device. Nothing is uploaded.</p>
<a class="bar-all" href="/tools/">All free tools</a>
</header>
<main class="shop">
<section class="cart" aria-label="Your files">
<div class="stage">
<label class="drop" id="drop">
<input type="file" id="fileInput" class="vh" accept="video/*,image/*,.mkv,.mov" multiple aria-label="Choose videos or photos" />
<canvas id="demo" aria-hidden="true"></canvas>
<span class="drop-cta">
<span class="btn primary"><span data-icon="upload"></span><span id="dropTitle">Choose videos or photos</span></span>
<span class="drop-hint" id="dropHint">or drop them anywhere on this page</span>
</span>
</label>
<div class="preview" id="preview" hidden>
<div class="frame-wrap">
<div class="frame" id="frame">
<video id="video" playsinline muted loop preload="auto"></video>
<canvas id="base" hidden></canvas>
<canvas id="overlay"></canvas>
</div>
</div>
<div class="player" id="player">
<button class="icon-btn" id="playBtn" type="button" aria-label="Play" title="Play (Space)"><span id="playIcon" data-icon="play"></span></button>
<input type="range" id="scrub" min="0" max="1000" value="0" step="1" aria-label="Seek" />
<span class="time" id="time">0:00 / 0:00</span>
</div>
</div>
</div>
<div class="caption" id="caption">
<div class="caption-text">
<strong id="fileName">Preview</strong>
<span id="fileMeta">Your mark on a landscape and a vertical frame. Change the settings to see it update.</span>
</div>
<button class="btn ghost small" id="replaceBtn" type="button" hidden>Replace</button>
</div>
<p class="note" id="stageNote" hidden></p>
<div class="cart-list" id="cartList" hidden>
<div class="cart-head">
<h3 id="cartTitle">Your files</h3>
<div class="switch" role="tablist" aria-label="Show videos or photos">
<button role="tab" class="tab" id="tab-video" aria-selected="true" data-tab="video">Videos</button>
<button role="tab" class="tab" id="tab-image" aria-selected="false" data-tab="image">Photos</button>
</div>
<button class="btn ghost small" type="button" id="addVideosBtn"><span data-icon="plus"></span>Add more</button>
</div>
<p class="cart-sum" id="queueSummary"></p>
<div id="queueWrap" hidden>
<ul class="queue" id="queue" aria-label="Videos to watermark"></ul>
</div>
<div class="thumbs" id="thumbs" hidden></div>
</div>
</section>
<aside class="order" aria-label="Watermark settings">
<div class="order-body">
<p class="browser-note" id="browserNote" hidden><span data-icon="alert"></span><span>This browser can't make videos. Photos still work. For videos, use Chrome, Edge or Safari 17 or newer.</span></p>
<section class="step" aria-labelledby="s1">
<h3 id="s1"><span class="n">1</span>Your watermark</h3>
<div class="seg" role="radiogroup" aria-label="Watermark type">
<label><input type="radio" name="kind" value="text" data-key="kind" /><span>Text</span></label>
<label><input type="radio" name="kind" value="image" data-key="kind" /><span>Logo</span></label>
</div>
<div class="stack textrow" data-kind="text">
<label class="field">
<span class="vh">Watermark text</span>
<input type="text" data-key="text" maxlength="80" placeholder="Your name or @handle" autocomplete="off" />
</label>
<div class="swatches" role="radiogroup" aria-label="Text colour">
<label title="White"><input type="radio" name="swatch" value="#ffffff" /><span style="--c:#ffffff"></span></label>
<label title="Black"><input type="radio" name="swatch" value="#23231e" /><span style="--c:#23231e"></span></label>
<label title="Yellow"><input type="radio" name="swatch" value="#fcec45" /><span style="--c:#fcec45"></span></label>
<label class="custom" title="Pick any colour"><input type="color" data-key="color" aria-label="Pick any colour" /><span></span></label>
</div>
</div>
<div class="stack" data-kind="image">
<label class="logo-pick" id="logoPick">
<input type="file" id="logoInput" class="vh" accept="image/png,image/svg+xml,image/webp,image/jpeg" aria-label="Choose a logo" />
<span class="logo-thumb" id="logoThumb" aria-hidden="true"></span>
<span class="logo-text"><b id="logoLabel">Choose your logo</b><small>A PNG with a see-through background works best. We remember it for next time.</small></span>
</label>
<label class="check"><input type="checkbox" data-key="whiten" /><span>Make it white</span></label>
</div>
</section>
<section class="step" aria-labelledby="s2">
<h3 id="s2"><span class="n">2</span>Style</h3>
<div class="styles" role="radiogroup" aria-label="Style">
<label class="style"><input type="radio" name="mode" value="bounce" data-key="mode" />
<span class="style-row">
<svg viewBox="0 0 48 30" aria-hidden="true"><rect class="mf" x=".5" y=".5" width="47" height="29" rx="4"/><g class="bx"><rect class="mk by" x="3" y="3" width="12" height="5" rx="1.5"/></g></svg>
<span class="style-text"><b>Moving <em>Recommended</em></b><small>Glides around the frame, so a crop can't cut it out.</small></span>
</span></label>
<label class="style"><input type="radio" name="mode" value="jump" data-key="mode" />
<span class="style-row">
<svg viewBox="0 0 48 30" aria-hidden="true"><rect class="mf" x=".5" y=".5" width="47" height="29" rx="4"/><rect class="mk jp" x="3" y="3" width="12" height="5" rx="1.5"/></svg>
<span class="style-text"><b>Jumping</b><small>Pops up somewhere new every few seconds.</small></span>
</span></label>
<label class="style"><input type="radio" name="mode" value="fixed" data-key="mode" />
<span class="style-row">
<svg viewBox="0 0 48 30" aria-hidden="true"><rect class="mf" x=".5" y=".5" width="47" height="29" rx="4"/><rect class="mk" x="32" y="21" width="12" height="5" rx="1.5"/></svg>
<span class="style-text"><b>Corner</b><small>Stays in one place. Easy to read, but easy to crop.</small></span>
</span></label>
<label class="style"><input type="radio" name="mode" value="tile" data-key="mode" />
<span class="style-row">
<svg viewBox="0 0 48 30" aria-hidden="true"><rect class="mf" x=".5" y=".5" width="47" height="29" rx="4"/><g class="tl"><rect class="mk" x="-4" y="4" width="9" height="3" rx="1"/><rect class="mk" x="14" y="4" width="9" height="3" rx="1"/><rect class="mk" x="32" y="4" width="9" height="3" rx="1"/><rect class="mk" x="5" y="13" width="9" height="3" rx="1"/><rect class="mk" x="23" y="13" width="9" height="3" rx="1"/><rect class="mk" x="41" y="13" width="9" height="3" rx="1"/><rect class="mk" x="-4" y="22" width="9" height="3" rx="1"/><rect class="mk" x="14" y="22" width="9" height="3" rx="1"/><rect class="mk" x="32" y="22" width="9" height="3" rx="1"/></g></svg>
<span class="style-text"><b>Tiled</b><small>Repeats across the whole frame, so cropping can't cut it out.</small></span>
</span></label>
<label class="style"><input type="radio" name="mode" value="combo" data-key="mode" />
<span class="style-row">
<svg viewBox="0 0 48 30" aria-hidden="true"><rect class="mf" x=".5" y=".5" width="47" height="29" rx="4"/><g class="faint"><rect class="mk" x="4" y="5" width="8" height="2" rx="1"/><rect class="mk" x="20" y="5" width="8" height="2" rx="1"/><rect class="mk" x="36" y="5" width="8" height="2" rx="1"/><rect class="mk" x="12" y="14" width="8" height="2" rx="1"/><rect class="mk" x="28" y="14" width="8" height="2" rx="1"/><rect class="mk" x="4" y="23" width="8" height="2" rx="1"/><rect class="mk" x="20" y="23" width="8" height="2" rx="1"/><rect class="mk" x="36" y="23" width="8" height="2" rx="1"/></g><g class="bx"><rect class="mk by" x="3" y="3" width="12" height="5" rx="1.5"/></g></svg>
<span class="style-text"><b>Hardest to remove</b><small>Faint copies across the whole frame, plus one that moves. Busier to look at.</small></span>
</span></label>
</div>
<div class="place" data-show="fixed">
<div class="posgrid" role="radiogroup" aria-label="Position">
<label><input type="radio" name="position" value="tl" data-key="position" aria-label="Top left" /><span></span></label>
<label><input type="radio" name="position" value="tc" data-key="position" aria-label="Top center" /><span></span></label>
<label><input type="radio" name="position" value="tr" data-key="position" aria-label="Top right" /><span></span></label>
<label><input type="radio" name="position" value="ml" data-key="position" aria-label="Middle left" /><span></span></label>
<label><input type="radio" name="position" value="mc" data-key="position" aria-label="Center" /><span></span></label>
<label><input type="radio" name="position" value="mr" data-key="position" aria-label="Middle right" /><span></span></label>
<label><input type="radio" name="position" value="bl" data-key="position" aria-label="Bottom left" /><span></span></label>
<label><input type="radio" name="position" value="bc" data-key="position" aria-label="Bottom center" /><span></span></label>
<label><input type="radio" name="position" value="br" data-key="position" aria-label="Bottom right" /><span></span></label>
</div>
<p class="hint">Pick a spot here, or click the preview where you want it.</p>
</div>
</section>
<section class="step" aria-labelledby="s3">
<h3 id="s3"><span class="n">3</span>Size and strength</h3>
<div class="seg three" role="radiogroup" aria-label="Size" id="sizeSeg">
<label><input type="radio" name="sizePreset" value="3.5" /><span>Small</span></label>
<label><input type="radio" name="sizePreset" value="5" /><span>Medium</span></label>
<label><input type="radio" name="sizePreset" value="7.5" /><span>Large</span></label>
</div>
<label class="field range inline-range">
<span class="label">How visible</span>
<input type="range" min="5" max="100" step="1" data-key="opacity" />
<output data-for="opacity" data-unit="%"></output>
</label>
</section>
<details class="more" id="more">
<summary><span>More options</span><span data-icon="chevron-down"></span></summary>
<div class="more-body">
<div class="stack" data-kind="text">
<div class="row2">
<label class="field">
<span class="label">Font</span>
<select data-key="font">
<option value="sans">Clean</option>
<option value="heavy">Heavy</option>
<option value="serif">Serif</option>
<option value="mono">Typewriter</option>
</select>
</label>
<div class="checks">
<label class="check"><input type="checkbox" data-key="bold" /><span>Bold</span></label>
<label class="check"><input type="checkbox" data-key="outline" /><span>Outline</span></label>
</div>
</div>
</div>
<label class="field range">
<span class="label">Exact size <output data-for="size" data-unit="%"></output></span>
<input type="range" min="1" max="30" step="0.5" data-key="size" />
</label>
<label class="field range" data-show="fixed bounce jump combo">
<span class="label">Angle <output data-for="rotation" data-unit="°"></output></span>
<input type="range" min="-45" max="45" step="1" data-key="rotation" />
</label>
<label class="field range" data-show="bounce combo tile">
<span class="label">Speed <output data-for="speed"></output></span>
<input type="range" min="1" max="10" step="1" data-key="speed" />
</label>
<label class="field range" data-show="jump">
<span class="label">Jump every <output data-for="interval" data-unit=" s"></output></span>
<input type="range" min="1" max="10" step="0.5" data-key="interval" />
</label>
<label class="field range" data-show="tile combo">
<span class="label">Space between repeats <output data-for="tileGap"></output></span>
<input type="range" min="0" max="40" step="1" data-key="tileGap" />
</label>
<label class="field range" data-show="tile combo">
<span class="label">Repeat angle <output data-for="tileAngle" data-unit="°"></output></span>
<input type="range" min="-60" max="60" step="1" data-key="tileAngle" />
</label>
<label class="field range" data-show="combo">
<span class="label">Background marks strength <output data-for="tileOpacity" data-unit="%"></output></span>
<input type="range" min="10" max="80" step="1" data-key="tileOpacity" />
</label>
<label class="check" data-show="tile combo"><input type="checkbox" data-key="tileDrift" /><span>Repeats slowly drift</span></label>
<label class="field range" data-show="fixed bounce jump combo">
<span class="label">Distance from edge <output data-for="margin"></output></span>
<input type="range" min="0" max="12" step="0.5" data-key="margin" />
</label>
<label class="field range">
<span class="label">Extra protection <output data-for="jitter"></output></span>
<input type="range" min="0" max="100" step="1" data-key="jitter" />
</label>
<p class="hint">Tiny shifts in size, angle and see-through over time. Makes removal harder, not impossible.</p>
<div class="seed-row">
<span class="hint">Not happy with where the marks land?</span>
<button class="btn ghost small" type="button" id="seedBtn"><span data-icon="shuffle"></span>Shuffle</button>
<span id="seedView" hidden></span>
</div>
<label class="field" id="qualityField">
<span class="label">Video quality</span>
<select data-key="quality">
<option value="original">Keep original quality</option>
<option value="high">Best quality (bigger file)</option>
<option value="low">Smaller file (faster to upload)</option>
</select>
</label>
</div>
</details>
</div>
<div class="checkout empty" id="checkout">
<p class="summary" id="summary"><span id="sumFiles">No files yet</span> · <span id="sumStyle">Moving</span> · <span>saves to <span id="sumWhere">your Downloads</span></span></p>
<button class="btn primary big idle" id="exportBtn" type="button">Choose files to start</button>
<div class="progress" id="progress" hidden>
<div class="bar-track"><i id="bar"></i></div>
<div class="progress-row">
<span id="progressText">Starting</span>
<button class="btn ghost small" type="button" id="cancelBtn">Stop</button>
</div>
</div>
<p class="result" id="result" hidden role="status"></p>
</div>
</aside>
</main>
<footer class="foot">
<p>MarkDrift is a free, open-source tool by UptoSolve. Your videos and photos are processed by this browser, and never leave your device. No sign-up, and we never add a watermark of our own.</p>
</footer>
<div class="dropveil" id="dropveil" aria-hidden="true"><span><span data-icon="upload"></span>Drop to add</span></div>
<div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>