-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
408 lines (377 loc) · 21.1 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<!-- CSS only -->
<link rel="icon" href="https://www.rcce-collective.net/wp-content/uploads/2021/04/android-chrome-192x192-1.png" sizes="192x192" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin="" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.19/css/jquery.dataTables.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.11/c3.min.css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css">
<link href="https://unpkg.com/[email protected]/dist/multiple-select.min.css" rel="stylesheet">
<!-- scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/39e5643f1a.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.7.11/c3.min.js"></script>
<script src="https://d3js.org/d3.v5.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.3/moment.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/multiple-select.min.js"></script>
<link href="css/feedbackStyles.css" rel="stylesheet" />
<title>Community Response Hub</title>
</head>
<body>
<!-- Header & Navigation Menu -->
<div class="container-fluid">
<div class="row">
<div class="col-md-12 ">
<nav class="navbar navbar-expand-lg ifrc-brand">
<a href="#" value="landing"><img src="assets\logo-rcsa.PNG" alt="Communty Response Hub" class="logo" /></a>
<div id="sitebranding">
<div class="site-title">Community Feedback Monitoring System</div>
<div class="site-subtitle">The South African Red Cross Society</div>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigationPages">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
</div>
</div>
<!-- Navigation to Landing page -->
<div class="row navPage" id="feedback">
<div class="loader">
<div class="sp sp-circle"></div>
Loading data...
</div>
<div class="col-md-12 feedback" id="main">
<div class="sidebar">
<!-- <div class="keyfigures">
<span class="key-figure statFeedback">
<h5 id="num"></h5>
<h6 id="label"># feedbacks</h6>
</span>
<span class="key-figure statOrg">
<h5 id="num"></h5>
<h6 id="label"># org</h6>
</span>
</div> -->
<div class="situation">
<h4>Latest Emergency</h4>
<p class="page-desc">
On 11-13 April, severe flooding and landslides caused by heavy rainfall affected southern and south-eastern South Africa, particularly the Provinces of KwaZulu-Natal and Eastern Cape. According to national authorities, 443 people died in KwaZulu-Natal
and over 40,000 are missing. More than 40,000 people have been displaced, while nearly 4,000 houses were destroyed and more than 8,000 others were damaged, mostly across Durban City and its surrounding areas. -
<span class="source">Reliefweb (30 April 2022)</span>
</p>
<div class="selections">
<div class="filters">
<label for="emergencySelect">Emergency</label>
<select name="emergencySelect" id="emergencySelect"></select>
</div>
</div>
</div>
<h4>Filter</h4>
<div class="selections">
<div class="filters">
<label for="feedbackTypeSelect">Feedback</label>
<select name="feedbackTypeSelect" id="feedbackTypeSelect"></select>
</div>
<!-- <span class="filters">
<label for="">Date</label>
<span class="d-flex dropdownDate">
<select class="select" name="dateSelect" id="dateYearSelect" multiple></select>
<select class="select" name="dateSelect" id="dateMonthSelect" multiple></select>
</span>
</span> -->
<div class="filters">
<label for="vulnerableSelect">Gender</label>
<select name="vulnerableSelect" id="vulnerableSelect"></select>
</div>
<div class="filters">
<label for="demographicSelect">Age groups</label>
<select name="demographicSelect" id="demographicSelect"></select>
</div>
<div class="filters">
<label for="locationSelect">Location</label>
<select name="locationSelect" id="locationSelect"></select>
</div>
</div>
<span>
<button type="button" class="btn" id="fResetAll">Reset filters</button>
</span>
</div>
<!-- sidebar -->
<div class="panel">
<div class="navbarr">
<ul class="nav nav-tabs submenu">
<li class="nav-item navFeedback">
<a class="nav-link active" href="#" value="home">Overall</a>
</li>
<li class="nav-item navFeedback">
<a class="nav-link " href="#" value="rumours">Rumours</a>
</li>
<li class="nav-item navFeedback">
<a class="nav-link" href="#" value="questions">Questions</a>
</li>
<li class="nav-item navFeedback">
<a class="nav-link " href="#" value="suggestions">Suggestions</a>
</li>
<li class="nav-item navFeedback">
<a class="nav-link " href="#" value="metrics">Metrics</a>
</li>
</ul>
</div>
<!-- section commune -->
<div class="row" id="invariantSection">
<div class="col-md-6 pieTimeline">
<div class="col-md-12 pieCharts">
<div class="row">
<div class="col-md-6 pieChart topic">
<h5 class="chart-title">Emergency</h5>
<div id="topicPie"></div>
</div>
<div class="col-md-6 pieChart feedbackType">
<h5 class="chart-title">Type of feedback</h5>
<div id="feedbackType"></div>
</div>
</div>
</div>
<div class="timeline">
<h5 class="chart-title">Timeline</h5>
<div id="timeline"></div>
</div>
</div>
<div class="col-md-6 mapping">
<div class="head">
<h5 class="chart-title">Geographic Area (#feedback/area)</h5>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="geoSwitch2Tab">
<label class="custom-control-label" for="geoSwitch2Tab">Table format</label>
</div>
</div>
<div id="map"></div>
<div id="tableSwith" class="hidden">
<table id="datatableSwitch" style="width:100%">
<thead>
<tr>
<th>#</th>
<th>Location</th>
<th># Feedback</th>
<th>Total (%)</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<!-- Home -->
<div class="navigation" id="home">
<!-- <div class="panel-title">Overall</div> -->
<!-- new template -->
<!-- <div class="row charts">
<div class="col-md-6 pieTimeline">
<div class="col-md-12 pieCharts">
<div class="row">
<div class="col-md-6 pieChart topic">
<h5 class="chart-title">Emergency</h5>
<div id="topicPie"></div>
</div>
<div class="col-md-6 pieChart feedbackType">
<h5 class="chart-title">Type of feedback</h5>
<div id="feedbackType"></div>
</div>
</div>
</div>
<div class="timeline">
<h5 class="chart-title">Timeline</h5>
<div id="timeline"></div>
</div>
</div>
<div class="col-md-6 mapping">
<div class="head">
<h5 class="chart-title">Geographic Area (#feedback/area)</h5>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="geoSwitch2Tab">
<label class="custom-control-label" for="geoSwitch2Tab">Table format</label>
</div>
</div>
<div id="map"></div>
<div id="tableSwith" class="hidden">
<table id="datatableSwitch" style="width:100%">
<thead>
<tr>
<th>#</th>
<th>Location</th>
<th># Feedback</th>
<th>Total (%)</th>
</tr>
</thead>
</table>
</div>
</div>
</div> -->
<div class="datatable">
<h5 class="chart-title">Most Frequent Topics</h5>
<table id="datatable" style="width:100%">
<thead>
<tr>
<th>#</th>
<th>Emergency</th>
<th>Topic</th>
<th># Feedback</th>
<th>Total (%)</th>
<th>Trends</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- Rumours Suggestions Questions tabs -->
<div class="navigation hidden" id="tabsContent">
<div class="head">
<div class="panel-title">Rumours & Believes</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="rumorSwitch">
<label class="custom-control-label" for="rumorSwitch">Show feedbacks</label>
</div>
</div>
<div class="tabsDataTable">
<table id="tabsDataTable" class="cell-border" style="width:100%">
<thead>
<tr>
<th>#</th>
<th>Emergency</th>
<th>Code</th>
<th>Topic</th>
<th># Feedback</th>
<th>Total (%)</th>
<th>Trends</th>
</tr>
</thead>
</table>
</div>
<div class="hidden" id="tabTableSwitch">
<table id="tabsDataTableSwitch" class="cell-border" style="width:100%">
<thead>
<tr>
<th>#</th>
<th>Emergency</th>
<th>Date</th>
<th>Feedback</th>
<th>Topic</th>
<th># of times heard</th>
<th>District</th>
<th>Town</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- Metrics -->
<div class="navigation hidden" id="metrics">
<div class="panel-title">Metrics</div>
<div class="metricsCharts">
<div class="metrics-flex">
<div class="chart">
<h5 class="chart-title">Gender</h5>
<div id="genderPie"></div>
</div>
<!-- <div class="chart">
<h5 class="chart-title">Diversity Groups</h5>
<div id="demographicPie"></div>
</div> -->
<div class="chart">
<h5 class="chart-title">Language</h5>
<div id="vulnerablesPie"></div>
</div>
<div class="chart">
<h5 class="chart-title">Feedback Channels</h5>
<div id="channelsPie"></div>
</div>
</div>
<!-- <div class="row">
<div class="col-md-6">
<div class="col-md-12">
<div class="row">
<div class="col-md-6">
<h5 class="chart-title">Diversity Groups</h5>
<div id="demographicPie"></div>
</div>
<div class="col-md-6">
<h5 class="chart-title">Gender</h5>
<div id="genderPie"></div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="row">
<div class="col-md-6">
<h5 class="chart-title">Language</h5>
<div id="vulnerablesPie"></div>
</div>
<div class="col-md-6">
<h5 class="chart-title">Feedback Channels</h5>
<div id="channelsPie"></div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="row">
<h5 class="chart-title">Geographic Area</h5>
<div id="metricsMap"></div>
</div>
</div>
</div> -->
<div class="row">
<div class="col-md-12">
<table id="metricsTable" class="cell-border" style="width:100%">
<thead>
<tr>
<th>#</th>
<th>Location</th>
<th>Total</th>
<th>Rumours</th>
<th>Questions</th>
<th>Requests</th>
<th>Others</th>
<th>Sensitivity</th>
<th>Criticality</th>
<th>total (%)</th>
<th>Trends</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- panel -->
</div>
</div>
</div>
<!-- FOOTER -->
<div class="mt-1 pt-1 pb-1 footer">
<div class="container">
<div class="row">
<div class="col copyright">
<div class="icon-bar">
<a href="https://redcross.org.za/" target="_blank"><i class="fa-solid fa-globe"></i></a>
<a href="mailto:[email protected]"><i class="fa fa-envelope"></i></a>
<a href="#top"><i class="fa fa-angle-up"></i></a>
</div>
<p class=""><small class="text-white-50">© 2022 South African Red Cross Society. Produced by the Collective Service.</small></p>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/feedback.js"></script>
</body>
</html>
</html>
</html>