-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
223 lines (203 loc) · 8.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<link rel="stylesheet" href="./style.css">
</head>
</head>
<body>
<div class="container">
<h1>This is Bharat ❣ weather App</h1>
<form onsubmit="getData(event)" class="searchData form">
<label for="search">
<input class="input" id="inputBox" type="text" placeholder="Enter the city name">
<div class="fancy-bg"></div>
<div class="search">
<svg viewBox="0 0 24 24" aria-hidden="true"
class="r-14j79pv r-4qtqp9 r-yyyyoo r-1xvli5t r-dnmrzs r-4wgw6l r-f727ji r-bnwqim r-1plcrui r-lrvibr">
<g>
<path
d="M21.53 20.47l-3.66-3.66C19.195 15.24 20 13.214 20 11c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9c2.215 0 4.24-.804 5.808-2.13l3.66 3.66c.147.146.34.22.53.22s.385-.073.53-.22c.295-.293.295-.767.002-1.06zM3.5 11c0-4.135 3.365-7.5 7.5-7.5s7.5 3.365 7.5 7.5-3.365 7.5-7.5 7.5-7.5-3.365-7.5-7.5z">
</path>
</g>
</svg>
</div>
<button class="close-btn" type="reset">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</button>
</label>
</form>
<div class="cards">
<div class="halfCard">
<div class="cityName">
<div class="city"><img src="./assets/images/location (1).png" width="40px" alt="">
<span>City Name :</span>
<span id="cname"> _____</span> <span>State Name :</span><span
id="sname"> _____</span>
</div>
</div>
<div class="currentTimeBox">
<p>Current Time</p>
<p id="currentTime">wait</p>
</div>
</div>
<div class="AnotherHalf">
<div class="smallCards">
<div class="country">
<p>country</p>
<h2 id="countryName" style="
margin-top: 43px;"></h2>
</div>
</div>
<div class="smallCards">
<div class="temperature">
<img src="./assets/images/temperature.png" width="50px" style="padding:4px" alt="">
<div class="tm">
<h2 id="temp"></h2>
<div style="margin-top: 18px;
font-weight: bolder;
font-size: 16px;"><sup>o</sup>C</div>
</div>
</div>
</div>
<div class="smallCards">
<div class="condition">
<img width="48px" id="logoImage" src="" alt="condition">
<h2 id="curCondition"></h2>
</div>
</div>
<div class="smallCards">
<div class="windspeed-1">
<img src="./assets/images/wind-socket.png" width="50px" style="padding:4px" alt="">
<div class="tm">
<h2 id="wind-speed"></h2>
<div style="margin-top: 18px;
font-weight: bolder;
font-size: 16px;">KPH</div>
</div>
</div>
</div>
<div class="smallCards">
<div class="windspeed-1">
<img src="./assets/images/humidity.png" width="50px" style="padding:4px" alt="">
<div class="tm">
<h2 id="humidity"></h2>
<div style="margin-top: 18px;
font-weight: bolder;
font-size: 16px;">%</div>
</div>
</div>
</div>
<div class="smallCards">
<div class="windspeed-1">
<img src="./assets/images/pressure.png" width="50px" style="padding:4px" alt="">
<div class="tm">
<h2 id="pressure "></h2>
<div style="margin-top: 18px;
font-weight: bolder;
font-size: 16px;">Milibar</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="todayfaar">
<div class="todayfar">Sunrise
<img src="./assets/images/sunrise.png" width="50px" style="padding:4px" alt="">
<div class="sunRise"></div>
</div>
<div class="todayfar">Sunset
<img src="./assets/images/beach.png" width="50px" style="padding:4px" alt="">
<div class="sunSet"></div>
</div>
</div>
<!-- Weather Forcast data -->
<h1 class="td-weather">Today's Weather</h1>
<div class="parent">
<div class="div1 newfor">
<h2 class="timee">Time</h2>
<div class="forcast">
<div class="forcast-1">
<div class="tempee"></div>
<div><sup>o</sup>C</div>
</div>
<div>
<img width="48px" class="imgaee" src="" alt="condition">
</div>
</div>
</div>
<div class="div2 newfor">
<h2 class="timee">Time</h2>
<div class="forcast">
<div class="forcast-1">
<div class="tempee"></div>
<div><sup>o</sup>C</div>
</div>
<div>
<img width="48px" class="imgaee" src="" alt="condition">
</div>
</div>
</div>
<div class="div3 newfor">
<h2 class="timee">Time</h2>
<div class="forcast">
<div class="forcast-1">
<div class="tempee"></div>
<div><sup>o</sup>C</div>
</div>
<div>
<img width="48px" class="imgaee" src="" alt="condition">
</div>
</div>
</div>
<div class="div4 newfor">
<h2 class="timee">Time</h2>
<div class="forcast">
<div class="forcast-1">
<div class="tempee"></div>
<div><sup>o</sup>C</div>
</div>
<div>
<img width="48px" class="imgaee" src="" alt="condition">
</div>
</div>
</div>
<div class="div5 newfor">
<h2 class="timee">Time</h2>
<div class="forcast">
<div class="forcast-1">
<div class="tempee"></div>
<div><sup>o</sup>C</div>
</div>
<div>
<img width="48px" class="imgaee" src="" alt="condition">
</div>
</div>
</div>
<div class="div6 newfor">
<h2 class="timee">Time</h2>
<div class="forcast">
<div class="forcast-1">
<div class="tempee"></div>
<div><sup>o</sup>C</div>
</div>
<div>
<img width="48px" class="imgaee" src="" alt="condition">
</div>
</div>
</div>
</div>
<footer>
<h4 style="margin-left: 10px;">Created By Manish Kumar</h4>
</footer>
</body>
</html>
<script src="./script.js"></script>