-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
241 lines (218 loc) · 12.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<link rel = "stylesheet" href = "./style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Comme:wght@300&family=IBM+Plex+Sans+Condensed&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/apexcharts/3.40.0/apexcharts.min.js" integrity="sha512-Kr1p/vGF2i84dZQTkoYZ2do8xHRaiqIa7ysnDugwoOcG0SbIx98erNekP/qms/hBDiBxj336//77d0dv53Jmew==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<div class = "background">
<div class="logo">
<img src="logo-removebg-preview.png">
<h2 class = "name">WeatherApp</h2>
</div>
<div class="search">
<input type="text" class = "search_bar" id = "searchbarr" placeholder="Enter City">
<button id = "searchbutton" onclick="searchlocation()"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1.5em" width="1.5em" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10.442 10.442a1 1 0 011.415 0l3.85 3.85a1 1 0 01-1.414 1.415l-3.85-3.85a1 1 0 010-1.415z" clip-rule="evenodd"></path><path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 100-11 5.5 5.5 0 000 11zM13 6.5a6.5 6.5 0 11-13 0 6.5 6.5 0 0113 0z" clip-rule="evenodd"></path></svg></button></div>
<div class="location">
<button id = "loc" onclick="livelocation()"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1.5em" width="1.5em" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="4"></circle><path d="M13,4.069V2h-2v2.069C7.389,4.522,4.523,7.389,4.069,11H2v2h2.069c0.454,3.611,3.319,6.478,6.931,6.931V22h2v-2.069 c3.611-0.453,6.478-3.319,6.931-6.931H22v-2h-2.069C19.478,7.389,16.611,4.522,13,4.069z M12,18c-3.309,0-6-2.691-6-6s2.691-6,6-6 s6,2.691,6,6S15.309,18,12,18z"></path></svg>Current Location</button>
</div>
</div>
<div class = "main">
<div class = "maincard">
<div class="weather">
<h2>Now</h2><br>
<div class="temp"><h1 id = "temp">26°C</h1>
<div class="img1"><img src = "" id = "img1"></div></div>
<div class="desc" id = "desc">Cloudy</div><br>
<br><hr width="300px" size="2px" color="#2c2c2c"><br><br>
<div class = "ccity">
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1.2em" width="1.2em" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke="#e2e5de" stroke-width="2" d="M12,22 C12,22 4,16 4,10 C4,5 8,2 12,2 C16,2 20,5 20,10 C20,16 12,22 12,22 Z M12,13 C13.657,13 15,11.657 15,10 C15,8.343 13.657,7 12,7 C10.343,7 9,8.343 9,10 C9,11.657 10.343,13 12,13 L12,13 Z"></path></svg>
<h3 class = "city" id = "city">Delhi</h3>
</div><br>
<div class="ddate">
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024" height="1.2em" width="1.2em" xmlns="http://www.w3.org/2000/svg"><path d="M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z"></path><path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z"></path></svg>
<h3 class = "date" id = "date">05 May 2023</h3>
</div>
<div class="ttime">
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1.2em" width="1.2em" xmlns="http://www.w3.org/2000/svg"><path d="M12,2C6.486,2,2,6.486,2,12s4.486,10,10,10s10-4.486,10-10S17.514,2,12,2z M12,20c-4.411,0-8-3.589-8-8s3.589-8,8-8 s8,3.589,8,8S16.411,20,12,20z"></path><path d="M13 7L11 7 11 12.414 14.293 15.707 15.707 14.293 13 11.586z"></path></svg>
<h3 class = "time" id = 'time'>12:00 PM</h3>
</div>
</div>
</div>
<div class = "AirQuality">
<h1 id = "Highlights">Today's Highlights</h1>
<div class="aqindex">
<h3>Wind Information</h3>
<div class = "airdata">
<img src="Mediamodifier-Design (3).svg" class = "air">
<div class="pm25">
<h4>Wind Degree</h4>
<h3 id = "wd">3.90</h3>
</div>
<div class="o3">
<h4>Wind Speed </h4>
<h3 id = "ws">3.90</h3>
</div>
</div><br>
<div class="heading">
<h3 id = "humidityh3">Humidity</h3>
<h3 id = "pressureh3">Pressure</h3>
</div>
<div class="aqr2">
<div class="humidity">
<img src="Mediamodifier-Design (4).svg" class = "air">
<h3 id = "humidityh33">82%</h3>
</div>
<div class="pressure">
<img src="Mediamodifier-Design (5).svg" class = "air">
<h3 id = "pressureh33">1026hPa</h3>
</div>
</div>
</div>
<div class="sun">
<h3>Sunrise & Sunset</h3>
<div class="suntime">
<div class="sunrise">
<img src="Mediamodifier-Design (6).svg" class="air">
<div class="sundata">
<h4 id = "sunriseh4">Sunrise</h4>
<h3 id = "sunriseh3">6:46 AM</h3>
</div>
</div>
<div class="sunset">
<img src="Mediamodifier-Design (7).svg" class ="air">
<div class="setdata">
<h4 id = "sunseth4">Sunset</h4>
<h3 id = "sunseth3">6:46 AM</h3>
</div>
</div>
</div>
<div class="heading">
<h3 id = "visibilityh3">Visibility</h3>
<h3 id = "feelsh3">Feels Like</h3>
</div>
<div class="aqr2">
<div class="humidity">
<img src="Mediamodifier-Design.svg" class = "air">
<h3 id = "visibilityh33">10 Km</h3>
</div>
<div class="pressure">
<img src="Mediamodifier-Design (1).svg" class = "air">
<h3 id = "feelsh33">23°C</h3>
</div>
</div>
</div>
</div>
<div class = "sevendays">
<h3 id = "sevendaysh3">7 Days' Forcast</h3><br>
<div class="table">
<div class="days">
<img src="" alt="" id = "imgt1">
<h4 id = "temptable1">7°C</h4>
<h4 id = "daytable1">Monday</h4>
</div>
<div class="days">
<img src="" alt="" id = "imgt2">
<h4 id = "temptable2">7°C</h4>
<h4 id = "daytable2">Monday</h4>
</div>
<div class="days">
<img src="" alt="" id = "imgt3">
<h4 id = "temptable3">7°C</h4>
<h4 id = "daytable3">Monday</h4>
</div>
<div class="days">
<img src="" alt="" id = "imgt4">
<h4 id = "temptable4">7°C</h4>
<h4 id = "daytable4">Monday</h4>
</div>
<div class="days">
<img src="" alt="" id = "imgt5">
<h4 id = "temptable5">7°C</h4>
<h4 id = "daytable5">Monday</h4>
</div>
<div class="days">
<img src="" alt="" id = "imgt6">
<h4 id = "temptable6">7°C</h4>
<h4 id = "daytable6">Monday</h4>
</div>
<div class="days">
<img src="" alt="" id = "imgt7">
<h4 id = "temptable7">7°C</h4>
<h4 id = "daytable7">Monday</h4>
</div>
</div>
</div>
<div class="todayat">
<h3 id = "todayath3">Today At</h3><br>
<div class="todaytable">
<div class="_12am">
<h3 id = "tableh3">12 AM</h3>
<img src="" id = "imgtt1">
<h3 id = "table1">5°C</h3>
</div>
<div class="_3am">
<h3 id = "tableh3">3 AM</h3>
<img src="" id = "imgtt4">
<h3 id = "table4">5°C</h3>
</div>
<div class="_6am">
<h3 id = "tableh3">6 AM</h3>
<img src="" id = "imgtt7">
<h3 id = "table7">5°C</h3>
</div>
<div class="_9am">
<h3 id = "tableh3">9 AM</h3>
<img src="" id = "imgtt10">
<h3 id = "table10">5°C</h3>
</div>
<div class="_12pm">
<h3 id = "tableh3">12 PM</h3>
<img src="" id = "imgtt13">
<h3 id = "table13">5°C</h3>
</div>
<div class="_3pm">
<h3 id = "tableh3">3 PM</h3>
<img src="" id = "imgtt16">
<h3 id = "table16">5°C</h3>
</div>
<div class="_6pm">
<h3 id = "tableh3">6 PM</h3>
<img src="" id = "imgtt19">
<h3 id = "table19">5°C</h3>
</div>
<div class="_9pm">
<h3 id = "tableh3">9 PM</h3>
<img src="" id = "imgtt22">
<h3 id = "table22">5°C</h3>
</div>
</div>
</div>
</div>
<section class = "errorr" id = "errorr">
<h1 class = "e404">404</h1>
<p class = "emsg">Please Enter A Valid Location</p>
<button onclick = "hide()" class = "btn">Go Home</button>
</a>
</section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src = "script.js"></script>
</body>
</html>