-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_beziers.html
67 lines (64 loc) · 2.68 KB
/
test_beziers.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Boxgraph Bézier Test Page</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5.1/dijit/themes/tundra/tundra.css">
<script type="text/javascript">
djConfig =
{
isDebug: true,
debugAtAllCosts: true,
baseUrl: "./",
parseOnLoad: true,
modulePaths: {'boxgraph': './boxgraph'}
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/dojo/1.5.0/dojo/dojo.xd.js.uncompressed.js"></script>
<!-- <script src="http://download.dojotoolkit.org/release-1.6.1/dojo-release-1.6.1/dojo/dojo.js"></script> -->
<script type="text/javascript">
dojo.require("dijit.form.Button");
dojo.require("dijit.form.Form");
dojo.require("dijit.form.TextBox");
dojo.require("boxgraph.test.bztest");
dojo.ready(function()
{
var bztest = new boxgraph.test.bztest({form: dijit.byId("form")}, dojo.byId("foo"));
dojo.connect(dijit.byId('okbutton'),"onClick", function()
{
bztest.reload();
});
})
</script>
</head>
<body>
<p>
<div id="foo" style="float:left;"></div>
<form class="tundra" id="form" dojoType="dijit.form.Form" style="width:300px;">
<div>
<label style="float:left;">Point1</label>
<input dojoType="dijit.form.TextBox" type="text" float="right;" value="100,100" name="point1"/>
</div>
<div>
<label style="float:left;">Point2</label>
<input dojoType="dijit.form.TextBox" type="text" float="right;" value="150,100" name="point2"/>
</div>
<div>
<label style="float:left;">Point3</label>
<input dojoType="dijit.form.TextBox" type="text" float="right;" value="200,100" name="point3"/>
</div>
<div>
<label style="float:left;">Point4</label>
<input dojoType="dijit.form.TextBox" type="text" float="right;" value="250,100" name="point4"/>
</div>
<div>
<label style="float:left;">Point5</label>
<input dojoType="dijit.form.TextBox" type="text" float="right;" value="300,100" name="point5"/>
</div>
<button dojoType="dijit.form.Button" id="okbutton">OK</button>
</form>
</p>
<p style="clear:both">
BoxGraph on GitHub: <a href="https://github.com/psvensson/boxgraph">https://github.com/psvensson/boxgraph</a>
</p>
</body>
</html>