-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
189 lines (177 loc) · 8.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel='stylesheet' href='style.css'>
<style type="text/css">
button,
div,
form,
input {
margin: 10px;
}
</style>
<title>Weather</title>
</head>
<body>
<nav class="navbar navbar-light justify-content-center mpy-2 bg-dark">
<span class="navbar-brand mb-0 text-white h1">Weather Dashboard</span>
</nav>
<div clas="container bg-light">
<div class="row-sm bg-light">
<!--container for the city search -->
<h1>City Search</h1>
<form class="col" id="city-form">
<input id="cityTerm" type="text" class=" form-control" placeholder="City name..."
class="input-group-append">
<button id="searchBtn" class="btn btn-lg btn-primary" type="button" id="button-addon2">Search<i
class="far fa-search"></i></button>
<div class="card">
<ul id="citys-go-here" class="list">
</ul>
</div>
</form>
<!--container for the data to display of the selected city -->
<div class="col border border-dark" id='gif'>
<div class="forecast">
<div class="row bg-primary border border-dark">
<h1 class="text-light currentCity">City Name</h1>
<h1 class="currentDate"></h1>
<img class="weathericon"></img>
</div>
<div class="text-white row">Temperature:
<h2 id="temperature"class="text-white"></h2>
</div>
<div class="text-white row">Humidity:
<h3 id="humidity"class="text-white"></h3>
</div>
<div class="text-white row">WindSpeed:
<h4 id="windSpeed"class="text-white"></h4>
</div>
<div class="text-white row">Uv Index:
<h5 id="uvIndex"class="text-white"></h5>
</div>
</div>
<!--the weekforecast-->
<div class="forecast border border-dark container">
<h1 class="text-white">15-hour Forecast</h1>
<div class="row">
<div class="col-sm-2">
<div class="card">
<div class=" row bg-primary cardBody">
<div>day:
<h2 id="day1"></h2>
</div>
<div>Temperature:
<h2 id="temperature1"></h2>
</div>
<div>Humidity:
<h3 id="humidity1"></h3>
</div>
<div>WindSpeed:
<h4 id="windSpeed1"></h4>
</div>
<div>Uv Index:
<h5 id="uvIndex1"></h5>
</div>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="card">
<div class="row bg-primary cardBody">
<div>day:
<h2 id="day2"></h2>
</div>
<div>Temperature:
<h2 id="temperature2"></h2>
</div>
<div>Humidity:
<h3 id="humidity2"></h3>
</div>
<div>WindSpeed:
<h4 id="windSpeed2"></h4>
</div>
<div>Uv Index:
<h5 id="uvIndex2"></h5>
</div>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="card">
<div class="row bg-primary cardBody">
<div>day:
<h2 id="day3"></h2>
</div>
<div>Temperature:
<h2 id="temperature3"></h2>
</div>
<div>Humidity:
<h3 id="humidity3"></h3>
</div>
<div>WindSpeed:
<h4 id="windSpeed3"></h4>
</div>
<div>Uv Index:
<h5 id="uvIndex3"></h5>
</div>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="card">
<div class="row bg-primary cardBody">
<div>day:
<h2 id="day4"></h2>
</div>
<div>Temperature:
<h2 id="temperature4"></h2>
</div>
<div>Humidity:
<h3 id="humidity4"></h3>
</div>
<div>WindSpeed:
<h4 id="windSpeed4"></h4>
</div>
<div>Uv Index:
<h5 id="uvIndex4"></h5>
</div>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="card">
<div class="row bg-primary cardBody">
<div>day:
<h2 id="day5"></h2>
</div>
<div>Temperature:
<h2 id="temperature5"></h2>
</div>
<div>Humidity:
<h3 id="humidity5"></h3>
</div>
<div>WindSpeed:
<h4 id="windSpeed5"></h4>
</div>
<div>Uv Index:
<h5 id="uvIndex5"></h5>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="weather.js"></script>
</html>