-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (99 loc) · 4.24 KB
/
index.html
File metadata and controls
110 lines (99 loc) · 4.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LBI Research Graph Visualization</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Left Panel -->
<div id="left-panel">
<div class="panel-header">
<h1>LBI Research Graph</h1>
<button id="mobile-toggle" class="mobile-toggle">☰</button>
</div>
<div class="panel-content">
<!-- Search Field -->
<section class="filter-section">
<h2>Search</h2>
<div class="search-container">
<input type="text" id="search-input" placeholder="Search titles or authors..." autocomplete="off">
<div id="search-suggestions" class="search-suggestions"></div>
</div>
</section>
<!-- Node Type Filters -->
<section class="filter-section">
<h2>Display Options</h2>
<div class="checkbox-group">
<label class="checkbox-label">
<input type="checkbox" id="show-titles" checked>
<span class="checkbox-text">Journal Articles</span>
<span class="color-indicator title-color"></span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="show-first-authors" checked>
<span class="checkbox-text">Primary Authors</span>
<span class="color-indicator first-author-color"></span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="show-authors" checked>
<span class="checkbox-text">Co-Authors</span>
<span class="color-indicator author-color"></span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="show-journals" checked>
<span class="checkbox-text">Journals</span>
<span class="color-indicator journal-color"></span>
</label>
</div>
</section>
<!-- Data Filters -->
<section class="filter-section">
<h2>Filters</h2>
<div class="filter-group">
<label for="filter-year">Publication Year:</label>
<select id="filter-year">
<option value="">All Years</option>
</select>
</div>
<div class="filter-group">
<label for="filter-journal">Journal/Book:</label>
<select id="filter-journal">
<option value="">All Journals</option>
</select>
</div>
<div class="filter-group">
<label for="filter-first-author">Primary Author:</label>
<select id="filter-first-author">
<option value="">All Primary Authors</option>
</select>
</div>
<div class="filter-group">
<label for="filter-author">Co-Author:</label>
<select id="filter-author">
<option value="">All Co-Authors</option>
</select>
</div>
<button id="reset-filters" class="reset-btn">Reset All Filters</button>
</section>
<!-- Info Box -->
<section class="info-section">
<h2>Node Information</h2>
<div id="info-box" class="info-box">
<p class="info-placeholder">Click on a node to see details</p>
</div>
</section>
</div>
</div>
<!-- Graph Container -->
<div id="graph-container">
<svg id="graph-svg"></svg>
<div id="tooltip" class="tooltip"></div>
</div>
<!-- Scripts -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="data.js"></script>
<script src="app.js"></script>
</body>
</html>