-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
184 lines (180 loc) · 10.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GPS Visualiser</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" type="image/x-icon" href="gps.ico"/>
</head>
<body>
<div id="loading-overlay">
<div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<div class="container">
<main>
<section>
<!-- source for the world-map svg: https://morioh.com/p/1ed2ddd34690 with further modifications -->
<object id="world-map" type="image/svg+xml" data="images/world-map.svg"></object>
<div class="title-bg">
<h2>Select a Country for Historical Data, Antibiotic Resistance and more...</h2>
</div>
</section>
<aside>
<div class="aside-content">
<div id="sidebar-title">
<h2>Global Serotypes and Lineages</h2>
<h3 class="unbold">(After the Latest Vaccination)</h3>
</div>
<br>
<div class="hor-selectors gap30">
<button type="button" id="sidebar-select-all">Select All</button>
<div>Select Countries to Display</div>
<button type="button" id="sidebar-deselect-all">Deselect All</button>
</div>
<div id="country-selector" class="hor-selectors flex-wrap">
</div>
<div class="global-icicles">
<div id="icicle-output"><b>Current Selection: </b>Select a Serotype or Lineage</div>
<div id="global-icicles-warning" class="removed warning bold">Please select one or more countries.</div>
<div id="global-icicle-all" class="global-icicle-content"></div>
<div id="global-icicle-disease" class="global-icicle-content removed"></div>
<div id="global-icicle-carriage" class="global-icicle-content removed"></div>
</div>
<div class="hor-selectors gap30">
<div>
<h2>Type</h2>
</div>
<div class="toggle">
<input type="radio" name="aside-type" value="all" id="aside-type-all" checked="checked" autocomplete="off"/>
<label for="aside-type-all">All</label>
<input type="radio" name="aside-type" value="disease" id="aside-type-disease" autocomplete="off"/>
<label for="aside-type-disease">Disease</label>
<input type="radio" name="aside-type" value="carriage" id="aside-type-carriage" autocomplete="off"/>
<label for="aside-type-carriage">Carriage</label>
</div>
</div>
</div>
</aside>
</main>
</div>
<div class="modal-overlay removed" id="country-view-overlay"></div>
<div class="modal-wrapper removed" id="country-view-wrapper">
<div class="modal-content">
<a id="close-btn" class="modal-close">×</a>
<div class="country-view">
<div id="country-view-title"></div>
<div id="country-view-readout"><b>Current Selection: </b>Select a Serotype or Lineage</div>
<div id="country-view-serotype" class="country-view-serotype"></div>
<div id="country-view-antibiotic" class="country-view-antibiotic removed">
<div id="barchart-legend" class="barchart-legend"></div>
<div id="antibiotic-barcharts" class="antibiotic-barcharts"></div>
</div>
<div class="hor-selectors serotype-lineage-select" id="serotype-lineage-select">
<h2>Show</h2>
<div class="select-group">
<label for="serotype-select">Serotype</label>
<select name="serotype-select" id="serotype-select">
<option value="all">All</option>
</select>
</div>
<h2>and</h2>
<div class="select-group">
<label for="lineage-select">GPSC</label>
<select name="lineage-select" id="lineage-select">
<option value="all">All</option>
</select>
</div>
</div>
<div class="hor-selectors gap30">
<div>
<h2>Data</h2>
<div class="toggle">
<input type="radio" name="country-view-data" value="serotype" id="country-view-data-serotype" checked="checked" autocomplete="off"/>
<label for="country-view-data-serotype">Lineages by Serotypes</label>
<input type="radio" name="country-view-data" value="antibiotic" id="country-view-data-antibiotic" autocomplete="off"/>
<label for="country-view-data-antibiotic">Antibiotic Resistance by Lineages</label>
</div>
</div>
<div>
<h2>Age Group</h2>
<!-- Suitable div will be selected based on country summary data by JS-->
<div id="age-both-div" class="toggle">
<input type="radio" name="country-view-age" value="0" id="country-view-age-0" checked="checked" autocomplete="off"/>
<label for="country-view-age-0">< 5 yo</label>
<input type="radio" name="country-view-age" value="1" id="country-view-age-1" autocomplete="off"/>
<label for="country-view-age-1">≥ 5 yo</label>
</div>
<div id="age-0-div">
< 5 yo
</div>
<div id="age-1-div">
≥ 5 yo
</div>
</div>
<div id="country-view-type-toggle">
<h2>Type</h2>
<div class="toggle">
<input type="radio" name="country-view-type" value="all" id="country-view-type-all" checked="checked" autocomplete="off"/>
<label for="country-view-type-all">All</label>
<input type="radio" name="country-view-type" value="disease" id="country-view-type-disease" autocomplete="off"/>
<label for="country-view-type-disease">Disease</label>
<input type="radio" name="country-view-type" value="carriage" id="country-view-type-carriage" autocomplete="off"/>
<label for="country-view-type-carriage">Carriage</label>
</div>
</div>
</div>
<div id="paper-link"></div>
</div>
</div>
</div>
<footer>
<div><a href="https://www.pneumogen.net/gps/" target="_blank">The Global Pneumococcal Sequencing Project</a> | <a id='credit-link'>Open Source Components Credits</a></div>
</footer>
<div class="modal-overlay removed" id="credit-overlay"></div>
<div class="modal-wrapper removed" id="credit-wrapper">
<div class="credit-modal-content">
<a id="credit-close-btn" class="modal-close">×</a>
<div>This site uses Open Source components. You can find the source code of their open source projects along with license information below. I acknowledge and am grateful to these developers for their contributions to open source.</div>
<br><br><br>
<div>
<a href="https://flagicons.lipis.dev/">Country Flags in SVG</a>
<ul>
<li>Copyright (c) 2013 Panayiotis Lipiridis</li>
<li>License (MIT): <a href="https://github.com/lipis/flag-icons/blob/main/LICENSE">https://github.com/lipis/flag-icons/blob/main/LICENSE</a></li>
</ul>
<br>
<a href="https://d3js.org/">D3.js</a>
<ul>
<li>Copyright 2010-2021 Mike Bostock</li>
<li>License (ISC): <a href="https://github.com/d3/d3/blob/main/LICENSE">https://github.com/d3/d3/blob/main/LICENSE</a></li>
</ul>
<br>
<a href="https://observablehq.com/@kerryrodden/sequences-icicle">Sequences Icicle</a>
<ul>
<li>Copyright 2020 Kerry Rodden</li>
<li>License (Apache 2.0): <a href="https://observablehq.com/@kerryrodden/sequences-icicle">https://observablehq.com/@kerryrodden/sequences-icicle</a></li>
</ul>
<br>
<a href="https://observablehq.com/@kerryrodden/sequences-sunburst">Sequences Sunburst</a>
<ul>
<li>Copyright 2020 Kerry Rodden</li>
<li>License (Apache 2.0): <a href="https://observablehq.com/@kerryrodden/sequences-sunburst">https://observablehq.com/@kerryrodden/sequences-sunburst</a></li>
</ul>
<br>
<a href="https://github.com/raphaellepuschitz/SVG-World-Map">SVG World Map JS</a>
<ul>
<li>Copyright (c) Raphael Lepuschitz</li>
<li>License (MIT): <a href="https://github.com/raphaellepuschitz/SVG-World-Map/blob/master/LICENSE.md">https://github.com/raphaellepuschitz/SVG-World-Map/blob/master/LICENSE.md</a></li>
</ul>
</div>
</div>
</div>
<script src="https://d3js.org/d3.v7.min.js" defer></script>
<script src="scripts/icicle.js" defer></script>
<script src="scripts/sunburst.js" defer></script>
<script src="scripts/barchart.js" defer></script>
<script src="scripts/main.js" defer></script>
</body>
</html>