forked from kawal2266/WeatherReport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (84 loc) · 2.75 KB
/
index.html
File metadata and controls
98 lines (84 loc) · 2.75 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Wether Conditions</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower|Pacifico" rel="stylesheet">
<link rel="stylesheet" href="wether.css">
</head>
<body>
<div id="container">
<header>
<hr style="color:#007399;">
<h1 id="head">Weather Forecast</h1>
<hr style="color:#007399;">
</header>
<div class="middiv">
<div class="maps">
<div id="map"></div>
</div>
<div class="info">
<div id="icon">
<figure class="icons">
<canvas id="clear-day" width="0" height="0">
</canvas>
<canvas id="clear-night" width="0" height="0">
</canvas>
<canvas id="partly-cloudy-day" width="0" height="0">
</canvas>
<canvas id="partly-cloudy-night" width="0" height="0">
</canvas>
<canvas id="cloudy" width="0" height="0">
</canvas>
<canvas id="rain" width="0" height="0">
</canvas>
<canvas id="sleet" width="0" height="0">
</canvas>
<canvas id="snow" width="0" height="0">
</canvas>
<canvas id="wind" width="0" height="0">
</canvas>
<canvas id="fog" width="0" height="0">
</canvas>
</figure>
</div>
<div class ="report">
<h2 id="summary"></h2>
<ul id="list"></ul>
</div>
</div>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.2.1.js"
integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE="
crossorigin="anonymous"></script>
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: {lat: 28.6139, lng: 77.2090}
})
}
</script>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyChnG7-G8746XOos97UbCGMDdAy_aAqLM4&callback=initMap">
</script>
<script src="weather.js"></script>
<script src="skyicons.js"></script>
<script>
var icons = new Skycons({"color": "#00b3b3"}),
list = [
"clear-day", "clear-night", "partly-cloudy-day",
"partly-cloudy-night", "cloudy", "rain", "sleet", "snow", "wind",
"fog"
],
i;
for(i = list.length; i--; )
icons.set(list[i], list[i]);
icons.play();
</script>
</body>
</html>