-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
65 lines (64 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
<!DOCTYPE html>
<html>
<head>
<script type="application/javascript" src="autostereogram.js"></script>
<link rel="stylesheet" type="text/css" href="web.css" />
</head>
<body onload="run()">
<div class="layout">
<h1 class="center">Autostereogram using Javascript Canvas</h1>
<canvas id="magiceye"></canvas>
<p class="center">
<label for="width">Width</label>
<input id="width" type="text" value="1024"/>
<label for="height">Height</label>
<input id="height" type="text" value="768"/>
<label for="invert">Invert Depthmap</label>
<input id="invert" type="checkbox"/>
<input type="button" onclick="run();" value="Make Autostereogram"/>
</p>
<div>
<label for="depthmap_files">Add Custom Depthmap</label>
<input type="file" id="depthmap_files" name="depthmap_files[]" multiple />
<br/>
<form id="depthmap_group">
<input type="radio" name="selector" checked/>
<img class="thumb" src="depthmaps/duck.jpg" title="duck"/>
<input type="radio" name="selector"/>
<img class="thumb" src="depthmaps/canyon.jpg" title="canyon.jpg"/>
<input type="radio" name="selector"/>
<img class="thumb" src="depthmaps/diamond.gif" title="diamond.gif"/>
<input type="radio" name="selector"/>
<img class="thumb" src="depthmaps/squiggily.jpg" title="squiggily.jpg"/>
<input type="radio" name="selector"/>
<img class="thumb" src="depthmaps/fishes.jpg" title="fishes.jpg"/>
</form>
</div>
<div>
<label for="pattern_files">Add Custom Pattern</label>
<input type="file" id="pattern_files" name="pattern_files[]" multiple />
<br/>
<form id="pattern_group">
<input type="radio" name="selector" checked/>
<img class="thumb" src="patterns/cracked_ground.jpg" title="cracked_ground"/>
<input type="radio" name="selector"/>
<img class="thumb" src="patterns/repeating-star.png" title="repeating_star"/>
</form>
</div>
<p class="center">
<a href="https://github.com/dgtized/autostereogram">Source Code</a>
</p>
<h5 class="center">©2010-2024 by Charles L.G. Comstock ([email protected])</h5>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23225899-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>