-
Notifications
You must be signed in to change notification settings - Fork 0
/
build2.html
28 lines (25 loc) · 1.21 KB
/
build2.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content = "width = device-width, initial-scale = 1, minimum-scale = 1, maximum-scale = 1, user-scalable = no" />
<title>Spoke </title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js" type="text/javascript">
</script>
<script src="javascript/GCanvas.js" type="text/javascript">
</script>
<script type="text/javascript">
//<![CDATA[
$(function () {
var myCanv = new GCanvas("build");
grad = myCanv.addGradient(100, 120, 90, "magenta", "yellow");
grad.click = function (e) {
};
grad.drag = { start: function (e) { e.node.ox = e.x - e.node.x; e.node.oy = e.y - e.node.y; }, move: function (e) { e.node.x = e.x - e.node.ox; e.node.y = e.y - e.node.oy; }, end: function (e) { } };
});
//]]>
</script>
</head>
<body style="background-color: #000080;">
<canvas id="build" style="margin: 0px; position: absolute; top: 0px; left: 0px;"></canvas>
</body>
</html>