-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweather.php
367 lines (245 loc) · 10.5 KB
/
weather.php
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
<?php
include('security.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>ে-অসম</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="shortcut icon" href="img/odi.png">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,800" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha256-L/W5Wfqfa0sdBNIKN9cG6QA5F2qx4qICmU2VgLruv9Y=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css"
integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
<link rel='stylesheet' href='amphan/css/index.css'>
<link rel="stylesheet" href="css/magnific-popup.css">
<script src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
<link rel="stylesheet" href="fonts/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="fonts/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<!-- Theme Style -->
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/style0.css">
<style type="text/css">
.row{
display: flex;
justify-content: space-between;
}
.responsive {
max-width: 90%;
height: auto;
}
h5{
color: white;
}
#mapsbtn {
display: inline-block;
padding: 15px 25px;
font-size: 15px;
margin-bottom: 10px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: indigo;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
}
#mapsbtn:hover {background-color: grey}
#mapsbtn:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
#mapsbtn:hover a{
color: #21c87a;
}
</style>
</head>
<body style="background-color: #121212">
<?php
include('navbar.php');
?>
<!-- ======= Hero Section ======= -->
<section id="hero" class="d-flex flex-column justify-content-end align-items-center">
<div id="heroCarousel" class="container carousel carousel-fade" data-ride="carousel">
<!-- Slide 1 -->
<div class="carousel-item active">
<div class="carousel-container">
<img src="img/andhra/a6.png">
</div>
</div>
<a class="carousel-control-prev" href="#heroCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon bx bx-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#heroCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon bx bx-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<svg class="hero-waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28 " preserveAspectRatio="none">
<defs>
<path id="wave-path" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z">
</defs>
<g class="wave1">
<use xlink:href="#wave-path" x="50" y="3" fill="rgba(255,255,255, .1)">
</g>
<g class="wave2">
<use xlink:href="#wave-path" x="50" y="0" fill="rgba(255,255,255, .2)">
</g>
<g class="wave3">
<use xlink:href="#wave-path" x="50" y="9" fill="#fff">
</g>
</svg>
</section>
<!-- ======= Testimonials Section ======= -->
<section id="testimonials" class="testimonials">
<div class="container">
<div class="section-title" data-aos="zoom-out">
<h2>AMPHAN CYCLONE UPDATES</h2>
<p style="color: white">WEATHER DASHBOARD</p>
<li style="color: white"><i class="ri-check-double-line"></i>Cyclone-Tracker</li>
<li style="color: white"><i class="ri-check-double-line"></i>Weather-Forecasts</li>
<li style="color: white"><i class="ri-check-double-line"></i>Latest Health News</li>
</div>
</div>
</section><!-- End Testimonials Section -->
<div class='outer'>
<div class='middle'>
<div class='inner'>
<span class='title'>CycloneWatch</span>
<br>
<br>
<center>
<iframe src='https://embed.windy.com/embed2.html' width='1000px' scrolling='no' frameborder='0' height='565px'></iframe>
</center>
<br>
<center>
<span class='footerText'>
* CycloneWatch uses geolocation by default *
</span>
</center>
<br>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<!-- ======= Cta Section ======= -->
<section id="cta" class="cta" style="background-image: url(img/l5.jpg);background-repeat: no-repeat;background-size: cover;">
<div class="container" >
<div class="row" data-aos="zoom-out">
<div class="col-lg-9 text-center text-lg-left">
<p style="text-align: center;"> => Select the WIND icon on the map to get detailed live analysis of Temperature,Clouds,Pressure,Weather Warnings,Waves,Radar etc.
<br><br>
=> For precautionary measures against NISARGA/AMPHAN it is required to know the weather forecast for the next 5 Days . Enter in the field below the location whose forecast one needs to find.</p>
</div>
<div class="col-lg-3 cta-btn-container text-center" >
<a class="cta-btn align-middle" href="https://www.imdtvm.gov.in/">CYCLONE UPDATES</a>
</div>
</div>
</div>
</section><!-- End Cta Section -->
<br><br>
<div class="container-fluid " >
<div class="row">
<!-- Search Bar and Search history -->
<div class="col-3 responsive" id="search-col"><strong style="color: white;">SEARCH FOR A CITY:</strong>
<div class="input-group mb-3">
<input type="text" class="form-control " id="search-bar" aria-label="Recipient's username"
aria-describedby="button-addon2">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" id="search-btn"><i class="fa fa-search"
aria-hidden="true"></i></button>
</div>
</div>
<!-- Search history goes here -->
<ul class="list-group mt-3" id="search-history"></ul>
</div>
<!-- Weather Details -->
<div class="col-9 responsive" id="weather-details">
<div class="row">
<div class="col mb-2 p-0" id="weather-col"></div>
</div>
<div class="row">
<div class="col">
<div class='row'>
<div class="col" id="forecast-header"></div>
</div>
<div class="row" id="forecast-row"></div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="weather/script.js"></script>
<br><br><br><br><br><center><img src="img/andhra/a6.gif"></center><br><br>
<div class="jumbotron" style="background-color: #121212" >
<strong><h2 style="text-align: center;color: white">LATEST HEALTH NEWS SNIPPETS</h2></strong>
<!--<h2>INDIA CONFIRMED<h2>-->
<div class=" row jumbotron" id="test" style="background-color: #121212">
</div>
</div>
<script type="text/javascript">
var myUrl='http://newsapi.org/v2/top-headlines?country=in&category=health&apiKey=be0cac3857734c85b6121cdb2f4474ea';
var proxy = 'https://cors-anywhere.herokuapp.com/';
$.ajax({
url:proxy+myUrl,
type:"GET",
dataType:"JSON",
success:function(data){
console.log(data.articles);
var sno = 1;
$.each(data.articles, function(key, value){
if(sno===9){
return false;
}
$("#test").append("<div class=\" card-row w-5 col-lg-3 col-md-2 col-sm-12 \" style=\"max-width:\"4rem\" >" +
"<div class=\"card bg-success\">" +
"<div class=\"card-body\">" +
"<div class=\"card-header\">" + value.title + "</div>" +
"<br>" +
"<h5 class=\"card-text\">" + value.description + "</h5>" +
"<a href=\"" + value.url +"\" class=\"btn btn-dark\">More "+"</a>"+
"</div>" +
"</div>" +
"</div>"
);
sno++;
});
}
});
// $("#test").append("<tr>" +
// "<td>" + sno + " </td>" +
// "<td>" + value.updatedon + "</td>" +
// "<td>" + value.totaltested + "</td>" +
// "<td>" + value.positive + "</td>" +
// "<td>" + value.negative + "</td>" +
// // "<td>" + value.testsperthousand + "</td>" +
// "</tr>" );
</script>
<br><br><br><br><br><br><br>
<div id="loader" class="show fullscreen"><svg class="circular" width="48px" height="48px"><circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee"/><circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="#cf1d16"/></svg></div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/magnific-popup-options.js"></script>
<script src="js/main.js"></script>
<script src="js/main1.js"></script>
</body>
</html>