-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
203 lines (150 loc) · 7.11 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
<!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">
<meta name="image" property="og:image" content="https://i.ibb.co/ZzkYnw9/historicalweatherapp.png" />
<meta name="author" content="Muhammad Ali" />
<title>Historical Weather Time Series</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"> <!--for date picker -->
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script> <!--for date picker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><!--jQuery -->
<!-- Flatpicker Styles -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.2.3/flatpickr.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.2.3/themes/dark.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style1.css">
<!--
<style type="text/css">
p {
margin-top: 0.25em ;
margin-bottom: 0.25em ;
}
.fa {
padding: 9px;
font-size: 30px;
width: 50px;
text-align: center;
text-decoration: none;
margin: 5px 5px;
}
/* Facebook */
.fa-facebook {
background: #3B5998;
color: white;
}
/* Twitter */
.fa-twitter {
background: #55ACEE;
color: white;
}
.fa-linkedin {
background: #007bb5;
color: white;
}
.fa-reddit {
background: #ff5700;
color: white;
}
.no-bullets {
list-style-type: none;
}
</style>
-->
</head>
<body>
<div class="row">
<div class="container-fluid p-3 my-3 bg-dark text-white">
<h1>Historical Weather Time Series</h1>
<p>Compare weather parameters of different cities. The weather data displayed on this page was made available by NOAA's National Centers for Environmental Information <a href="https://www.ncei.noaa.gov/">(NCEI)</a>.</p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="container p-3 my-3 bg-light text-white">
<p margin:0 class="text-dark">Choose weather parameter:</p>
<select id="wparamdd" ata-toggle="tooltip" title="Choose a weather parameter" name="Choose a weather parameter" style="width: 200px;">
<option value="TMAX">Daily High Temperature</option>
<option value="TMIN">Daily Low Temperature</option>
<option value="PRCP">Precipitation</option>
<option value="SNOW">Snow</option>
</select>
<br><br>
<p class="text-dark">Choose two cities:</p>
<select id="citydropdown" ata-toggle="tooltip" title="Choose a city" name="Choose a City" style="width: 200px;"></select>
<br>
<select id="citydropdown2" ata-toggle="tooltip" title="Choose a city" name="Choose a City" style="width: 200px;"></select>
<br><br><br>
<p class="text-dark">Start date (YYYY/MM/DD):</p>
<input type="text" ata-toggle="tooltip" title="Select the starting date of the date range" id="basicDate" placeholder="Please select Start Date" data-input style="width: 200px;">
<br><br>
<p class="text-dark">End date (YYYY/MM/DD):</p>
<input type="text" ata-toggle="tooltip" title="Select the ending date of the date range" id="basicDate2" placeholder="Please select End Date" data-input style="width: 200px;">
<br><br>
<!-- <button id="plotbutton" onclick="myFunction()">Plot Temperatures!</button> -->
<button type="button" class="btn btn-dark btn-lg" id="plotbutton" onclick="myFunction()">Plot</button>
<br><br><br><br><br><br><br><br><br><br> <br>
</div>
</div>
<div class="col-sm-6">
<div class="container p-3 my-3 bg-light text-white">
<canvas id="chart" width="700" height="600" aria-label="Chart" role="img"></canvas>
</div>
</div>
<div class="col-sm-3">
<div class="container p-3 my-3 bg-light text-dark">
<h5>Statistics</h5>
<br><br>
<h6 id="cityname1"></h6>
<ul id="list1" class="no-bullets">
<li id="maxval1"></li>
<li id="minval1"></li>
<li id="rangeval1"></li>
<li id="meanval1"></li>
</ul>
<h6 id="cityname2"></h6>
<ul id="list2" class="no-bullets">
<li id="maxval2"></li>
<li id="minval2"></li>
<li id="rangeval2"></li>
<li id="meanval2"></li>
</ul>
<br>
</div>
</div>
</div>
<br>
<script src="apicode.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.2.3/flatpickr.js"></script>
<script>
$("#basicDate").flatpickr({
enableTime: false,
dateFormat: "Y-m-d"
});
$("#basicDate2").flatpickr({
enableTime: false,
dateFormat: "Y-m-d"
});
</script>
<div class="container-fluid bg-dark" align="center">
<!-- https://stackoverflow.com/questions/12448134/social-share-links-with-custom-icons/49542173#49542173
Replace google.com with name of website
-->
<a href="http://www.facebook.com/share.php?u=https://muhammadalics.github.io/Historical-Weather-Time-Series/&title=Historical Weather Time Series" class="fa fa-facebook"></a>
<a href="https://twitter.com/intent/tweet?text=Check%20out&url=https://muhammadalics.github.io/Historical-Weather-Time-Series/" class="fa fa-twitter"></a>
<a href="http://www.reddit.com/submit?url=https://muhammadalics.github.io/Historical-Weather-Time-Series/&title=HistoricalWeather Time Series" class="fa fa-reddit"></a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https://muhammadalics.github.io/Historical-Weather-Time-Series/&title=Historical Weather Time Series&source=Historical Weather Time Series" class="fa fa-linkedin"></a>
</div>
</body>
</html>