-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (72 loc) · 1.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classification Visualization</title>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="spinner.css">
<style>
.link {
stroke: #666;
stroke-width: 1.5px;
}
.highlighted-link {
stroke: #007BFF;
stroke-width: 3px;
}
.node rect {
fill: #008080;
cursor: pointer;
}
.node text {
fill: white;
font-size: 14px;
text-anchor: middle;
dominant-baseline: central;
}
.year-label {
font-size: 14px;
font-weight: bold;
}
header {
background-color: lightblue;
padding: 5px;
position: fixed;
top: 0;
width: 98%;
}
#submit-button {
height: 28px;
}
main {
margin-top: 50px; /* Adjust this value to match the height of your header */
}
</style>
</head>
<body>
<header>
<select name="families" id="families" style="width: 200px;">
<option></option>
</select>
<select id="versions" style="width: 200px;" disabled>
<option></option>
</select>
<select id="concepts" style="width: 500px;" disabled>
<option></option>
</select>
<button id="submit-button" disabled>Submit</button>
</header>
<main>
<div id="errorContainer"></div>
<div id="spinner" style="display: none;">
<div class="loader"></div>
</div>
<svg id="visualization"></svg>
</main>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="select2.js" type="module"></script>
</body>
</html>