-
Notifications
You must be signed in to change notification settings - Fork 10
/
demo.html
41 lines (39 loc) · 1.59 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
40
41
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Raphael Zoom - 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="zoom_20" value="Zoom to 20%" class="button" onclick="Demo.setZoom(0.2)" />
<input type="button" name="zoom_50" value="Zoom to 50%" class="button" onclick="Demo.setZoom(0.5)" />
<input type="button" name="zoom_100" value="Zoom to 100%" class="button" onclick="Demo.setZoom(1)" />
<input type="button" name="zoom_200" value="Zoom to 200%" class="button" onclick="Demo.setZoom(2)" />
<input type="button" name="change_stroke" value="Change stoke widths" class="button" onclick="Demo.changeStroke()" />
<input type="button" name="change_fontsize" value="Change font size" class="button" onclick="Demo.changeFontSize()" />
</div>
<script src="lib/raphael-min.js" type="text/javascript" charset="utf-8"></script>
<script src="raphael.zoom.js" type="text/javascript" charset="utf-8"></script>
<script src="src/demo.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>