-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
256 lines (197 loc) · 10 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
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en-us">
<head>
<!-- meta data -->
<meta charset="UTF-8" />
<meta name="description" content="Website grab weather inforamtion from a server API" />
<meta name="keywords" content="weather, forecast, ikemous, iek, barranco, city, rain, hot, cold," />
<meta name="author" content="Ikemous" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- End Meta Data -->
<!-- Title -->
<title>Weather</title>
<!-- free image from https://www.freeimages.com/photo/clipart-cloud-1335934 -->
<link rel="icon" href="./Assets/images/cloud.jpg" />
<!-- Link CSS Style Sheet -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="./Assets/css/style.css" />
<!-- End CSS Style Sheet -->
</head>
<body>
<div class="wrapper">
<!-- Weather Dashboard Header -->
<header class="container-full">
<section class="bg-dark row">
<article class="col-sm-12">
<h1 class="text-center">Weather Dashboard</h1>
</article>
</section>
</header>
<!-- Weather Dashboard Header -->
<div class="container">
<!-- Weather Dashboard Instructions Jumbotron -->
<article class="jumbotron">
<h1 class="display-6">How This Works!</h1>
<p class="lead">Purpose: To display weather Information from an API Follow The Easy Steps Below!</p>
<hr class="my-2">
<ul>
<li>Type Desired City</li>
<li>Press "Enter" or the Search Button</li>
</ul>
<p class="lead">Want to look at a previously searched City?</p>
<hr class="my-2">
<ul>
<li>Click on the saved cities header</li>
<li>Pick which city you would like to view</li>
</ul>
<hr class="my-2">
<p class="lead">It's that simple!</p>
</article>
<!-- End Instructions JumboTron -->
</div>
<!-- container -->
<main class="container weather">
<!-- big row to hold all items -->
<section class="row">
<!-- col 4? Hold the user interaction section-->
<section class="col-sm-3">
<article class="row listCol">
<h5>Search For City:</h5>
</article>
<!-- User Input Section -->
<article class="row listCol">
<div class="input-group">
<input type="text" class="form-control" placeholder="City Name" id="cityInput" />
<div class="input-group-append">
<button class="btn btn-success" type="button" id="addBtn"><i class="fas fa-search"></i></button>
</div>
</div>
</article>
<!-- End User Input Section -->
<!-- To hold all main city items -->
<article class="row listCol">
<ul class="list-group" id="preSetCities">
<li class="list-group-item" data-search="Bujumbura">Bujumbura</li>
<li class="list-group-item" data-search="London">London</li>
</ul>
</article>
<!-- End all main city Items -->
<!-- Hold all saved city items -->
<article class="row listCol">
<div class="dropDown col-sm-12">
<button id="savedListButton">Searched Cities</button>
<div class="dropDownContent">
<ul class="list-group" id="citiesList">
</ul>
</div>
</div>
<button id="clearButton">Clear History</button>
</article>
<!-- End all saved city items -->
</section>
<!-- End User Interaction Section -->
<!-- Hold all cards for weather information -->
<section class="col-sm-9 weatherRow">
<!-- Hold main card body -->
<section class="row ">
<div class="card mainCard">
<div class="card-body">
<div class="row">
<h4 class="col-sm-12 card-title text-center" id="cityHeader"> City </h4>
</div>
<div class="row">
<div class="col-sm-6">
<p class="card-text" id="tempText"> Temp: </p>
<p class="card-text" id="humidityText"> Humidity: </p>
<p class="card-text" id="windSpeedText"> WindSpeed: </p>
<p class="card-text">UV Index: <span id="indexText"></span> </p>
</div>
<div class="col-sm-6">
<img class="row" id="mainCardIcon" />
</div>
</div>
</div>
</div>
</section>
<!-- End main card body -->
<h3>5 Day Forecast: </h3>
<!-- Hold forecast cards -->
<article class="card-deck" id="forecastDiv">
</article>
<!-- End forecast cards -->
</section>
<!-- End Hold all cards for weather information -->
</section>
</main>
<!-- Footer -->
<footer class="container-full text-center">
<!-- Grid row -->
<div class= "row">
<!-- Grid column -->
<div class="col-md-6">
<!-- Content -->
<h5 class="text-uppercase">Weather Dashboard</h5>
<p>Hope You Enjoyed your experience on this site. If interested, check out some of the links for more
information or even some of my social links.❤️❤️❤️❤️❤️❤️❤️❤️
</p>
</div>
<!-- Grid column -->
<hr/>
<!-- Grid column -->
<div class="col-md-6">
<!-- Links -->
<h5 class="text-uppercase">Useful Links</h5>
<ul class="list-unstyled">
<li>
<a href="https://openweathermap.org/api" rel="noopener noreferrer" target="_blank">Weather API</a>
</li>
<li>
<a href="https://openweathermap.org/weather-conditions" rel="noopener noreferrer" target="_blank">Weather Links</a>
</li>
<li>
<a href="https://openweathermap.org/weathermap?basemap=map&cities=true&layer=temperature&lat=40.6661&lon=-111.9880&zoom=5" rel="noopener noreferrer" target="_blank">Weather Map</a>
</li>
<li>
<a href="https://en.wikipedia.org/wiki/Ultraviolet_index" rel="noopener noreferrer" target="_blank">UV Index Information</a>
</li>
</ul>
</div>
<!-- Social buttons -->
<ul class="list-unstyled list-inline text-center">
<li class="list-inline-item">
<a class="btn-floating btn-fb mx-1" href="https://www.facebook.com/ikemous" rel="noopener noreferrer" target="_blank">
<i class="fab fa-facebook-f"> </i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-tw mx-1" href="https://twitter.com/real_ikemous" rel="noopener noreferrer" target="_blank">
<i class="fab fa-twitter"> </i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-li mx-1" href="https://www.linkedin.com/in/ike-barranco/" rel="noopener noreferrer" target="_blank">
<i class="fab fa-linkedin-in"> </i>
</a>
</li>
<li class="list-inline-item">
<a class="btn-floating btn-dribbble mx-1" href="https://github.com/ikemous" rel="noopener noreferrer" target="_blank">
<i class="fab fa-github"></i>
</a>
</li>
</ul>
<!-- Social buttons -->
</div>
<!-- Grid row -->
</footer>
<!-- End Footer -->
</div>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="./Assets/js/myScript.js"></script>
<!-- End Scripts -->
</body>
</html>