-
Notifications
You must be signed in to change notification settings - Fork 114
/
index.html
153 lines (142 loc) · 5.11 KB
/
index.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="graph-diagram.js"></script>
<link rel="stylesheet" href="lib/bootstrap.css" type="text/css">
<link rel="stylesheet" href="style/graph-diagram.css" type="text/css">
<link rel="stylesheet" class="graph-style" href="style/graph-style-chunky.css" type="text/css">
<link rel="stylesheet" href="style/graph-editor.css" type="text/css">
<script type="text/javascript" src="graph-editor.js"></script>
<script type="text/javascript" src="cypher.js"></script>
<title>Arrow Tool</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push( ['_setAccount', 'UA-9292365-1'] );
_gaq.push( ['_trackPageview'] );
(function ()
{
var ga = document.createElement( 'script' );
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName( 'script' )[0];
s.parentNode.insertBefore( ga, s );
})();
</script>
</head>
<body>
<div class="tools form-inline well">
<button class="btn" id="add_node_button"><i class="icon-plus"></i> Node</button>
<button class="btn" id="exportToArrowsAppButton">Try Arrows.app <span class="label label-success">New!</span></button>
<button class="btn" id="exportCypherButton">Export Cypher</button>
<button class="btn" id="exportMarkupButton">Export Markup</button>
<a class="btn" id="downloadSvgButton" download="arrows.svg">Download SVG</a>
<button class="btn" id="chooseStyleButton">Choose Style</button>
<label for="internalScale">Internal Scale</label>
<input id="internalScale" type="range" min="0.1" max="5" value="1" step="0.01">
</div>
<!--<input id="node_name_editor" class="editor-field">-->
<div class="modal hide export-markup">
<div class="modal-header">
<h3>Edit/Export markup</h3>
</div>
<div class="modal-body">
<textarea class="code">Some text</textarea>
</div>
<div class="modal-footer">
<a href="#" class="btn cancel">Cancel</a>
<a href="#" class="btn btn-primary" id="save_markup">Save</a>
</div>
</div>
<div class="modal hide choose-style">
<div class="modal-header">
<h3>Choose Style</h3>
</div>
<div class="modal-body">
<label class="radio">
<input type="radio" name="styleChoice" value="graph-style-chunky.css" checked>
Chunky
</label>
<label class="radio">
<input type="radio" name="styleChoice" value="graph-style-bootstrap.css">
Bootstrap
</label>
</div>
<div class="modal-footer">
<a href="#" class="btn cancel">Cancel</a>
<a href="#" class="btn btn-primary" id="saveStyle">Save</a>
</div>
</div>
<div class="modal hide pop-up-editor node" tabindex="-1">
<div class="modal-header">
<h3>Edit Node</h3>
</div>
<div class="top-right-btn-bar">
<button class="btn btn-danger" id="edit_node_delete">Delete</button>
</div>
<div class="modal-body">
<div class="form-horizontal">
<div class="control-group">
<label class="control-label" for="node_caption">Caption</label>
<div class="controls">
<input id="node_caption" type="text" value="A">
</div>
</div>
<div class="control-group">
<label class="control-label" for="node_properties">Properties</label>
<div class="controls">
<textarea id="node_properties" rows="6"></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn cancel">Cancel</a>
<a href="#" class="btn btn-primary" id="edit_node_save">Save</a>
</div>
</div>
<div class="modal hide pop-up-editor relationship" tabindex="-1">
<div class="modal-header">
<h3>Edit Relationship</h3>
</div>
<div class="top-right-btn-bar">
<button class="btn" id="edit_relationship_reverse">Reverse</button>
<button class="btn btn-danger" id="edit_relationship_delete">Delete</button>
</div>
<div class="modal-body">
<div class="form-horizontal">
<div class="control-group">
<label class="control-label" for="relationship_type">Type</label>
<div class="controls">
<input id="relationship_type" type="text" value="R">
</div>
</div>
<div class="control-group">
<label class="control-label" for="relationship_properties">Properties</label>
<div class="controls">
<textarea id="relationship_properties" rows="6"></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn cancel">Cancel</a>
<a href="#" class="btn btn-primary" id="edit_relationship_save">Save</a>
</div>
</div>
<div class="modal hide export-cypher">
<div class="modal-header">
<h3>Export as Cypher</h3>
</div>
<div class="modal-body">
<textarea class="code">Some Text</textarea>
</div>
<div class="modal-footer">
<a href="#" class="btn cancel btn-primary">Close</a>
<a href="#" target="_blank" class="btn" id="open_console">Open in Console</a>
</div>
</div>
<div id="canvas"></div>
</body>
</html>