-
Notifications
You must be signed in to change notification settings - Fork 634
/
index.html
342 lines (332 loc) · 18.8 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
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miniPaint - online image editor</title>
<meta name="description" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." />
<meta name="keywords" content="photo, image, picture, transparent, layers, free, edit, html5, canvas, javascript, online, photoshop, gimp, effects, sharpen, blur, magic wand tool, clone tool, rotate, resize, photoshop online, online tools, tilt shift, sprites, keypoints" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="styles/styles.css" />
<link rel="shortcut icon" href="img/favicon.png" />
<!-- Google -->
<meta itemprop="name" content="miniPaint" />
<meta itemprop="description" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." />
<meta itemprop="image" content="https://viliusle.github.io/miniPaint/img/preview.jpg" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="miniPaint" />
<meta name="twitter:description" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." />
<meta name="twitter:image" content="https://viliusle.github.io/miniPaint/img/preview.jpg" />
<meta name="twitter:image:alt" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." />
<!-- Facebook, Pinterest -->
<meta property="og:title" content="miniPaint" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://viliusle.github.io/miniPaint/" />
<meta property="og:image" content="https://viliusle.github.io/miniPaint/img/preview.jpg" />
<meta property="og:description" content="miniPaint is free online image editor using HTML5. Edit, adjust your images, add effects online in your browser, without installing anything..." />
<meta property="og:site_name" content="miniPaint" />
</head>
<body>
<div id="wrapper">
<div id="sidebar_left">
<a id="logo" href="">miniPaint</a>
<div id="menu_left_container">
<noscript>
Select object tool, Select area tool, Magic Wand Tool,
Erase, Fill, Pick Color, Pencil, Draw line, Draw letters,
Draw rectangle, Draw circle, Brush, Blur tool, Sharpen tool,
Clone tool, Gradient
</noscript>
</div>
<div style="clear:both;"></div>
<div id="main_color_container">
<input type="color" id="main_color" value="#0000ff" onchange="GUI.set_color(this);" />
<div style="display:none;" id="main_color_alt" onclick="GUI.toggle_color_select();"></div>
</div>
<div class="block" id="all_colors"></div>
<div class="block">
<input type="text" id="color_hex" value="#000000" /><br />
<div id="main_color_rgb">
<a class="red" href="#" title="Red" onclick="return false;">Red</a>
<input id="rgb_r" onKeyUp="GUI.set_color_rgb(this, 'r')" onchange="GUI.set_color_rgb(this, 'r')" type="number" value="255" />
<br />
<a class="green" href="#" title="Green" onclick="return false;">Green</a>
<input id="rgb_g" onKeyUp="GUI.set_color_rgb(this, 'g')" onchange="GUI.set_color_rgb(this, 'g')" type="number" value="255" />
<br />
<a class="blue" href="#" title="Blue" onclick="return false;">Blue</a>
<input id="rgb_b" onKeyUp="GUI.set_color_rgb(this, 'b')" onchange="GUI.set_color_rgb(this, 'b')" type="number" value="255" />
<br />
<a class="alpha" href="#" title="Alpha" onclick="return false;">Alpha</a>
<input id="rgb_a" onKeyUp="GUI.set_color_rgb(this, 'a')" onchange="GUI.set_color_rgb(this, 'a')" type="number" value="255" />
<br />
</div>
</div>
<div class="block" id="mouse_info">
<span class="trn mouse_info_title">Size:</span>
<span id="mouse_info_size"></span><br />
<span style="font-size:10px;" class="trn mouse_info_title">Mouse:</span>
<span id="mouse_info_mouse"></span><br />
<div style="display:none;" id="mouse_info_selected">
<br />
<span class="mouse_info_title">XY:</span>
<span id="mouse_info_xy"></span><br />
<span class="trn mouse_info_title">Area:</span>
<span id="mouse_info_area"></span><br />
</div>
</div>
<div class="block" id="action_attributes"></div>
</div>
<div id="canvas_wrapper">
<canvas id="canvas_back"><div class="trn error">Your browser doesn't support canvas.</div></canvas>
<div id="canvas_more"></div>
<canvas id="canvas_front"></canvas>
<canvas id="canvas_grid"></canvas>
<div id="resize-w"></div>
<div id="resize-h"></div>
<div id="resize-wh"></div>
</div>
<div id="sidebar_right">
<div id="preview">
<canvas id="canvas_preview"></canvas>
<div style="margin-top:105px;padding-left:5px;">
<input title="Zoom out" onclick="GUI.zoom(-1, true);" style="width:25px;" class="layer_add" type="button" value="-" />
<input title="Reset zoom level" onclick="GUI.zoom(100, true);" class="layer_add" id="zoom_nr" type="button" value="100%" />
<input title="Zoom in" onclick="GUI.zoom(+1, true);" style="width:25px;" class="layer_add" type="button" value="+" />
<input title="Fit" onclick="GUI.zoom_auto();" class="layer_add" type="button" value="Fit" />
<input style="width:95%;margin-top:5px;" id="zoom_range" type="range" value="100" min="50" max="1000" step="50" oninput="GUI.zoom(this.value, true);" />
</div>
</div>
<div id="layers_base">
<b class="trn">Layers</b> <a title="Add new layer" class="layer_add" onclick="EDIT.save_state();LAYER.layer_add();return false;" href="#">+</a>
<a title="Move down" onclick="EDIT.save_state();LAYER.move_layer('down');return false;" class="layers_arrow" href="#">↓</a>
<a title="Move up" onclick="EDIT.save_state();LAYER.move_layer('up');return false;" class="layers_arrow" href="#">↑</a>
<div style="margin-top:5px;" id="layers"></div>
</div>
</div>
</div>
<div id="mobile_menu">
<a class="left_mobile_menu" onclick="GUI.toggle('#sidebar_left');return false;" href="#"></a>
<a class="right_mobile_menu" onclick="GUI.toggle('#sidebar_right');return false;" href="#"></a>
</div>
<div id="main_menu" class="ddsmoothmenu">
<ul>
<li>
<a class="icon file trn" href="#">File</a>
<ul>
<li><a class="trn" onclick="call_menu(FILE, 'file_new');" href="#">New</a></li>
<li><a class="trn dots" onclick="call_menu(FILE, 'file_open');" href="#">Open</a></li>
<li><a class="trn dots" onclick="call_menu(FILE, 'file_save');" href="#">Save as</a></li>
<li><a class="trn dots" onclick="call_menu(FILE, 'file_print');" href="#">Print</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn dots" onclick="call_menu(FILE, 'file_quicksave');" href="#">Quick save</a></li>
<li><a class="trn dots" onclick="call_menu(FILE, 'file_quickload');" href="#">Quick load</a></li>
</ul>
</li>
<li>
<a class="icon edit trn" href="#">Edit</a>
<ul>
<li><a class="trn" onclick="call_menu(EDIT, 'edit_undo');" href="#">Undo</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn" onclick="call_menu(EDIT, 'edit_cut');" href="#">Cut selection</a></li>
<li><a class="trn" onclick="call_menu(EDIT, 'edit_copy');" href="#">Copy selection</a></li>
<li><a class="trn" onclick="call_menu(EDIT, 'edit_paste');" href="#">Paste selection</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn" onclick="call_menu(EDIT, 'edit_select');" href="#">Select all</a></li>
<li><a class="trn" onclick="call_menu(EDIT, 'edit_clear');" href="#">Clear selection</a></li>
</ul>
</li>
<li>
<a class="icon image trn" href="#">Image</a>
<ul>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_information');" href="#">Information</a></li>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_size');" href="#">Size</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_trim');" href="#">Trim</a>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_crop');" href="#">Crop Selection</a>
<li class="more">
<a class="trn" href="#">Zoom</a>
<ul>
<li><a class="trn" onclick="call_menu(IMAGE, 'zoom_in');" href="#">Zoom In</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'zoom_out');" href="#">Zoom Out</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'zoom_original');" href="#">Original size</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'zoom_auto');" href="#">Fit window</a></li>
</ul>
</li>
<li><div class="mid-line"></div></li>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_resize');" href="#">Resize</a></li>
<li class="more">
<a class="trn" href="#">Rotate</a>
<ul>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_rotate_left');" href="#">Left</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_rotate_right');" href="#">Right</a></li>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_rotate');" href="#">Rotation</a></li>
</ul>
</li>
<li class="more">
<a class="trn" href="#">Flip</a>
<ul>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_vflip');" href="#">Vertical</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_hflip');" href="#">Horizontal</a></li>
</ul>
</li>
<li><div class="mid-line"></div></li>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_colors');" href="#">Color corrections</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_auto_adjust');" href="#">Auto adjust colors</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_GrayScale');" href="#">GrayScale</a>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_decrease_colors');" href="#">Decrease color depth</a></li>
<li><a class="trn" onclick="call_menu(IMAGE, 'image_negative');" href="#">Negative</a></li>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_grid');" href="#">Grid</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn dots" onclick="call_menu(IMAGE, 'image_histogram');" href="#">Histogram</a></li>
</ul>
</li>
<li>
<a class="icon layer trn" href="#">Layer</a>
<ul>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_new');" href="#">New</a></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_duplicate');" href="#">Duplicate</a></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_show_hide');" href="#">Show / Hide</a></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_crop');" href="#">Crop Selection</a>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_delete');" href="#">Delete</a></li>
<li><div class="mid-line"></div></li>
<li class="more">
<a class="trn" href="#">Move</a>
<ul>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_move_up');" href="#">Up</a></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_move_down');" href="#">Down</a></li>
</ul>
</li>
<li><a class="trn dots" onclick="call_menu(LAYER, 'layer_opacity');" href="#">Opacity</a></li>
<li><a class="trn dots" onclick="call_menu(LAYER, 'layer_rename');" href="#">Rename</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_trim');" href="#">Trim</a></li>
<li><a class="trn dots" onclick="call_menu(LAYER, 'layer_resize');" href="#">Resize</a></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_clear');" href="#">Clear</a></li>
<li><div class="mid-line"></div></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_differences');" href="#">Differences Down</a></li>
<li><a class="trn dots" onclick="call_menu(LAYER, 'layer_merge_down');" href="#">Merge Down</a></li>
<li><a class="trn" onclick="call_menu(LAYER, 'layer_flatten');" href="#">Flatten Image</a></li>
</ul>
</li>
<li>
<a class="icon effects trn" href="#">Effects</a>
<ul id="effects_list">
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_bw');" href="#">Black and White</a>
<li class="more">
<a class="trn" href="#">Blur</a>
<ul>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_BoxBlur');" href="#">Blur-Box</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_GaussianBlur');" href="#">Blur-Gaussian</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_StackBlur');" href="#">Blur-Stack</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_zoomblur');" href="#">Blur-Zoom</a>
</ul>
</li>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_bulge_pinch');" href="#">Bulge/Pinch</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_colorize');" href="#">Colorize</a></li>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_denoise');" href="#">Denoise</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Desaturate');" href="#">Desaturate</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Dither');" href="#">Dither</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_dot_screen');" href="#">Dot Screen</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Edge');" href="#">Edge</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Emboss');" href="#">Emboss</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Enrich');" href="#">Enrich</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Grains');" href="#">Grains</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_heatmap');" href="#">Heatmap</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_jpg_vintage');" href="#">JPG Compression</a></li>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Mosaic');" href="#">Mosaic</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Oil');" href="#">Oil</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_perspective');" href="#">Perspective</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Sepia');" href="#">Sepia</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Sharpen');" href="#">Sharpen</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_Solarize');" href="#">Solarize</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_tilt_shift');" href="#">Tilt Shift</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_vignette');" href="#">Vignette</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_vibrance');" href="#">Vibrance</a>
<li><a class="trn dots" onclick="call_menu(EFFECTS, 'effects_vintage');" href="#">Vintage</a>
</ul>
</li>
<li>
<a class="icon tools trn" href="#">Tools</a>
<ul>
<li><a class="trn dots" onclick="call_menu(TOOLS, 'tools_borders');" href="#">Borders</a></li>
<li><a class="trn" onclick="call_menu(TOOLS, 'tools_sprites');" href="#">Sprites</a></li>
<li><a class="trn" onclick="call_menu(TOOLS, 'tools_keypoints');" href="#">Key-points</a></li>
<li><a class="trn dots" onclick="call_menu(TOOLS, 'tools_color2alpha');" href="#">Color to Alpha</a></li>
<li><a class="trn dots" onclick="call_menu(TOOLS, 'tools_color_zoom');" href="#">Color Zoom</a></li>
<li><a class="trn dots" onclick="call_menu(TOOLS, 'tools_replace_color');" href="#">Replace Color</a></li>
<li><a class="trn dots" onclick="call_menu(TOOLS, 'tools_restore_alpha');" href="#">Restore alpha</a></li>
</ul>
</li>
<li>
<a class="icon help trn" href="#">Help</a>
<ul>
<li><a class="trn dots" onclick="call_menu(HELP, 'help_shortcuts');" href="#">Keyboard Shortcuts</a></li>
<li><a class="trn" onclick="window.location='https://viliusle.github.io/miniPaint/';" href="https://viliusle.github.io/miniPaint/">Website</a></li>
<li class="more">
<a class="trn" href="#">Language</a>
<ul>
<li><a onclick="call_menu(HELP, 'help_translate', 'en');" href="#">English</a>
<li><div class="mid-line"></div></li>
<li><a onclick="call_menu(HELP, 'help_translate', 'zh');" href="#">简体中文)</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'es');" href="#">Español</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'fr');" href="#">French</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'de');" href="#">German</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'it');" href="#">Italiano</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'ja');" href="#">Japanese</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'ko');" href="#">Korean</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'lt');" href="#">Lietuvių</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'pt');" href="#">Portuguese</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'ru');" href="#">Russian</a>
<li><a onclick="call_menu(HELP, 'help_translate', 'tr');" href="#">Turkish</a>
</ul>
</li>
<li><div class="mid-line"></div></li>
<li><a class="trn dots" onclick="call_menu(HELP, 'help_about');" href="#">About</a></li>
</ul>
</li>
</ul>
</div>
<div style="display:none;" id="tmp"></div>
<div id="popup"></div>
<script src="vendor/jquery/jquery.js"></script>
<script src="vendor/jquery/jquery-migrate.js"></script>
<script src="vendor/menu/menu.min.js"></script>
<script src="vendor/imagefilters/imagefilters.min.js"></script>
<script src="vendor/glfx/glfx.js"></script>
<script src="vendor/exif/exif.min.js"></script>
<script src="vendor/harmony/harmony.min.js"></script>
<script src="libs/vintage.js"></script>
<script src="libs/sift.js"></script>
<script src="js/elements.js"></script>
<script src="libs/helpers.js"></script>
<script src="libs/popup.js"></script>
<script src="vendor/file-saver/canvas-toBlob.js"></script>
<script src="vendor/file-saver/FileSaver.min.js"></script>
<script src="vendor/hqx/hqx.min.js"></script>
<script src="vendor/translate/jquery.translate.min.js"></script>
<script src="vendor/hermite-resize/hermite.js"></script>
<script src="languages/de.js"></script>
<script src="languages/es.js"></script>
<script src="languages/fr.js"></script>
<script src="languages/it.js"></script>
<script src="languages/ja.js"></script>
<script src="languages/ko.js"></script>
<script src="languages/lt.js"></script>
<script src="languages/pt.js"></script>
<script src="languages/ru.js"></script>
<script src="languages/tr.js"></script>
<script src="languages/zh.js"></script>
<script src="js/events.js"></script>
<script src="js/file.js"></script>
<script src="js/edit.js"></script>
<script src="js/image.js"></script>
<script src="js/layers.js"></script>
<script src="js/effects.js"></script>
<script src="js/tools.js"></script>
<script src="js/draw_tools.js"></script>
<script src="js/gui.js"></script>
<script src="js/help.js"></script>
<script src="config.js"></script>
<script src="js/main.js"></script>
</body>
</html>