-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (51 loc) · 2.62 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
<!doctype html>
<html>
<head>
<title>Canvas test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="application/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="application/javascript" src="curve.js"></script>
<script type="application/javascript" src="curvemanager.js"></script>
<script type="application/javascript" src="main.js"></script>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div id="container">
<div id="viewport">
<canvas width="800" height="600"></canvas>
<div id="selectionNodeInfo"></div>
</div>
<div id="controls">
<div id="genericControls">
<ul>
<li><input id="loadData" type="button" value="Load saved state"></li>
<li><input id="saveData" type="button" value="Save state"></li>
<li><input id="addCurve" type="button" value="Add curve"></li>
<li><input id="toggleControls" type="button" value="Toggle controls"></li>
<li><input id="toggleDrawStyle" type="button" value="Toggle dots/path"></li>
<li><input id="toggleConsole" type="button" value="Toggle console"></li>
<li><input id="dumpData" type="button" value="Dump JSON"></li>
<li>Steps: <input id="drawSteps" type="range" min="1" max="400"></li>
</ul>
</div>
<div id="selectionControls">
<h2>Curve options:</h2>
<ul>
<li><input id="deleteCurve" type="button" value="Delete curve"></li>
<li id="curveType">Curve type:<br><select></select></li>
<li id="curveEndPointType">Endpoint tangents:<br><select></select></li>
</ul>
<h2>Node options:</h2>
<ul>
<li><input id="addNodeBefore" type="button" value="Add node before"></li>
<li><input id="addNodeAfter" type="button" value="Add node after"></li>
<li><input id="deleteNode" type="button" value="Delete node"></li>
<li id="nodeType">Node tangents:<br><select></select></li>
</ul>
</div>
</div>
<div id="console"><p></p></div>
</div>
</body>
</html>