forked from hzeller/augenmass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
augenmass.html
74 lines (74 loc) · 2.21 KB
/
augenmass.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
<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/png" href="icons/tabicon.png"/>
<script src="js/augenmass-help.js"></script>
<script src="js/augenmass-elements.js"></script>
<script src="js/augenmass-model.js"></script>
<script src="js/augenmass-view.js"></script>
<script src="js/augenmass-loupe.js"></script>
<script src="js/augenmass-main.js"></script>
<style>
body {
background: #777;
color: #fff;
font-size: 10pt;
}
form {
display: inline;
}
#helptext {
padding-left: 1em;
font-weight: bold;
}
canvas {
position: absolute;
top: 4em;
background: transparent;
}
#background-img {
left: 10px;
z-index: -1;
}
#measure {
left: 10px;
z-index: 0;
}
#loupe {
position: fixed; /* stays when rest scrolls. */
right: 0px;
opacity: 0;
box-shadow: 3px 3px 15px;
border-radius: 10px;
color: #000; /* influences shadow color. */
}
#download-overlay, #download-composite {
font-size: larger;
font-weight: bold;
color: #11f;
background: #999;
padding: 2px;
}
#download:hover {
color: #fff;
}
</style>
</head>
<body style="font-family: sans-serif;">
<form>
<input id="file-chooser" type="file" accept="image/*">
<button id="do-align" type="button">Align</button>
<input id="show-angles" type="checkbox" checked="1">
<label for="show-angles">Show ∢ angles</label>
<input id="show-deltas" type="checkbox">
<label for="show-deltas">Show dx/dy</label>
</form>
<a id="download-overlay" download="augenmass-overlay.png">[Save overlay]</a>
<a id="download-composite" download="augenmass-composite.png">[Save composite]</a>
<span id="helptext"></span>
<canvas id="background-img" width="50" height="50"></canvas>
<canvas id="measure" width="50" height="50" style="cursor:url(icons/target-cursor.png) 31 31,crosshair;"></canvas>
<canvas id="loupe" width="280" height="280"></canvas>
<script>augenmass_init();</script>
</body>
</html>