-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgraph.html
More file actions
130 lines (124 loc) · 3.96 KB
/
Copy pathgraph.html
File metadata and controls
130 lines (124 loc) · 3.96 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/png"
href="src/imgs/graph_window_icon.svg"
/>
<link rel="stylesheet" href="src/style.css" />
<style>
body {
overflow: hidden;
}
</style>
<script type="module" src="src/graph.ts"></script>
<title>Dependency Graph</title>
</head>
<body>
<div id="graph"></div>
<div>
<p
id="node-count"
style="position: fixed; bottom: 15px; right: 40px"
></p>
<button
id="download-btn"
style="position: fixed; bottom: 15px; right: 0px; background: none; border: none; cursor: pointer"
>
<img
src="src/imgs/download.svg"
alt="Download Graph"
style="width: 20px"
/>
</button>
</div>
<div id="legend-container">
<img
id="node-legend-img"
src="src/imgs/node_legend.svg"
alt="Node Legend"
style="
position: absolute;
width: 225px;
top: 5px;
transition: left 0.3s ease;
visibility: hidden;
"
/>
<button id="node-legend-arrow">
<img
src="src/imgs/node_legend_arrow.svg"
id="node-legend-arrow-img"
style="
position: absolute;
width: 40px;
top: 15px;
transition: left 0.3s ease;
visibility: hidden;
"
/>
</button>
</div>
<div>
<button id="search-motor-btn">
<img
id="curseforge-btn-img"
src="src/imgs/curseforge_indicator.svg"
alt="Search Engine Indicator"
style="
position: fixed;
bottom: 0px;
left: 5px;
width: 60px;
transition: left 0.5s ease;
visibility: hidden;
"
/>
<img
id="modrinth-btn-img"
src="src/imgs/modrinth_indicator.svg"
alt="Search Engine Indicator"
style="
position: fixed;
bottom: 0px;
left: 5px;
width: 60px;
transition: left 0.5s ease;
visibility: hidden;
"
/>
</button>
</div>
<div>
<button id="edit-mode-btn">
<img
src="src/imgs/view_mode.svg"
id="view-mode-img"
alt="View Mode"
style="
position: fixed;
top: 5px;
right: 10px;
width: 60px;
transition: right 0.5s ease;
"
/>
<img
src="src/imgs/edit_mode.svg"
id="edit-mode-img"
alt="Edit Mode"
style="
position: fixed;
top: 5px;
right: -50%;
width: 60px;
transition: right 0.5s ease;
"
/>
</button>
</div>
<div id="notifications" style="position: absolute; top: 80px"></div>
</body>
</html>