-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathd3js.html
More file actions
176 lines (135 loc) · 3.49 KB
/
Copy pathd3js.html
File metadata and controls
176 lines (135 loc) · 3.49 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
<!DOCTYPE html>
<html lang="en">
<head id="head"></head>
<!-- add css for the graph -->
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="navbar"></nav>
<!-- Page Content -->
<div class="container mt-5" id="main-content">
<style>
#research-network {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.center-node-text {
font-size: 20px;
font-weight: bold;
text-anchor: middle;
}
.prevent-selection {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}
section.research {
position: relative;
z-index: 1;
}
.research .card {
/* border: none; */
border-radius: 1rem;
transition: all 0.2s;
/* box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1); */
background: rgba(255, 255, 255, 0.9);
}
.research hr {
margin: 1.5rem 0;
}
.research .card-title {
margin: 0.5rem 0;
font-size: 0.9rem;
letter-spacing: .1rem;
font-weight: bold;
}
.research .card-price {
font-size: 3rem;
margin: 0;
}
.research .card-price .period {
font-size: 0.8rem;
}
.research ul li {
margin-bottom: 1rem;
}
.research .text-muted {
opacity: 0.7;
}
.research .btn {
font-size: 80%;
/* border-radius: 5rem; */
letter-spacing: .1rem;
font-weight: bold;
padding: 1rem;
opacity: 0.7;
transition: all 0.2s;
}
.imaging-subtopics {
display: none;
}
.clinical-subtopics {
display: none;
}
.algorithmic-subtopics {
display: none;
}
/* Hover Effects on Card */
@media (min-width: 992px) {
.research .card:hover {
margin-top: -.25rem;
margin-bottom: .25rem;
box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.3);
}
.research .card:hover .clinical-subtopics {
display: block;
}
.research .card:hover .imaging-subtopics {
display: block;
}
.research .card:hover .algorithmic-subtopics {
display: block;
}
.research .card:hover .btn {
opacity: 1;
}
}
@media (max-width: 992px) {
.research .card:hover .clinical-subtopics {
display: block;
}
.research .card:hover .imaging-subtopics {
display: block;
}
.research .card:hover .algorithmic-subtopics {
display: block;
}
}
</style>
<svg id="research-network"></svg>
<script src="/js/network.js" type="module"></script>
<!-- <div id="info-box" style="left: 10px; top: 10px; padding: 10px; border: 1px solid black;">
Hover over a node...
</div> -->
</div>
<!-- /.container -->
<!-- Footer -->
<footer class="flex-shrink-0 py-4 bg-dark text-white-50 mt-5" id="footer">
</footer>
<!-- SCRIPTS -->
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Fontawesome -->
<script src="https://kit.fontawesome.com/b8a4a61420.js" crossorigin="anonymous"></script>
<!-- <script src="js/people.js"></script> -->
<script src="/js/utils.js"></script>
</body>
</html>