-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
242 lines (228 loc) · 12.8 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
242
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Weather App</title>
<!-- BOOTSTRAP CSS LINK -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- CSS LINK -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- navbar -->
<header class="py-3 primaryBorderBottom bg-dark">
<div class="container-fluid d-flex justify-content-between gap-3 align-items-center" >
<a href="#" class=" d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none logo">
<div class="img-con">
<img src="https://www.svgrepo.com/show/68769/weather.svg" alt="">
</div>
<span class="ff-Archivo text-light">Weather Application</span>
</a>
<div class="d-flex align-items-center" >
<form class="w-100 me-3" role="search" >
<div class="input-group mb-3" style=" position: relative; top: 8px;">
<button class="btn btn-secondary primaryBg HoverprimaryBg" id="submit" type="button" style="position: relative; top: -.15px;">submit</button>
<input placeholder="Search Here..." style="height: 2.3em;" id="City" class="w-50 ff-Montserrat primaryBorder form-control" placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon1">
</div>
</form>
<div class="flex-shrink-0 dropdown primaryBorder p-1" style=" position: relative; top: -1px; border-radius: .5em;">
<a href="#" class="d-block link-dark text-decoration-none dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://upload.wikimedia.org/wikipedia/commons/0/0b/Netflix-avatar.png" alt="mdo" width="32" height="32" class="rounded-circle" style="filter: invert(.3) grayscale(.3); object-fit: cover;">
</a>
<ul class="dropdown-menu text-small shadow bg-dark">
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item primaryClr"data-bs-toggle="modal" data-bs-target="#exampleModal" href="#">About Me</a></li>
<li><hr class="dropdown-divider"></li>
</ul>
</div>
</div>
</div>
</header>
<!-- navbar -->
<!-- Model -->
<!-- Modal -->
<div class="modal fade w-100" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-content bg-dark">
<div class="modal-header">
<h1 class="modal-title text-light text-center fs-5 text-uppercase " id="exampleModalLabel">About ME</h1>
<button type="button" class="btn-close primaryBorder bg-light" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body d-flex align-items-center justify-content-between" style="gap: .5em;">
<img src="https://www.svgrepo.com/show/221164/medal-reward.svg" alt="" style="filter: invert(.5) grayscale(.5); height: 100px; position: relative; top:-10px; aspect-ratio: 1; ">
<h4 class="primaryClr ff-Archivo " style="line-height: 1.4; font-size: 20px;">
A FrontEnd Developer, <br>
Rushabh Jain <br>
Use Of API Created This Simlpe Application <br>
Thankyou For Visiting
<li style="list-style: none;"><hr class="dropdown-divider"></li>
<br>
</h4>
</div>
</div>
</div>
</div>
<!-- Model -->
<!-- main -->
<main class="bg-dark">
<div class="container-fluid">
<h2 class="display-6 text-center mb-4 text-light ff-Montserrat">Weather Of <br>"<span id="cityName" class="primaryClr" style="font-weight: bold;"></span>"</h2>
<div class=" mt-5 row row-cols-1 row-cols-md-3 mb-3 text-center">
<div class="col">
<div class="card mb-4 rounded-3 shadow-sm primaryBorder" style="height: 15em;">
<div class="card-header py-3">
<h4 class="my-0 fw-normal ff-Roboto" style="font-weight: bold;">Temperatures</h4>
</div>
<div class="card-body">
<ul class="list-unstyled">
<li class="ff-Montserrat">Temperature is:<span id="temp"></span></li>
<li class="ff-Montserrat">Minimum Temp. is:<span id="min_temp"></span></li>
<li class="ff-Montserrat">Maxmimum Temp. is:<span id="max_temp"></span></li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4 rounded-3 shadow-sm primaryBorder" style="height: 15em;">
<div class="card-header py-3">
<h4 class="my-0 fw-normal ff-Roboto" style="font-weight: bold;">Humidity Info</h4>
</div>
<div class="card-body">
<ul class="list-unstyled ">
<li>Cloud PCT is:<span id="cloud_pct"></span></li>
<li>feels_like is:<span id="feels_like"></span></li>
<li>humidity is:<span id="humidity"></span></li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4 rounded-3 shadow-sm primaryBorder" style="height: 15em;">
<div class="card-header py-3 ">
<h4 class="my-0 fw-normal ff-Roboto" style="font-weight: bold;">Wind Info</h4>
</div>
<div class="card-body">
<ul class="list-unstyled ">
<li>wind_speed is:<span id="wind_speed"></span></li>
<li>wind_degrees is:<span id="wind_degrees"></span></li>
<li>sunrise is:<span id="sunrise"></span></li>
<li>sunset is:<span id="sunset"></span></li>
</ul>
</div>
</div>
</div>
</div>
<h2 class="display-6 text-center mb-4 text-light text-uppercase">weather of other common places</h2>
<div class="coni">
<div class="table-responsive ">
<table class="table text-center primaryBorder text-light">
<thead>
<tr>
<th style="width: 34%;" class="primaryBorder">City's</th>
<th style="width: 22%;" class="primaryBorder">Cloud_pct</th>
<th style="width: 22%;" class="primaryBorder">Temp</th>
<th style="width: 22%;" class="primaryBorder">Feels_like</th>
<th style="width: 22%;" class="primaryBorder">Humidity</th>
<th style="width: 22%;" class="primaryBorder">Max_temp</th>
<th style="width: 22%;" class="primaryBorder">Min_temp</th>
<th style="width: 22%;" class="primaryBorder">Sunrise</th>
<th style="width: 22%;" class="primaryBorder">Sunset</th>
<th style="width: 22%;" class="primaryBorder">Wind_degrees</th>
<th style="width: 22%;" class="primaryBorder">Wind_speed</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="text-center primaryBorder">Shanghai</th>
<td class="primaryBorder"><span id="Shangai_cloud_pc"></span></td>
<td class="primaryBorder"><span id="Shangai_temp"></span></td>
<td class="primaryBorder"><span id="Shangai_feels_like"></span></td>
<td class="primaryBorder"><span id="Shangai_humidity"></span></td>
<td class="primaryBorder"><span id="Shangai_min_temp"></span></td>
<td class="primaryBorder"><span id="Shangai_max_temp"></span></td>
<td class="primaryBorder"><span id="Shangai_sunrise"></span></td>
<td class="primaryBorder"><span id="Shangai_sunset"></span></td>
<td class="primaryBorder"><span id="Shangai_wind_degrees"></span></td>
<td class="primaryBorder"><span id="Shangai_wind_speed"></span></td>
</tr>
<tr>
<th scope="row" class="text-center primaryBorder">Boston</th>
<td class="primaryBorder"><span id="Boston_cloud_pc"></span></td>
<td class="primaryBorder"><span id="Boston_temp"></span></td>
<td class="primaryBorder"><span id="Boston_feels_like"></span></td>
<td class="primaryBorder"><span id="Boston_humidity"></span></td>
<td class="primaryBorder"><span id="Boston_min_temp"></span></td>
<td class="primaryBorder"><span id="Boston_max_temp"></span></td>
<td class="primaryBorder"><span id="Boston_sunrise"></span></td>
<td class="primaryBorder"><span id="Boston_sunset"></span></td>
<td class="primaryBorder"><span id="Boston_wind_degrees"></span></td>
<td class="primaryBorder"><span id="Boston_wind_speed"></span></td>
</tr>
</tbody>
<tbody>
<tr>
<th scope="row" class="text-center primaryBorder">Lucknow</th>
<td class="primaryBorder"><span id="Lucknow_cloud_pc"></span></td>
<td class="primaryBorder"><span id="Lucknow_temp"></span></td>
<td class="primaryBorder"><span id="Lucknow_feels_like"></span></td>
<td class="primaryBorder"><span id="Lucknow_humidity"></span></td>
<td class="primaryBorder"><span id="Lucknow_min_temp"></span></td>
<td class="primaryBorder"><span id="Lucknow_max_temp"></span></td>
<td class="primaryBorder"><span id="Lucknow_sunrise"></span></td>
<td class="primaryBorder"><span id="Lucknow_sunset"></span></td>
<td class="primaryBorder"><span id="Lucknow_wind_degrees"></span></td>
<td class="primaryBorder"><span id="Lucknow_wind_speed"></span></td>
</tr>
<tr>
<th scope="row" class="text-center primaryBorder">Mumbai</th>
<td class="primaryBorder"><span id="Mumbai_cloud_pc"></span></td>
<td class="primaryBorder"><span id="Mumbai_temp"></span></td>
<td class="primaryBorder"><span id="Mumbai_feels_like"></span></td>
<td class="primaryBorder"><span id="Mumbai_humidity"></span></td>
<td class="primaryBorder"><span id="Mumbai_min_temp"></span></td>
<td class="primaryBorder"><span id="Mumbai_max_temp"></span></td>
<td class="primaryBorder"><span id="Mumbai_sunrise"></span></td>
<td class="primaryBorder"><span id="Mumbai_sunset"></span></td>
<td class="primaryBorder"><span id="Mumbai_wind_degrees"></span></td>
<td class="primaryBorder"><span id="Mumbai_wind_speed"></span></td>
</tr>
<tr>
<th scope="row" class="text-center primaryBorder">Ahmedabad</th>
<td class="primaryBorder"><span id="Ahmedabad_cloud_pc"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_temp"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_feels_like"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_humidity"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_min_temp"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_max_temp"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_sunrise"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_sunset"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_wind_degrees"></span></td>
<td class="primaryBorder"><span id="Ahmedabad_wind_speed"></span></td>
</tr>
<tr>
<th scope="row" class="text-center primaryBorder">Surat</th>
<td class="primaryBorder"><span id="Surat_cloud_pc"></span></td>
<td class="primaryBorder"><span id="Surat_temp"></span></td>
<td class="primaryBorder"><span id="Surat_feels_like"></span></td>
<td class="primaryBorder"><span id="Surat_humidity"></span></td>
<td class="primaryBorder"><span id="Surat_min_temp"></span></td>
<td class="primaryBorder"><span id="Surat_max_temp"></span></td>
<td class="primaryBorder"><span id="Surat_sunrise"></span></td>
<td class="primaryBorder"><span id="Surat_sunset"></span></td>
<td class="primaryBorder"><span id="Surat_wind_degrees"></span></td>
<td class="primaryBorder"><span id="Surat_wind_speed"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<!-- main -->
<!-- JavaScript File -->
<script src="script.js"></script>
<!-- Bootstrap JavaScript File -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>