blob: 1c44030b44ff90d072f6bd459ef603ff15f8cb30 (
plain)
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
|
<html>
<head>
<title>KoDraw Test</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.ui/jquery.dimensions.js"></script>
<script type="text/javascript" src="jquery.ui/ui.mouse.js"></script>
<script type="text/javascript" src="jquery.ui/ui.draggable.js"></script>
<script type="text/javascript" src="string.js"></script>
<script type="text/javascript" src="KoDraw.js"></script>
<script type="text/javascript" src="KoControlPoint.js"></script>
<script type="text/javascript" src="KoControlRule.js"></script>
<link rel="stylesheet" href="draw.css"/>
<script>
function init() {
KoDraw.Init($("#viewport"), $("#viewport"));
}
$(init);
</script>
</head>
<body>
<p>Click the canvas to add a control point</p>
<div id="rules">
<input type="button" onclick="KoDraw.AddRule();" value="Add a new rule"/>
</div>
<div id="viewport">
</div>
</body>
</html>
|