-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph.html
More file actions
558 lines (518 loc) · 20.7 KB
/
graph.html
File metadata and controls
558 lines (518 loc) · 20.7 KB
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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<!doctype html>
<html>
<head>
<title>Hello </title>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="viewport" content="target-densitydpi=device-dpi" />
<meta name="HandheldFriendly" content="true"/>
<!-- BEGIN INDIANA UNIVERSITY BRANDING BAR AND FOOTER <HEAD> ELEMENTS -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="./_iu-brand/css/base.css" rel="stylesheet" type="text/css" />
<link href="./_iu-brand/css/wide.css" media="(min-width: 900px)" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="./bower/octicons/octicons/octicons.css">
<!--[if (lte IE 8) & (!IEMobile)]>
<link href="./_iu-brand/css/fixed.css" media="screen" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link href="./_iu-brand/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<link href="./_iu-brand/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!-- END INDIANA UNIVERSITY BRANDING BAR AND FOOTER <HEAD> ELEMENTS -->
<link href='http://fonts.googleapis.com/css?family=Lobster|Architects+Daughter' rel='stylesheet' type='text/css'>
<link rel=stylesheet href="./bower/bootstrap/dist/css/bootstrap.min.css" type='text/css'>
<link rel=stylesheet href="./stylesheets/fixes.css" type='text/css'>
<link rel=stylesheet href="./stylesheets/app.css" type='text/css'>
<link rel=stylesheet href="./stylesheets/graph.css" type='text/css'>
<link rel=stylesheet href="./stylesheets/sidebar.css" type='text/css'>
<link rel=stylesheet href="./bower/hint.css/hint.css" type='text/css'>
</head>
<body>
<!-- BEGIN INDIANA UNIVERSITY BRANDING BAR -->
<div id="branding-bar">
<div class="bar">
<div class="wrapper">
<p class="campus">
<a href="http://www.iub.edu/">
<img src="./_iu-brand/img/trident-tab.gif" height="73" width="64" alt=" " />
<span class="line-break">Indiana University</span> Bloomington
</a>
</p>
</div>
</div>
</div>
<!-- END INDIANA UNIVERSITY BRANDING BAR -->
<!-- Begin of Top Bar -->
<div class="mini">
<div id="top-bar-wrapper">
<div id="top-bar">
<div class="top-bar-panel panel-left">
</div>
<div class="top-bar-panel panel-center">
<div id="logo">
<div class="logo-left"></div>
<div class="logo-left-top"></div>
<div class="logo-right"></div>
<div class="logo-right-top"></div>
<div class="logo-title">
<a href="http://www.cogs.indiana.edu/">
<div class="logo-title-text">Cognitive Science</div>
<div class="logo-title-text logo-title-years">25th</div>
<div class="logo-title-text">Anniversary</div>
</a>
</div>
</div>
</div>
<div class="top-bar-panel panel-right">
</div>
</div>
</div>
</div>
<div id="main">
<div id="wrapper" class="toggled">
<div id="sidebar-wrapper"><div id="filters" class="no-select opened"></div></div>
<div id="page-content-wrapper">
<div class="container-fluid">
<div id="unsupported" class="hidden">
<p>Sorry, your browser is currently not supported. Please visit this page with one of the following browsers:</p>
<p>* Chrome (version >= 30)</p>
<p>* Safari (version >= 7)</p>
<p>* Firefox (version >= 25)</p>
<p>* IE (version >= 9)</p>
</div>
<div id="loading"></div>
<div id="graph">
<div class="svg"></div>
<div id="search">
<div class="input pannel input-group">
<a href="#menu-toggle" class="btn btn-default input-group-addon" id="menu-toggle">
<span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
</a>
<input class="no-focus" type="text" placeholder="Search Author"></input>
<button class="clear-input no-focus empty-btn"><span class="octicon octicon-x"></span></button>
</div>
<div class="results pannel">
</div>
<div class="profile pannel">
<div class="button close"><a href="#"><span class="octicon octicon-x"></span></a></div>
<div class="content">
</div>
</div>
</div>
<div id="zoom" class="pannel no-select">
<!-- <div class="display"><span class="number">100</span><div class="sign">%</div></div> -->
<div class="button zoom-in"><span class="octicon octicon-plus"></span></div>
<div class="button zoom-out"><span class="octicon octicon-dash"></span></div>
<div class="button reset"><span class="octicon octicon-primitive-dot"></span></span></div>
</div>
<div id="help" class="clearfix no-select">
<div class="rounded-button pannel">?</div>
</div>
<div id="status" class="pannel no-select">
<!-- <div class="status-show-options-btn opened">
<span class="octicon octicon-chevron-down"></span>
<span class="octicon octicon-chevron-up"></span>
</div>-->
<div class="info">
</div>
</div>
<div id="legend">
</div>
</div>
</div>
<!-- BEGIN INDIANA UNIVERSITY FOOTER -->
<div id="footer" role="contentinfo" class="hidden">
<div class="wrapper">
<p class="internal"><a href="#">Privacy Notice</a></p>
<p class="copyright">
<a href="http://www.iu.edu/" class="block-iu"><img src="./_iu-brand/img/block-iu.png" height="26" width="22" alt="Block IU" /></a>
<span class="line-break">
<a href="http://www.iu.edu/copyright/index.shtml">Copyright</a> ©
<script type="text/javascript">
var theDate=new Date()
document.write(theDate.getFullYear())
</script>
</span>
<span class="line-break">The Trustees of <a href="http://www.iu.edu/">Indiana University</a>,</span>
<span class="line-break"><a href="http://www.iu.edu/copyright/complaints.shtml">Copyright Complaints</a></span>
</p>
</div>
</div>
<!-- END INDIANA UNIVERSITY FOOTER -->
</div>
</div>
</div>
<div id="detailed-profile"></div>
<script id="detailed-profile-template" type="text/x-handlebars-template">
<div class="modal bs-example-modal-lg" tabindex="-1" role="dialog"
aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="octicon octicon-x"></span>
</button>
<div class="author clearfix">
<div class="headshot" style="background: url('{{headshotUrl}}') center center no-repeat; background-size: 100%;"></div>
<div class="info">
<h2>{{name}}</h2>
<p>{{department}}</p>
<p>
{{#if profileLink}}
<a href="{{profileLink}}">Profile</a>
{{else}}
<a href="mailto:{{email}}">{{email}}</a>
{{/if}}
</p>
</div>
</div>
</div>
<div class="citations">
<h3 class="modal-title" id="myLargeModalLabel">Representative Publications</h3>
<div class="citations-section hidden">
{{#each repPublications}}
<p>{{{apa}}}</p>
{{else}}
<p>No publications found.</p>
{{/each}}
</div>
</div>
</div>
</div>
</div>
</script>
<div id="detailed-link"></div>
<script id="detailed-link-template" type="text/x-handlebars-template">
<div class="modal bs-example-modal-lg" tabindex="-1" role="dialog"
aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="octicon octicon-x"></span>
</button>
<div class="clearfix">
{{#each authors}}
<div class="author clearfix">
<div class="headshot" style="background: url('{{headshotUrl}}') center center no-repeat; background-size: 100%;"></div>
<div class="info">
<h2>{{name}}</h2>
<p>{{department}}</p>
<p>
{{#if profileLink}}
<a href="{{profileLink}}">Profile</a>
{{else}}
<a href="mailto:{{email}}">{{email}}</a>
{{/if}}
</p>
</div>
</div>
{{/each}}
</div>
</div>
<div class="citations hidden">
{{#if citations}}
<h3 class="modal-title" id="myLargeModalLabel">Co-authored Publications</h3>
<div class="citations-section">
{{#each citations}}
<p>{{{apa}}}</p>
{{/each}}
</div>
{{/if}}
{{#if committees}}
<h3 class="modal-title" id="myLargeModalLabel">Dissertation Committees</h3>
<div class="citations-section">
{{#each committees}}
<p><strong>{{title}}</strong><br/>{{author}} (Author)<br/>{{members}}</p>
{{/each}}
</div>
{{/if}}
</div>
</div>
</div>
</div>
</script>
<!-- BEGIN TEMPLATES -->
<script id="loading-template" type="text/x-handlebars-template">
<div class="wrapper">
<div class="bar-wrapper"><div class="bar">
</div></div>
<p>loading {{nodesLength}} authors</p>
</div>
</script>
<script id="results-template" type="text/x-handlebars-template">
{{#each authors}}
<div class="item clearfix no-select" data-author-name="{{name}}">
<div class="headshot img-circle" style="background:url('{{headshots.imageUrl}}') no-repeat;background-size: {{headshots.colums}}00% {{headshots.rows}}00%; background-position: {{headshot.positionX}}% {{headshot.positionY}}%; border: 2px solid {{styles.circleStroke}}"></div>
{{#if searchDept}}
<div class="name_dept">
<div class="name">
{{#each searchName}}<span class="{{#if isMatch}}match{{/if}}">{{text}}</span>{{/each}}
</div>
<div class="dept">
{{#each searchDept}}<span class="{{#if isMatch}}match{{/if}}">{{text}}</span>{{/each}}
</div>
</div>
{{else}}
<div class="name">
{{#each searchName}}<span class="{{#if isMatch}}match{{/if}}">{{text}}</span>{{/each}}
</div>
{{/if}}
</div>
{{else}}
<div class="item clearfix no-select"><i>No Match</i></div>
{{/each}}
</script>
<script id="profile-template" type="text/x-handlebars-template">
<div class="author clearfix" data-id="{{id}}">
<div class="headshot" style="background: url('{{headshotUrl}}') center center no-repeat; background-size: 100%;"></div>
<div class="info">
<h2>{{name}}</h2>
{{#if titles}}
<p>{{titles}}{{#if department}}, {{department}}{{/if}}</p>
{{else}}
<p>{{department}}</p>
{{/if}}
<p>
{{#if profileLink}}
<a href="{{profileLink}}">Profile</a>
{{else}}
<a href="mailto:{{email}}">{{email}}</a>
{{/if}}
</p>
</div>
</div>
{{#if relations}}
<div class="collaborators clearfix">
<h3>Collaborators</h3>
{{#each relations}}
<div data-id="{{link.id}}" class="headshot img-circle" style="background:url('{{author.headshots.imageUrl}}') no-repeat;background-size: {{author.headshots.colums}}00% {{author.headshots.rows}}00%; background-position: {{author.headshot.positionX}}% {{author.headshot.positionY}}%; border: 2px solid {{author.styles.circleStroke}}"></div>
{{/each}}
</div>
{{/if}}
<div class="citations">
<h3>Representative Publications</h3>
{{#if hasMoreRepPublications}}<a href="#" class="more">More</a>{{/if}}
<div class="citations-section">
{{#each topRepPublications}}
<div class="citation">
<p>{{{apa}}}</p>
</div>
{{else}}
<div class="citation">
<p><i>No publications found.</i></p>
</div>
{{/each}}
</div>
</div>
</script>
<script id="citations-template" type="text/x-handlebars-template">
{{#each authors}}
<div class="author clearfix" data-id="{{id}}">
<div class="headshot" style="background: url('{{headshotUrl}}') center center no-repeat; background-size: 100%;"></div>
<div class="info">
<h2>{{name}}</h2>
<p>{{department}}</p>
<p>
{{#if profileLink}}
<a href="{{profileLink}}">Profile</a>
{{else}}
<a href="mailto:{{email}}">{{email}}</a>
{{/if}}
</p>
</div>
</div>
{{/each}}
{{#if topCitations}}
<div class="citations">
<h3>Co-authored Publications</h3>
{{#if hasMoreCoPublications}}<a href="#" class="more">More</a>{{/if}}
{{#each topCitations}}
<div class="citation">
<p>{{{apa}}}</p>
</div>
{{/each}}
</div>
{{/if}}
{{#if committees}}
<div class="citations">
{{#if hasMoreCommittees}}<a href="#" class="more">More</a>{{/if}}
- {{#each committees}}
- <p><strong>{{title}}</strong><br/>{{author}} (Author)<br/>{{members}}</p>
- {{/each}}
</div>
{{/if}}
{{#if advCommittees}}
<div class="citations">
<h3>Advisor/ Advisee</h3>
{{#each advCommittees}}
<p>
<strong>Chair: </strong>{{chair}}<br/>
<strong>Advisee: </strong> {{advisee}}<br/>
<strong>{{title}}</strong><br/>
{{members}}
</p>
{{/each}}
</div>
{{/if}}
</script>
<script id="legend-template" type="text/x-handlebars-template">
Indiana University - Cognitive Science - 2015
</script>
<script id="graph-headshots-template" type="text/x-handlebars-template">
<svg>
<defs>
<defs>
{{#each headshots}}
<pattern patternTransform="translate({{translateX}}, {{translateY}})" id="headshot-{{username}}" patternUnits="userSpaceOnUse" width="{{../width}}" height="{{../height}}">
<image xlink:href="{{../imageUrl}}"
width="{{../width}}" height="{{../height}}" />
</pattern>
{{/each}}
</defs>
</defs>
</svg>
</script>
<script id="status-info-template" type="text/x-handlebars-template">
{{#if nothing}}
No user matches the current settings.
{{else}}
Showing
{{#each commas}}
<span class="status color-{{type}}">{{title}}</span>,
{{/each}}
<span class="status color-{{last.type}}">{{last.title}}</span>
{{/if}}
</script>
<script id="testTemplate" type="text/x-handlebars-template">
<div class="button close"><a href="#"><span class="octicon octicon-x"></span></a></div>
<div class="users filters-section2">
{{#each d}}
{{#if @first}}
<div id="test-{{code}}">
<p>Code: {{code}}</p>
<div class="count"></div>
</div>
{{/if}}
{{/each}}
</div>
</script>
<script id="filter-options-template" type="text/x-handlebars-template">
<div class="users filters-section">
<h3>Users</h3>
<div class="clearfix"></div>
<div class="options">
{{#each status}}
<span class="status bg-color-{{type}} filter-{{type}}" data-type="{{type}}">{{title}} <span class="count">{{count}}</span></span>
{{/each}}
</div>
</div>
<div class="departments filters-section">
<h3>Departments</h3>
<!-- <input class="search" type="text"></input> -->
<div class="options">
<div class="department-checkbox all">
<input type="checkbox" value="all" checked="checked" id="input-filter-all"/>
<div class="title"><label for="input-filter-all">All</label></div>
</div>
{{#each departments}}
<div class="department-checkbox filter-{{code}}">
<input type="checkbox" value="{{code}}" checked="checked" id="input-filter-{{code}}"/>
<div class="title"><label for="input-filter-{{code}}">{{title}} <span class="count">{{count}}</span></label></div>
</div>
{{/each}}
</div>
</div>
</script>
<div id="help-dialog"></div>
<script id="help-template" type="text/x-handlebars-template">
<div class="modal bs-example-modal-lg" tabindex="-1" role="dialog"
aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="octicon octicon-x"></span>
</button>
<div class="content ">
<h3>Users</h3>
<div class="users section clearfix">
<div class="circle circle-faculty"></div>
<span class="color-faculty">Faculty</span>
<div class="circle circle-alumni"></div>
<span class="color-alumni">Alumni</span>
<div class="circle circle-grad"></div>
<span class="color-grad">Grad Students</span>
<div class="circle circle-undergrad"></div>
<span class="color-undergrad">Undergraduate Students</span>
</div>
<h3>Relations</h3>
<div class="relations section">
<div class="relation clearfix">
<div class="circle"></div>
<svg> <line x1="0" y1="15" x2="150" y2="15" stroke="#DDD" stroke-width="4"></line> </svg>
<div class="circle"></div>
<div class="text">Co-Authored</div>
</div>
<div class="relation clearfix">
<div class="circle"></div>
<svg> <line x1="0" y1="15" x2="150" y2="15" stroke="#DDD" stroke-width="4" stroke-dasharray="10,5"></line> </svg>
<div class="circle"></div>
<div class="text">Dissertation Committees</div>
</div>
<div class="relation clearfix">
<div class="circle"></div>
<svg> <line x1="0" y1="15" x2="150" y2="15" stroke="#DDD" stroke-width="4" stroke-dasharray="20,3,3,3,3,3"></line> </svg>
<div class="circle"></div>
<div class="text">Co-Authored & Dissertation Committees</div>
</div>
</div>
<div class="screenshot section">
<img src="./images/graph/help-screenshot.png"></img>
<span style="top:47px;left:215px" class="pointer hint--top" data-hint="Click to toggle users by status"></span>
<span style="top:47px;left:245px" class="pointer hint--top" data-hint="User count"></span>
<span style="top:185px;left:220px" class="pointer hint--top" data-hint="Click to toggle users by departments"></span>
<span style="top:185px;left:258px" class="pointer hint--top" data-hint="User count"></span>
<span style="top:332px;left:470px" class="pointer hint--top" data-hint="Reset zoom to 100%"></span>
</div>
</div>
</div>
</div>
</div>
</script>
<!-- END TEMPLATES -->
<script type="text/javascript">
// IE Fixes
(function() {
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn'
];
var length = methods.length;
var console = (window.console = window.console || {});
while (length--) {
var method = methods[length];
console[method] = console[method] || noop;
}
}());
</script>
<script src="./bower/jquery/dist/jquery.min.js" type='text/javascript'></script>
<script src="./bower/bootstrap/dist/js/bootstrap.min.js" type='text/javascript'></script>
<script src="./bower/jquery-sticky/jquery.sticky.js" type='text/javascript'></script>
<script src="./bower/d3/d3.js" type='text/javascript'></script>
<script src="./bower/handlebars/handlebars.js"></script>
<script src="./bower/notify-combined.min.js"></script>
<script src="./bower/mustache/mustache.min.js"></script>
<script src="./bower/EventEmitter.js/EventEmitter.min.js" type='text/javascript'></script>
<script src="./javascripts/d3-relational-graph/d3-relational-graph.js" type='text/javascript'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js" type='text/javascript'></script>
<script src="./javascripts/apa.js" type='text/javascript'></script>
<script src="./javascripts/graph.js" type='text/javascript'></script>
</body>
</html>