forked from Sage-Bionetworks/schema_visualization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (125 loc) · 4.86 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
<!DOCTYPE html>
<html>
<head>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v6.4.2/css/all.css"
/>
<link rel="stylesheet" href="style.css" type="text/css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Schema Visualization</title>
</head>
<body>
<!-- header -->
<header>
<div class="title" style="text-align: center">
<h1>Schema Visualization (beta)</h1>
<a href="https://github.com/Sage-Bionetworks/schema_visualization"
><i class="fa-brands fa-github fa-2xl"></i
></a>
</div>
</header>
<!-- Dropdown: selecting a schema-->
<div class="dropdown" id="dropdown" style="text-align: center">
<!-- <button
class="btn btn-secondary dropdown-toggle"
type="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
Select Schema
</button> -->
<select
class="select"
id="selection"
></select>
</div>
<!-- Generate visualization and attribute table -->
<div id="chart-placeholder" class="">
<!-- generate visualization -->
<span id="visualization"></span>
<!-- attribute table -->
<div id="toggle-table"></div>
<div id="attributes-table-hidden" class="hidden">
<div id="attributes-table-wrapper" class="shown">
<div id="table-top">
<div class="right">
<select class="custom-select" id="filterBy">
<option value="All Attributes">All attributes</option>
<option value="Required Attributes">Required Attributes</option>
<option value="Conditionally Required Attributes">
Conditionally Required Attributes
</option>
<option value="Required and Conditionally Required Attributes">
Required and Conditionally Required Attributes
</option>
</select>
</div>
</div>
<div class="table-wrapper" id="table"></div>
<div id="placeholder"></div>
</div>
</div>
</div>
</body>
<footer>
<div class="footer" style="align-items: center">
<div class="row">
<div class="col-md-12" style="height: 50px">
<a href="https://sagebionetworks.org/"
><img
src="./assets/imgs/sage-bionetworks-logo.svg"
alt="sagebionetworks-logo"
style="max-height: 100%"
width="auto"
/></a>
</div>
</div>
</div>
</footer>
<script src="https://d3js.org/d3.v5.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-fetch@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-array@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-color@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-interpolate@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-scale-chromatic@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-dispatch@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-ease@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-interpolate@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-timer@3"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-transition@3"></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"
integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js"
integrity="sha512-CSBhVREyzHAjAFfBlIBakjoRUKp5h7VSweP0InR/pAJyptH7peuhCsqAI/snV+TwZmXZqoUklpXp6R6wMnYf5Q=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js"
></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/getDataModels.js"></script>
<script src="js/chart.js"></script>
<script type="text/javascript" src="js/PrepareRender.js"></script>
<script type="text/javascript" src="js/DrawTable.js"></script>
<script type="text/javascript" src="js/collapsibleTangleTree.js"></script>
</html>