-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.xhtml
284 lines (273 loc) · 10.5 KB
/
index.xhtml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!-- -*- Mode: XHTML; tab-width: 2; indent-tabs-mode: nil; -*- -->
<!-- vim:set ft=xhtml ts=2 sw=2 sts=2 autoindent: -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>stav</title>
<link href="static/jquery-theme/jquery-ui-redmond.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="client/lib/head.load.min.js"></script>
<script type="text/javascript">
head.js(
// libraries
'client/lib/jquery.min.js',
'client/lib/jquery-ui.min.js',
'client/lib/jquery.svg.min.js',
'client/lib/jquery.svgdom.min.js',
'client/lib/jquery.ba-bbq.min.js',
'client/lib/jquery.sprintf.js',
'client/lib/jquery.json.min.js',
// helpers
'client/src/util.js',
// modules
'client/src/dispatcher.js',
'client/src/url_monitor.js',
'client/src/ajax.js',
'client/src/visualizer.js',
'client/src/visualizer_ui.js',
'client/src/spinner.js'
);
head.ready(function() {
var dispatcher = new Dispatcher();
var urlMonitor = new URLMonitor(dispatcher);
var ajax = new Ajax(dispatcher);
var visualizer = new Visualizer(dispatcher, 'svg');
var svg = visualizer.svg;
var visualizerUI = new VisualizerUI(dispatcher, svg);
var spinner = new Spinner(dispatcher, '#spinner');
dispatcher.post('init');
});
</script>
<link rel="stylesheet" type="text/css" href="style.css"/>
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<body>
<img id="spinner" src="static/img/spinner.gif"/>
<div id="messages"/>
<div id="commentpopup"/>
<div id="header" class="ui-widget">
<div id="mainHeader" class="ui-widget-header">
<div id="pulldownArrow">⇓</div>
<div id="mainlogo" class="logo unselectable">stav</div>
<div id="document_name">
<input readonly="readonly" class="ui-widget-header"/>
</div>
<!-- <span id="document_ctime"/> -->
</div>
<div id="pulldown" class="unselectable ui-widget-content">
<div id="pulldown_padder">
<div>
<input id="auth_button" type="button" value="Login"/>
<input id="collection_browser_button" type="button" value="Collection" tabindex="-1" title="Open Collection Browser (Tab)"/>
<!-- <input id="export_button" type="button" value="Export"/> -->
<!--
<input id="search_button" type="button" class="login" value="Search" tabindex="-1" title="Search annotations in current collection"/>
-->
<input id="search_button" type="checkbox" class="login" value="true" tabindex="-1"/><label for="search_button" title="Search annotations in current collection">Search</label>
<!-- <input id="tag_button" type="button" value="Tag (NERsuite)"/> -->
<span><input id="abbrev_mode" type="checkbox" value="true" checked="checked"/><label for="abbrev_mode" title="Toggle the abbreviation mode">Abbreviations</label></span>
</div>
<div id="document_mtime" class="unselectable"/>
<div>
Download: <span id="source_files"/><span id="download_svg">,
<a id="download_svg_color" target="svg"> svg</a>
</span>
</div>
</div>
</div>
</div>
<div id="svg"></div>
<form id="search_form" class="dialog" title="Search">
<div id="search_tabs">
<ul>
<li><a href="#search_tab_text">Text</a></li>
<li><a href="#search_tab_entity">Entity</a></li>
<li><a href="#search_tab_event">Event</a></li>
<li><a href="#search_tab_relation">Relation</a></li>
</ul>
<div id="search_tab_text">
<table class="fullwidth">
<tr>
<td>Text</td>
<td>
<input id="search_form_text_text" class="fullwidth"
placeholder="Text to match"/>
</td>
</tr>
</table>
</div>
<div id="search_tab_entity">
<table class="fullwidth">
<tr>
<td>Type</td>
<td>
<select id="search_form_entity_type"/>
</td>
</tr>
<tr>
<td>Text</td>
<td>
<input id="search_form_entity_text" class="fullwidth"
placeholder="Text to match (empty=anything)"/>
</td>
</tr>
</table>
</div>
<div id="search_tab_event">
<table class="fullwidth">
<tr>
<td>Type</td>
<td colspan="3">
<select id="search_form_event_type"/>
</td>
</tr>
<tr>
<td>Trigger</td>
<td colspan="3">
<input id="search_form_event_trigger" class="fullwidth"
placeholder="Text to match (empty=anything)"/>
</td>
</tr>
<tbody id="search_form_event_roles"/>
</table>
</div>
<div id="search_tab_relation">
<table class="fullwidth">
<tr>
<td>Type</td>
<td>
<select id="search_form_relation_type" class="fullwidth"/>
</td>
</tr>
<tr>
<td>Arg1</td>
<td>
<select id="search_form_relation_arg1_type" class="fullwidth"/>
</td>
<td>
<input id="search_form_relation_arg1_text" class="fullwidth"
placeholder="Text to match (empty=anything)"/>
</td>
</tr>
<tr>
<td>Arg2</td>
<td>
<select id="search_form_relation_arg2_type" class="fullwidth"/>
</td>
<td>
<input id="search_form_relation_arg2_text" class="fullwidth"
placeholder="Text to match (empty=anything)"/>
</td>
</tr>
</table>
</div>
</div>
</form>
<form id="viewspan_form" class="dialog" title="Span">
<fieldset id="viewspan_selected_fset">
<legend>Selected Text</legend>
<a target="brat_linked" id="viewspan_highlight_link" href="#">Link</a>
<div id="viewspan_selected"/>
</fieldset>
<fieldset>
<legend>Search</legend>
<a target="brat_search" id="viewspan_uniprot" href="#">UniProt</a>,
<a target="brat_search" id="viewspan_entregene" href="#">EntrezGene</a>,
<a target="brat_search" id="viewspan_wikipedia" href="#">Wikipedia</a>,
<a target="brat_search" id="viewspan_google" href="#">Google</a>,
<a target="brat_search" id="viewspan_alc" href="#">ALC</a>
</fieldset>
<fieldset>
<legend>Notes</legend>
<input id="viewspan_notes" class="borderless" readonly="readonly"/>
</fieldset>
</form>
<form id="span_form" class="dialog" title="Span">
<fieldset id="span_selected_fset">
<legend>Selected Text</legend>
<a target="brat_linked" id="span_highlight_link" href="#">Link</a>
<div id="span_selected"/>
</fieldset>
<fieldset>
<legend>Search</legend>
<a target="brat_search" id="span_uniprot" href="#">UniProt</a>,
<a target="brat_search" id="span_entregene" href="#">EntrezGene</a>,
<a target="brat_search" id="span_wikipedia" href="#">Wikipedia</a>,
<a target="brat_search" id="span_google" href="#">Google</a>,
<a target="brat_search" id="span_alc" href="#">ALC</a>
</fieldset>
<div id="span_types" class="scroll_fset"/>
<div id="span_attributes" class="scroll_fset">
<fieldset>
<legend>Event Attributes</legend>
<div class="scroller"/>
</fieldset>
</div>
<fieldset>
<legend>Notes</legend>
<input id="span_notes" class="borderless"/>
</fieldset>
</form>
<form id="arc_form" class="dialog" title="Arc">
<fieldset id="arc_origin_fset">
<legend>From</legend>
<a target="brat_linked" id="arc_highlight_link" href="#">Link</a>
<div id="arc_origin"/>
</fieldset>
<fieldset id="arc_target_fset">
<legend>To</legend>
<div id="arc_target"/>
</fieldset>
<div id="arc_roles" class="scroll_fset">
<fieldset>
<legend>Role Types</legend>
<div class="scroller"/>
</fieldset>
</div>
<fieldset>
<legend>Notes</legend>
<input id="arc_notes" class="borderless"/>
</fieldset>
</form>
<form id="auth_form" class="dialog" title="Login">
<fieldset>
<legend>Username</legend>
<input id="auth_user" placeholder="Username" class="borderless"/>
</fieldset>
<fieldset>
<legend>Password</legend>
<input id="auth_pass" type="password" placeholder="Password" class="borderless"/>
</fieldset>
</form>
<form id="split_form" class="dialog" title="Split the Span">
<fieldset>
<legend>Split Roles</legend>
<div id="split_roles" class="scroll_fset"/>
</fieldset>
</form>
<form id="collection_browser" class="dialog" title="Open">
<fieldset>
<legend>Collection</legend>
<input id="collection_input" readonly="readonly" placeholder="Document" class="borderless"/>
</fieldset>
<fieldset>
<legend>Document</legend>
<input id="document_input" placeholder="Document" class="borderless"/>
</fieldset>
<table id="document_select" class="ui-widget unselectable">
<thead class="ui-widget-header"/>
<tbody class="ui-widget-content"/>
</table>
</form>
<div id="waiter" class="dialog" title="Please wait">
<img src="static/img/spinner.gif"/>
</div>
<div id="about" class="dialog unselectable" title="About stav">
<div id="aboutlogo" class="logo">stav</div>
<div align="center">Stav text annotation visualizer</div>
<p>Stav is Open Source software, distributed under the <a target="licence" href="http://www.opensource.org/licenses/mit-license">MIT Licence</a>.</p>
<div id="copyright">© 2010-2011 The stav contributors</div>
</div>
</body>
</html>