forked from zwartopwit/raphael-shapes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
39 lines (38 loc) · 1.42 KB
/
demo.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script src="lib/underscore-min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/raphael-min.js" type="text/javascript" charset="utf-8"></script>
<script src="raphael.shapes.js" type="text/javascript" charset="utf-8"></script>
<script src="src/demo.js" type="text/javascript" charset="utf-8"></script>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Raphael Shapes - Interactive demo</title>
<style type="text/css" media="screen">
body, html {
margin: 0;
padding: 0;
background-color: #fff;
height: 100%;
}
#paper {
width:100%;
height: 100%;
}
#buttons {
position: absolute;
right: 10px;
top: 10px;
}
</style>
</head>
<body>
<div id="paper"></div>
<div id="buttons">
<input type="button" name="ngon" value="Create n-gon" class="button" onclick="Demo.addShape('ngon')" />
<input type="button" name="star" value="Create star" class="button" onclick="Demo.addShape('star')" />
<input type="button" name="polygon" value="Create polygon" class="button" onclick="Demo.addShape('polygon')" />
</div>
</body>
</html>