forked from sjcporter/CapabilityMaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
expertsmap.html
306 lines (249 loc) · 16.3 KB
/
expertsmap.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
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>CU Expert Connect</title>
<link rel="stylesheet" href="complete.css">
<!-- Not sure what the following 2 css files were used for -->
<!--link rel="stylesheet" href="edit.css"-->
<!--link rel="stylesheet" href="screen.css"-->
<link rel="stylesheet" href="custom2.css">
<link rel="stylesheet" type="text/css" href="graph.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery.color.js"></script>
<script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script>
<script language="javascript" type="text/javascript" src="jsr_class.js"></script>
<script language="javascript" type="text/javascript" src="graph_new.js"></script>
<!-- following script is for side panels -->
<script type="text/javascript">
var isSafari = navigator.vendor && navigator.vendor.indexOf('Apple') > -1 &&
navigator.userAgent && !navigator.userAgent.match('CriOS');
var bstatmsg ="";
var statmsg = "";
$(document).ready(function(){
$(".trigger").click(function(){
$(".panel").toggle("fast");
$(this).toggleClass("active");
$(".panel2").hide("fast");
$(".trigger2").removeClass("active");
$(".panel3").hide("fast");
$(".trigger3").removeClass("active");
return false;
});
$(".trigger2").click(function(){
$(".panel2").toggle("fast");
$(this).toggleClass("active");
$(".panel").hide("fast");
$(".trigger").removeClass("active");
$(".panel3").hide("fast");
$(".trigger3").removeClass("active");
return false;
});
$(".trigger3").click(function(){
$(".panel3").toggle("fast");
$(this).toggleClass("active");
$(".panel").hide("fast");
$(".trigger").removeClass("active");
$(".panel2").hide("fast");
$(".trigger2").removeClass("active");
return false;
});
// Display warning if browser is Safari
if (isSafari) {
var bstatmsg = "It looks like you are using Safari. This web page is optimized for Chrome, Firefox, or IE 11. Please use one of those browsers for an optimal experience"
$('#statusmessage').text(bstatmsg);
$(".panel").hide("fast");
$(".trigger").removeClass("active");
$(".panel").toggle("fast");
$(".trigger").toggleClass("active");
$(".panel3").hide("fast");
$(".trigger3").removeClass("active");
$(".panel2").hide("fast");
$(".trigger2").removeClass("active");
}
});
</script>
<style>
</style>
</head>
<body>
<div id="main-map">
<!-- div class="wrapper"-->
<!--div id="wrapper-content" role="main"-->
<!--div class="main" id="main-content" role="main"-->
<!--div class="col-8"-->
<!--[if lte IE 8]>
<p class="ie-alert">This site uses HTML elements that are not recognized by Internet Explorer 8 and below. As a result, the site will not be rendered appropriately. To correct this, please upgrade to Internet Explorer 9, or use another browser.</p>
<[endif]-->
<div id="headarea">
<div-- id="toptxt">
<div id="beta"><img style="width: 70px;margin-top: 2px" src="beta.png"></div>
<div id="appname">CU Experts Map</div>
<!--div id="beta" ><h3> <div id="betabutton" style="background-color: red">beta</div> <div id="betatext">Improvements coming soon</div> </h3></div-->
<div id="queryform">
<input name="query" id="query" list="rtopiclist" size="34" accesskey="q" type="text" onkeydown="queryKeyDown(event);">
<datalist id="rtopiclist">
<select style="display:none;"></select>
</datalist>
<!-- hide cutoff for now -->
<label style="visibility: hidden" id="cutofflabel" for="queryCutoff">Cutoff:</label>
<input style="visibility: hidden" id="queryCutoff" name="queryCutoff" type="text" title="Cutoff" value="10000" >
<input type="submit" value="Search" id="add" type="button" onclick="addKwd();">
<input value="Reset" id="resetButton" type="submit" onclick="reset()" disabled>
</div> <!-- id="queryform" -->
</div> <!--queryform -->
<div id="instrtxt">
<BR> Build a map of experts by typing in related research terms.
<a style="color: blue; display:inline-block; float:right; line-height:32px; height:32px; cursor:pointer" onclick="showhideadvanced(this)">Show advanced</a>
<a style="color: blue; margin-right: 50px; display:inline-block; float:right; line-height:32px; height:32px; cursor:pointer" HREF="mailto:vivo@colorado.edu?subject=CU Experts Feedback&body=Dear User,%0D%0A%0D%0AWhile the CU Experts Map is in beta, we value feedback from your experience.%0D%0APlease tell us here if there are features you would like to see and how you are using this information.%0D%0A
%0D%0AThanks very much,%0D%0A
The FIS Team at CU Boulder">Give us feedback</a>
</div>
<hr style="clear:both;">
<div class="advanced" id="advanced_options">
<p>
<label>Color scheme:</label>
<select id="colorScheme">
<option value="white">White</option>
<option value="black">Black</option>
</select>
<label>Link color:</label>
<select id="linkColor">
<option value="#D0D0D0">Lightest</option>
<option value="#B8B8B8" selected>Light</option>
<option value="#999">Medium</option>
<option value="#777">Medium-Dark</option>
<option value="#555">Dark</option>
</select>
<label>Gravity:</label>
<input type="text" id="graph_gravity" value="1" style="width:25px">
<label>Charge:</label>
<input type="text" id="graph_charge" value="-1500">
<label>Link distance:</label>
<input type="text" id="graph_linkdistance" value="40" style="width:25px">
<input type="submit" onclick="render()" value="Re-render">
<input type="submit" onclick="restoreDefaults()" value="Default">
</p>
</div>
</div>
<!-- Tier bar customisation -->
<!--hr-->
<div id="container">
<!-- side panel div coe -->
<div class="leftpanel">
<div class="leftpanelcontainer1" >
<div class="panel" id="StatusPanel" style="color:black">
<div class="leftpanelcontent">
<div id="statusmessage">
<h3Status</h3>
No query has been run to populate the expert map yet. Please type in a search term to get started.
</div>
</div>
<div style="clear:both;"></div>
<div class="columns"> </div>
<div style="clear:both;"></div>
</div>
</div>
<a class="trigger" href="#StatusPanel">Status</a>
<!-- end side panel div code -->
<div class="leftpanelcontainer1" >
<div class="panel2" id="HelpPanel" style="color:black">
<div class="leftpanelcontent">
<h3>Help</h3>
<ul>
<li>Select research terms of interest on the Terms side bar at the right side of the page.</li>
<li>Associated Research Terms are related to at least one of the experts already in the map. The map can be used to remove or expand lists of experts.</li>
<li>If you don’t see the terms you are interested in, type them in the search bar above the Map to add them.</li>
<li>Click on nodes on the map to see faculty with those research interests and their affiliated units (groups). See the Info tab at the right side of the page to view profile details about these specific faculty experts.</li>
<li>If desired, choose CSV from the Export tab to download results from the Map you created.</li>
</ul>
</div>
<div style="clear:both;"></div>
<div class="columns"> </div>
<div style="clear:both;"></div>
</div>
</div>
<a class="trigger2" href="#HelpPanel">Help</a>
<!-- side panel div coe -->
<div class="leftpanelcontainer1" >
<div class="panel3" id="LegendPanel" style="color:black">
<div class="leftpanelcontent">
<h3>Legend</h3>
<img src="key-cub1.png" alt="Key">
</div>
<div style="clear:both;"></div>
<div class="columns"> </div>
<div style="clear:both;"></div>
</div>
</div>
<a class="trigger3" href="#LegendPanel">Legend</a>
</div>
<!-- end side panel div code -->
<div id="center-container">
<div id="log"></div>
<div id="infovis"></div>
<div class="progress"><div id="progressbar"></div></div>
<script type="text/javascript">
var progressBar = new ProgressBar($("#progressbar"));
</script>
</div>
<div id="right-container">
<div class="tabs">
<ul class="titles">
<li><a href="#demo">Terms</a></li>
<li><a href="#logg">Info</a></li>
<li><a href="#extractData">Export</a></li>
</ul>
<div class="result_body">
<div class="result_section" id="demo">
<h2>Terms Displayed</br>Click to remove term from map</h2>
<ul id="log_printout">
<li>This panel displays a list of the search terms currently
on the map. Search for something to begin.</li>
</ul>
<h2>Associated Research Terms<br>Click to add to the map</h2>
<ul id="other_terms">
<li>This panel displays a list of the search terms associated with other researchers
on the map. Search for something to begin.</li>
</ul>
</div>
<div class="result_section" id="logg">
<div id="inner-details">
<p>
This panel displays information about individual
search terms and groups. Click on a group to display
its information.
</p>
</div>
</div>
<div class="result_section" id="extractData">
<h2>Export Data</h2>
<p>
Import:
<!--button disabled>SVG</button-->
<button onclick="importGraphDetails();">JSON</button>
<br>
Export:
<!--button onclick="generateGraphSVG();">SVG</button-->
<button id="json" onclick="download(g.export(), 'cuexperts.json')">JSON</button>
<button id="csv" onclick="download(g.toPersonList(), 'cuexperts.csv')">CSV</button>
<!--button onclick="download(g.toDOT(), 'gv')">DOT</button-->
</p>
<textarea id="graphDetails" style="width:99%; height:450px; border:1px solid #EEE; padding:0px;"></textarea>
</div>
</div>
</div>
</div>
<form id="download" method="post" style="display:none">
<textarea name="content" id="exportContent"></textarea>
</form>
<!--/div-->
<!--/div-->
<!--/div-->
<!--/div--> <!-- #wrapper-content -->
<hr class="g-clear-floats" />
</div>
</body>
</html>