-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
225 lines (189 loc) · 9.02 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App Using OpenWeatherMap API</title>
<link rel="icon" type="image/x-icon" href="icons/favicon.ico">
<link rel="stylesheet" href="styles/style.css">
<link rel="prefetch" href="media/day1.jpg">
<link rel="prefetch" href="media/day2.jpg">
<link rel="prefetch" href="media/day3.jpg">
<link rel="prefetch" href="media/day4.jpg">
<link rel="prefetch" href="media/day5.jpg">
<link rel="prefetch" href="media/night1.jpg">
<link rel="prefetch" href="media/night2.jpg">
<link rel="prefetch" href="media/night3.jpg">
<link rel="prefetch" href="media/night4.jpg">
<link rel="prefetch" href="media/night5.jpg">
<link rel="prefetch" href="media/rainy1.jpg">
<link rel="prefetch" href="media/rainy2.jpg">
<link rel="prefetch" href="media/rainy3.jpg">
<link rel="prefetch" href="media/rainy4.jpg">
<link rel="prefetch" href="media/rainy5.jpg">
<link rel="prefetch" href="media/cloudy1.jpg">
<link rel="prefetch" href="media/cloudy2.jpg">
<link rel="prefetch" href="media/cloudy3.jpg">
<link rel="prefetch" href="media/cloudy4.jpg">
<link rel="prefetch" href="media/cloudy5.jpg">
<link rel="prefetch" href="icons/loader.gif">
<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=Montserrat:wght@500&display=swap" rel="stylesheet">
<style>
body {
/* background-image: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)) , url('media/day1.jpg'); */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
/* Added background-repeat and set it to no-repeat to help prevent the images from duplicating. I added !important to
* background-repeat and background-size in order to place importance on the background images not repeating and
* to cover the entire webpage. Phillip Andrews
*/
background-repeat: no-repeat !important;
background-size: cover !important;
background-attachment: fixed;
height: 100vh;
}
@media (max-width: 600px) {
body {
height: 100%;
}
}
</style>
</head>
<body>
<ul class="navbar">
<li style="float: left; margin-left: -10px;" class="forecast"><a class="repo-link"
href="https://github.com/kshitizrohilla/weather-app-using-openweathermap-api/">⛄ Forecast</a></li>
<li><a href="#">⟳</a></li>
<li><a href="#">☆<!--★--></a></li>
<li><a href="#">···</a></li>
<li><input spellcheck="false" class="search-city" id="searchCity" type="text" autocomplete="off"
placeholder="🔍︎ Search City"></li>
</ul>
<ul class="mobile-navbar">
<li><input spellcheck="false" class="mobile-search-city" id="mobileSearchCity" type="text" autocomplete="off"
placeholder="Search City..."></li>
</ul>
<h1 class="location-name" id="locationName">Search City...</h1>
<div class="temperature-container">
<div class="temperature-icon"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="temperature-value" id="temperatureValue"></div>
</div>
<h2 class="weather-type" id="weatherType"></h2>
<div class="additionals-first-row">
<span class="air-quality-additional">
<span class="air-quality-additional-label">Air Quality Index </span>
<span class="air-quality-index-additional-value">Moderate</span>
</span>
<span class="real-feel-additional">
<span class="real-feel-additional-label">Real Feel </span>
<span class="real-feel-additional-value" id="realFeelAdditionalValue">-</span>
</span>
<span class="humidity-additional">
<span class="humidity-additional-label">Humidity </span>
<span class="humidity-additional-value" id="humidityAdditionalValue">-</span>
</span>
<span class="max-temperature-additional">
<span class="max-temperature-additional-label">Highest Temperature </span>
<span class="max-temperature-additional-value" id="maxTemperatureAdditionalValue">-</span>
</span>
<span class="min-temperature-additional">
<span class="min-temperature-additional-label">Lowest Temperature </span>
<span class="min-temperature-additional-value" id="minTemperatureAdditionalValue">-</span>
</span>
</div>
<div class="additionals-second-row">
<span class="wind-speed-additional">
<span class="wind-speed-additional-label">Wind Speed </span>
<span class="wind-speed-additional-value" id="windSpeedAdditionalValue">-</span>
</span>
<span class="wind-direction-additional">
<span class="wind-direction-additional-label">Wind Direction </span>
<span class="wind-direction-additional-value" id="windDirectionAdditionalValue">-</span>
</span>
<span class="visibility-additional">
<span class="visibility-additional-label">Visibility </span>
<span class="visibility-additional-value" id="visibilityAdditionalValue">-</span>
</span>
<span class="pressure-additional">
<span class="pressure-additional-label">Pressure </span>
<span class="pressure-additional-value" id="pressureAdditionalValue">-</span>
</span>
<span class="sunrise-additional">
<span class="sunrise-additional-label">Sunrise </span>
<span class="sunrise-additional-value" id="sunriseAdditionalValue">-</span>
</span>
<span class="sunset-additional">
<span class="sunset-additional-label">Sunset </span>
<span class="sunset-additional-value" id="sunsetAdditionalValue">-</span>
</span>
</div>
<br>
<!-- <div class="separator"></div> -->
<div class="daily-forecast">
<h2 class="daily-forecast-label">Daily</h2>
<div id="forecast-container" class="forecast-container">
<!--
<div class="daily-forecast-card">
<p class="daily-forecast-date">Fri 27</p>
<div class="daily-forecast-logo"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="max-min-temperature-daily-forecast">
<span class="max-daily-forecast">37<sup>o</sup>C</span>
<span class="min-daily-forecast">25<sup>o</sup>C</span>
</div>
<p class="weather-type-daily-forecast">Sunny</p>
</div>
<div class="daily-forecast-card">
<p class="daily-forecast-date">Fri 27</p>
<div class="daily-forecast-logo"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="max-min-temperature-daily-forecast">
<span class="max-daily-forecast">37<sup>o</sup>C</span>
<span class="min-daily-forecast">25<sup>o</sup>C</span>
</div>
<p class="weather-type-daily-forecast">Sunny</p>
</div>
<div class="daily-forecast-card">
<p class="daily-forecast-date">Fri 27</p>
<div class="daily-forecast-logo"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="max-min-temperature-daily-forecast">
<span class="max-daily-forecast">37<sup>o</sup>C</span>
<span class="min-daily-forecast">25<sup>o</sup>C</span>
</div>
<p class="weather-type-daily-forecast">Sunny</p>
</div>
<div class="daily-forecast-card">
<p class="daily-forecast-date">Fri 27</p>
<div class="daily-forecast-logo"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="max-min-temperature-daily-forecast">
<span class="max-daily-forecast">37<sup>o</sup>C</span>
<span class="min-daily-forecast">25<sup>o</sup>C</span>
</div>
<p class="weather-type-daily-forecast">Sunny</p>
</div>
<div class="daily-forecast-card">
<p class="daily-forecast-date">Fri 27</p>
<div class="daily-forecast-logo"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="max-min-temperature-daily-forecast">
<span class="max-daily-forecast">37<sup>o</sup>C</span>
<span class="min-daily-forecast">25<sup>o</sup>C</span>
</div>
<p class="weather-type-daily-forecast">Sunny</p>
</div>
<div class="daily-forecast-card">
<p class="daily-forecast-date">Fri 27</p>
<div class="daily-forecast-logo"><img class="imgs-as-icons" src="icons/sunny.png"></div>
<div class="max-min-temperature-daily-forecast">
<span class="max-daily-forecast">37<sup>o</sup>C</span>
<span class="min-daily-forecast">25<sup>o</sup>C</span>
</div>
<p class="weather-type-daily-forecast">Sunny</p>
</div> -->
</div>
</div>
<script src="scripts/script.js"></script>
<script src="scripts/mobile.js"></script>
<br><br><br><br><br>
</body>
</html>