-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (97 loc) · 3.32 KB
/
index.html
File metadata and controls
117 lines (97 loc) · 3.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactome</title>
<style>
.links line {
stroke: #999;
stroke-opacity: 0.7;
}
#legend-container {
position: absolute;
top: 50px;
left: 50px;
}
.legend-item {
margin-bottom: 10px;
}
.legend-item-type2 {
margin-bottom: 25px;
}
.legend-rect {
width: 20px;
height: 20px;
display: inline-block;
margin-right: 5px;
vertical-align: middle;
}
.legend-circle {
width: 20px;
height: 20px;
border-radius: 50%;
display: inline-block;
margin-right: 5px;
vertical-align: middle;
border: 3px solid black; /* Add a black border */
}
.checkbox-item {
margin-bottom: 10px;
}
.checkbox-item-type2 {
margin-bottom: 10px;
}
/* Adjust the position of the checkbox label */
label {
display: inline-block;
margin-top: 10px;
font-size: 20px; /* Set the font size for the label */
}
/* Adjust the size of the checkbox */
input[type="checkbox"] {
transform: scale(1.5); /* Increase the size of the checkbox */
/* margin-right: 5px; /* Adjust the spacing between the checkbox and label */
}
.text-label {
display: none;
}
.text-label.always-visible,
.text-label.mouseover-visible {
display: inline;
}
</style>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="node-pie.js"></script>
<script src="main.js"></script>
</head>
<body>
<div id="network-container"></div>
<svg width="1400" height="1400"></svg>
<!-- Add a legend container -->
<div id="legend-container">
<div class="legend-item">
<div class="legend-rect" style="background-color: #e08214;"></div>
SARS-Cov-2
</div>
<div class="legend-item-type2">
<div class="legend-rect" style="background-color: #8073ac;"></div>
EBV
</div>
<div class="legend-item-type2">
<div class="legend-circle" style="background-color: #f7f7f7;"></div>
<div class="legend-circle" style="background-color: #e08214;"></div>
<div class="legend-circle" style="background-color: #8073ac;"></div>
Differentially methylated
</div>
<div class="checkbox-item">
<input type="checkbox" id="toggleModulesCheckbox" onchange="toggleModules(this)">
<label for="toggleModulesCheckbox">Show Modules</label>
</div>
<div class="checkbox-item-type2">
<input type="checkbox" id="highlightSymptomsCheckbox" onchange="highlightSymptoms(this)">
<label for="highlightSymptomsCheckbox">Symptom-related DMGs</label>
</div>
</div>
</body>
</html>