-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·82 lines (76 loc) · 4.27 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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Distort your face!</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<table id="ui" align="center">
<tr>
<td id="settings" width="533">
<dl>
<dt>Pic</dt>
<dd>
<select id="staffer">
<option value="timothee.jpg">timothee</option>
<option value="tristan.jpg">tristan</option>
<option value="celestine.jpg">celestine</option>
</select><br />
or pick a file:<br />
<input type="file" id="file" name="files" style="display:inline"/> <span id="file_sel_err" />
</dd>
<dt>Scale: <span id="scale_txt" /></dt>
<dd><div id="scale_slider" /></dd>
<dt>Radius: <span id="radius_txt" /></dt>
<dd><div id="radius_slider" /></dd>
<dt>Scale Easing:</dt>
<dd><select id="easing"></select></dd>
<!--dt>Image smoothing:</dt>
<dd><input type="checkbox" id="smoothing" /><label for="id"> Enabled</label></dd -->
</dl>
<p>Download your awesome creation! <a href="#" id="jpegLnk">as jpeg</a> <a href="#" id="pngLnk">as png</a></p>
<p> </p>
<p><strong>Instructions</strong></p>
<ol>
<li><em><strong>Only tested and expected to work on google chrome desktop - NOT mobile!!</strong></em></li>
<li>Roll over with mouse on image to play with a pic</li>
<li>Click the canvas to freeze the blob, click again to have the blob follow your mouse again</li>
<li>Click the links above to save your creation</li>
<li>Play with the settings above (best if you have frozen rendering first!)</li>
<li>Keyboard controls:
<ul>
<li>Press escape to compare with original</li>
<li>Press space to freeze the current blob and control a new blob!</li>
<li>Press backspace to remove previously frozen blob</li>
<li>Press enter to clear all blobs</li>
<li><em>Note: multi blob only work if they do not overlap!</em></li>
</ul>
</li>
<li>Pics are put on the canvas center-cropped, do preprocessing/cropping on your images before using this.</li>
</ol>
</td>
<td>
<!-- Width/Height ratio of canva matches passport photo in France (35x45mm) -->
<canvas id="stage" width="622" height="800"></canvas>
</td>
</tr>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-2.1.4.min.js"><\/script>')</script>
<script src="js/vendor/jquery-ui.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>