-
Notifications
You must be signed in to change notification settings - Fork 1
/
weather.html
108 lines (92 loc) · 3.54 KB
/
weather.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
<!DOCTYPE html>
<html>
<head>
<title>Weather Details</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css">
</head>
<body>
<div class="container">
<div class="weather-data">
<!-- <button id="toggleUnits">Toggle Units</button> -->
<div class="weather-details">
<div id="weatherIcon"> </div>
<p> <span id="temperature"></span></p>
<p> <span id="weatherType"></span></p>
<hr style="width:95%">
<div class="location-info">
<p> <img src="images/location.png"> <span id="cityName"></span></p>
<p> <img src="images/calendar.png"> <span id="dateTime"></span></p>
</div>
</div>
<div class="forecast">
<div class="day-forecast-chart">
<h1>5-day forecast</h1>
<div class="forecast-container" id="fiveDayForecastContainer"></div>
</div>
<div class="hourly-forecast-chart">
<canvas id="hourlyChart"></canvas>
</div>
</div>
</div>
<div class="atmospheric-conditions">
<h2>Atmospheric conditions</h2>
<div>
<p class="one">
<img src="images/humidity.png">
<span id="humidity"> </span>
</p>
<p class="humid">Humidity</p>
</div>
<div>
<p class="two"> <img src="images/wind_speed.png">
<span id="windSpeed"></span>
</p>
<p class="wind-speed">Wind Speed</p>
</div>
</div>
<div class="temperature">
<h3>Temperature</h3>
<div>
<p class="three">
<img src="images/min-max.png">
<span id="minMaxTemp"> </span>
</p>
<p class="min-max">Min/Max</p>
</div>
<div>
<p class="four">
<img src="images/feels_like.png">
<span id="feelsLike"> </span>
</p>
<p class="feels-like">Feels Like</p>
</div>
</div>
<div class="rise-set">
<h4>Sunrise/Sunset</h4>
<div class="rise-div">
<p class="five">
<img src="images/sunrise.png">
<span id="sunrise"> </span>
</p>
<!-- <p class="sun-rise">Sunrise</p> -->
</div>
<div class="set-div">
<p class="six">
<img src="images/sunset.png">
<span id="sunset"> </span>
</p>
<!-- <p class="sun-set">Sunset</p> -->
</div>
</div>
<div id="mapContainer" class="map-container"></div>
<!-- </div> -->
</div>
<!-- <p>UV Index: <span id="uvIndex"></span></p> -->
<!-- <p>Date and Time: <span id="dateTime"></span></p>
<p>Weather Type: <span id="weatherType"></span></p> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
</body>
</html>