forked from nimzco/Convex-Envelop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (65 loc) · 2.64 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 lang="en-EN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Convex Envelope</title>
<link href="css/global.css" media="screen" rel="stylesheet" type="text/css" />
<script src="js/global.js" type="text/javascript"></script>
<script src="js/model.js" type="text/javascript"></script>
<script src="js/viewer.js" type="text/javascript"></script>
<script src="js/algorithms.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="algorithms/lib/mootools-core-1.3.2.js"></script>
<script language="javascript" type="text/javascript" src="algorithms/src/AvailableRenderers.js"></script>
<script language="javascript" type="text/javascript" src="algorithms/src/Vector.js"></script>
<script language="javascript" type="text/javascript" src="algorithms/src/PointsHelper.js"></script>
<script language="javascript" type="text/javascript" src="algorithms/src/Divider.js"></script>
<script language="javascript" type="text/javascript" src="algorithms/src/Randomer.js"></script>
<script language="javascript" type="text/javascript" src="algorithms/src/RhombusMixins.js"></script>
<script language="javascript" type="text/javascript" src="js/MooConvlexAdapter.js"></script>
<script language="javascript" type="text/javascript" src="lib/benchmark.js"></script>
<script language="javascript" type="text/javascript" src="js/Benchmarking.js"></script>
</head>
<body>
<h1>Convex envelope calculator</h1>
<div id="main" role="main">
<div id="left">
<h2>Envelopes</h2>
<div id="output">
<!-- dynamically filled -->
</div>
<h2>Input</h2>
<textarea id="input_json" ></textarea>
<div id="error"></div>
<em><span id="points_count">0</span> points</em>
<button id="clear">Clear</button>
<h3>Format: JSON</h3>
<pre>
[
{"x": 29, "y":119},
{"x": 105, "y":65},
{"x": 257, "y":322},
{"x": 259, "y":445},
{"x": 525, "y":257}
]
</pre>
</div>
<div id="center">
<fieldset id="renderers">
<!-- dynamically generated -->
</fieldset>
<p>Click on renderers ↑ to activate them — Click on the canvas ↓ to add points<span id="nbPoints"></span></p>
<canvas id="canvas" width="610" height="610">
Your bowser does not support canvas.
</canvas>
<div id="output"></div>
</div>
<div id="bench">
<h3>Benchmarking</h3>
<ol id="bench_results"></ol>
<button id="bench_start">Start</button>
</div>
</div>
<applet code="nano" archive="lib/nano.jar"></applet> <!-- for benchmarking -->
</body>
</html>