-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvectimator.html
101 lines (96 loc) · 3.09 KB
/
vectimator.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!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" xml:lang="en" lang="en">
<head>
<title>Vectimator | SVG Animation Studio</title>
<link rel="stylesheet" type="text/css" href="jquery.css" />
<link rel="stylesheet" type="text/css" href="vectimator.css" />
<script type="text/javascript" src="vectimator.js"></script>
</head>
<body>
<div id="popup_layer"></div>
<table id="main_table">
<tr>
<td colspan="3" id="main_menu">
<script type="text/javascript">
<!--
var main_menu = {
'file_menu' : { 'title' : "File", 'items' : [ ['Open', "menu_open()"], ['Save', "save()"], ['Save As', "save_as()"], ['Export Frames', "export_frames()"] ] },
'view_menu' : { 'title' : "View", 'items' : [ ['Normal', "set_view('normal')"], ['Outline', "set_view('outline')"] ] }, //TODO: replace function parameter examples with actual values
'help_menu' : { 'title' : "Help", 'items' : [ ['Documentation', "show_docs()"], ['About', "show_about()"] ] }
};
vectimator.init_menu(main_menu);
-->
</script>
</td>
</tr>
<tr>
<td id="tree_view_td">
SVG Tree View
<hr />
<div id="tree_view"></div>
<div id="attribute_selector">
<h3 id="element_id"></h3>
<div id="element_attributes"></div>
</div>
</td>
<td id="svg_td">
<object id="the_svg" type="image/svg+xml" onload="javasctipt:vectimator.build_tree_view()" />
</td>
<td id="keyed_properties">Keyed Properties<hr /></td>
</tr>
</tr>
<td colspan="3" id="timeline">[timeline]</td>
</tr>
</table>
<!-- Pop Ups -->
<div style="display:none">
<div id="open_svg_popup">
<div class="popup">
<h2>Open SVG File</h2>
<br /><br />
<div style="text-align:center">
<form action="#">
<input type="file" id="input_open_svg" />
<br /><br /><br />
<input type="button" value="Cancel" onclick="javascript:close_popup()" />
|
<input type="button" value="Open" onclick="javascript:vectimator.open('input_open_svg');" />
</form>
</div>
<br />
</div>
</div>
<div id="animation_popup">
<div class="popup">
<h2>Animate SVG Attribute</h2>
<div style="width:60%; margin:0 auto"><h3 id="animation_popup_name"></h3></div>
<input type="hidden" id="animation_popup_id" />
<br />
<form action="#">
<table style="margin:0 auto">
<tr>
<td style="text-align:right">attribute: </td><td><input type="text" id="animation_popup_attribute" readonly="readonly" /></td>
</tr>
<tr>
<td style="text-align:right">from: </td><td><input type="text" id="animation_popup_from" /></td>
</tr>
<tr>
<td style="text-align:right">to: </td><td><input type="text" id="animation_popup_to" /></td>
</tr>
<tr>
<td style="text-align:right">duration: </td><td><input type="text" id="animation_popup_duration" /></td>
</tr>
</table>
<br /><br />
<div style="text-align:center">
<input type="button" value="Cancel" onclick="javascript:close_popup()" />
|
<input type="button" value="Set" onclick="vectimator.add_animation_tag()" />
</div>
</form>
<br />
</div>
</div>
</body>
</html>