-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (120 loc) · 7.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description"
content="AQI Visualization System | Learn, Discover, Share about air pollution in your community">
<meta name="author" content="Vijay Pathak">
<script src="js/live_visualize.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Live Air Pollution | View current air pollution emission and health messages for Kathmandu valley</title>
</head>
<body style="margin: 16px;">
<div class="container-fluid">
<a href="https://github.com/login?return_to=%2Fhbvj99%2Fkathmandu-air" class="btn btn-primary text-center text-uppercase"
role="button" target="_blank"><i class="fab fa-github fa-lg"></i> Fork project</a>
</div>
<div class="container-fluid">
<script src="js/canvasjs.min.js"></script></br>
<div class="alert alert-warning">
<h4 class="alert-heading text-uppercase">health message for current air!</h4>
<div id="health_message" class="card text-justify" style="padding: 30px;">Updating...</div>
</div>
<div id="live_data" class="container" style="margin: 13px;padding: 10px;">
<div class="form-group d-inline-block">
<label for="loc_nm">Location</label>
<select id="loc_nm" class="btn btn-outline-secondary dropdown-toggle" style="font-size: 15px;"
onchange="changeLocation(this.value)" aria-haspopup="true" aria-expanded="false">
<option class="dropdown-item" value="Lazimpat Kathmandu" type="button">Durbar Marg, Kathmandu
</option>
<option class="dropdown-item" value="US Embassy Kathmandu" type="button">Maharajgunj, Kathmandu
</option>
</select>
</div>
<div class="form-group d-inline-block">
<label for="air_properties">Property</label>
<select id="air_properties" class="btn btn-outline-secondary dropdown-toggle" style="font-size: 15px;"
onchange="onchangeConc(this.value)" aria-haspopup="true" aria-expanded="false">
<option class="dropdown-item" value="AQI" type="button">AQI</option>
<option class="dropdown-item" value="Conc" type="button">PM2.5 Raw Concentration</option>
<option class="dropdown-item" value="NowCastConc" type="button">PM2.5 NowCast Concentration</option>
</select>
</div>
<div class="form-group d-inline-block">
<label for="chartType">Chart Type</label>
<select id="chartType" class="btn btn-outline-secondary dropdown-toggle" style="font-size: 15px;"
onchange="changeType(this.value)" aria-haspopup="true" aria-expanded="false">
<option class="dropdown-item" value="column" type="button">Column</option>
<option class="dropdown-item" value="bar" type="button">Bar</option>
<option class="dropdown-item" value="line" type="button">Line</option>
<option class="dropdown-item" value="pie" type="button">Pie</option>
<option class="dropdown-item" value="area" type="button">Area</option>
<option class="dropdown-item" value="bubble" type="button">Bubble</option>
<option class="dropdown-item" value="doughnut" type="button">Doughnut</option>
<option class="dropdown-item" value="spline" type="button">Spline</option>
<option class="dropdown-item" value="splineArea" type="button">Spline Area</option>
<option class="dropdown-item" value="scatter" type="button">Scatter</option>
<option class="dropdown-item" value="stackedArea" type="button">Stacked Area</option>
<option class="dropdown-item" value="stackedBar100" type="button">Stacked Bar</option>
<option class="dropdown-item" value="stepLine" type="button">Step Line</option>
<option class="dropdown-item" value="stepArea" type="button">Step Area</option>
<option class="dropdown-item" value="pyramid" type="button">Pyramid</option>
<option class="dropdown-item" value="funnel" type="button">Funnel</option>
<option class="dropdown-item" value="waterfall" type="button">Waterfall</option>
</select>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-9">
<div id="chartContainer" style="height: 420px; width: 100%;"></div>
</div>
<div class="col-sm-3"><br><br>
<table class="table table-bordered">
<thead>
<tr>
<th>Color</th>
<th>AQI Level</th>
</tr>
</thead>
<tbody>
<tr>
<td style="background: #34e400;"></td>
<td>0 - 50 Good</td>
</tr>
<tr>
<td style="background: #fcff00;"></td>
<td>51 - 100 Moderate</td>
</tr>
<tr>
<td style="background: #f77e01;"></td>
<td>101 - 150 Unhealthy for Sensitive Groups</td>
</tr>
<tr>
<td style="background: #f61802;"></td>
<td>151 - 200 Unhealthy</td>
</tr>
<tr>
<td style="background: #8f3f97;"></td>
<td>201 - 300 Very Unhealthy</td>
</tr>
<tr>
<td style="background: #7e0623;"></td>
<td>301 - 500 Hazardous</td>
</tr>
</tbody>
</table>
</div>
</div><br>
<div class="alert alert-secondary text-center" style="padding: 5px;">Note: Hover over the chart color to display tooltip info. Also, you can save the render information in images or PDF document.</div>
</div>
</div>
</body>
</html>