-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
253 lines (250 loc) · 6.84 KB
/
index.html
File metadata and controls
253 lines (250 loc) · 6.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Surge Team Projects</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h2 {
color: #333;
}
.container {
display: flex;
flex-direction: row;
}
#filter-panel {
width: 150px;
border: 1px solid #ddd;
border-radius: 5px;
padding: 15px;
margin-right: 20px;
align-self: flex-start;
max-height: 80vh;
overflow-y: auto;
font-size: 12px; /* Smaller font size */
}
#filter-panel h3 {
margin-top: 0;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
color: #333;
font-size: 14px; /* Smaller heading */
}
#skills-filter-container {
margin-bottom: 15px;
}
.skill-checkbox {
margin-bottom: 8px;
display: block;
}
.skill-checkbox input {
margin-right: 8px;
}
.filter-buttons {
display: flex;
justify-content: space-between;
}
.filter-buttons button {
padding: 6px 10px;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
font-size: 12px; /* Smaller font size */
}
.filter-buttons button:hover {
background-color: #e0e0e0;
}
#apply-filters {
background-color: #4CAF50;
color: white;
border-color: #45a049;
}
#apply-filters:hover {
background-color: #45a049;
}
#visualization {
flex: 1;
border: 1px solid #ddd;
border-radius: 5px;
overflow: auto;
margin-bottom: 20px;
position: relative; /* For positioning the info panel */
min-height: 100vh; /* Minimum height relative to viewport */
max-height: 100vh; /* Maximum height relative to viewport */
}
.node {
cursor: pointer;
}
.link {
mix-blend-mode: multiply;
}
.time-axis path, .time-axis line {
stroke: #ccc;
}
.time-axis text {
font-size: 12px; /* Slightly larger font size for better readability */
fill: #333; /* Darker text color for better contrast */
}
.phase-label {
font-weight: bold;
}
.error {
color: red;
padding: 20px;
background-color: #ffeeee;
border-radius: 5px;
}
/* Add css for better label visibility */
.time-axis text {
text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}
/* Info Panel Styles */
#info-panel {
position: absolute;
top: 20px;
right: 20px;
width: 275px;
background-color: white;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 15px;
z-index: 1000;
display: none; /* Hidden by default */
font-size: 12px; /* Smaller font size */
}
#info-panel h3 {
margin-top: 0;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
color: #333;
font-size: 14px; /* Smaller heading */
}
.info-row {
display: flex;
margin-bottom: 6px; /* Reduced spacing */
align-items: flex-start; /* Align items to the top for multi-line content */
}
.info-label {
font-weight: bold;
width: 80px; /* Reduced width */
color: #666;
flex-shrink: 0; /* Prevent label from shrinking */
}
.info-value {
flex-grow: 1;
word-wrap: break-word; /* Enable word wrapping */
max-width: calc(100% - 85px); /* Ensure text doesn't overflow */
}
/* Special styling for description */
#node-description {
display: block;
line-height: 1.4;
margin-top: 4px;
}
.close-button {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 18px;
color: #999;
}
.close-button:hover {
color: #333;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.node-color-indicator {
width: 20px;
height: 20px;
border-radius: 50%;
display: inline-block;
margin-right: 10px;
}
/* Style for skills tags */
.skill-tag {
display: inline-block;
background-color: #f0f0f0;
border-radius: 10px;
padding: 2px 8px;
margin: 2px;
font-size: 11px;
color: #333;
}
</style>
</head>
<body>
<h1>Data Surge Team Projects</h1>
<div class="container">
<div id="filter-panel">
<h3>Filter by Skills</h3>
<div id="skills-filter-container">
<!-- Skills checkboxes added here dynamically -->
</div>
<div class="filter-buttons">
<button id="apply-filters">Apply</button>
<button id="clear-filters">Clear</button>
</div>
<div style="margin-top: 15px;">
<button id="animate-timeline" style="width: 100%; padding: 8px; background-color: #4a90e2; color: white; border: none; border-radius: 4px; cursor: pointer;">Animate Timeline</button>
</div>
</div>
<div id="visualization">
<!-- Info panel added here dynamically -->
<div id="info-panel">
<div class="panel-header">
<h3><span class="node-color-indicator"></span> <span id="node-name"></span></h3>
<span class="close-button">×</span>
</div>
<div class="info-row">
<div class="info-label">ID:</div>
<div class="info-value" id="node-id"></div>
</div>
<div class="info-row">
<div class="info-label">Start Date:</div>
<div class="info-value" id="node-start-date"></div>
</div>
<div class="info-row">
<div class="info-label">End Date:</div>
<div class="info-value" id="node-end-date"></div>
</div>
<div class="info-row">
<div class="info-label">Duration:</div>
<div class="info-value" id="node-duration"></div>
</div>
<div class="info-row">
<div class="info-label">Category:</div>
<div class="info-value" id="node-category"></div>
</div>
<div class="info-row">
<div class="info-label">Phases:</div>
<div class="info-value" id="node-phase"></div>
</div>
<div class="info-row">
<div class="info-label">Skills:</div>
<div class="info-value" id="node-skills"></div>
</div>
<div class="info-row">
<div class="info-label">Description:</div>
<div class="info-value" id="node-description"></div>
</div>
<div class="info-row">
<div class="info-label">Connections:</div>
<div class="info-value" id="node-connections"></div>
</div>
</div>
</div>
</div>
<script type="module" src="timeline-sankey.js"></script>
</body>
</html>