-
Notifications
You must be signed in to change notification settings - Fork 0
/
netvis.html
63 lines (60 loc) · 1.8 KB
/
netvis.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
<?xml version="1.0" encoding="UTF-8"?>
<div data-template="templates:surround" data-template-with="templates/datatable.html" data-template-at="datatable">
<style>
#visualization {
background: #fafafa;
height: 700px;
position: relative;
}
#visualization label {
/* overwrite fundament */
margin-bottom: 0;
}
[data-nerv-legend] {
left: 0.4rem;
top: 0.4rem;
}
[data-nerv-export] {
bottom: 0.4rem;
left: 0.4rem;
}
[data-nerv-3d-toggle] {
bottom: 0.8rem;
right: 0.8rem;
}
[data-nerv-filter-controls] {
right: 0.4rem;
top: 0.4rem;
}
[data-nerv-simulation-controls] {
bottom: 0.4rem;
right: 3rem;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js"/>
<script src="https://unpkg.com/react@16/umd/react.production.min.js"/>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"/>
<script src="https://unpkg.com/three@0.126.1/build/three.min.js"/>
<script src="https://unpkg.com/@acdh/network-visualization@0/lib/network-visualization.umd.js"/>
<div class="card">
<div class="card-header" style="text-align:center;">
<h3>
<small>type:</small> <span id="node-type"/> <small>id:</small>
<span id="node-id"/>
</h3>
</div>
<div class="card-body">
<div id="visualization"/>
</div>
</div>
<script src="netvis.js"/>
<script>
var id = findGetParameter('id')
var type = findGetParameter('type')
var header = document.getElementById('node-type')
header.appendChild(document.createTextNode(type))
var header1 = document.getElementById('node-id')
header1.appendChild(document.createTextNode(id))
showGraph('visualization', id, type)
</script>
</div>