-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
150 lines (136 loc) · 7.94 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
<!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="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
</head>
<body>
<header class="custom-header text-white text-center">
<h1>Weather Dashboard</h1>
</header>
<main class="container-fluid custom-main">
<div class="my-2 mx-5">
<section class="row">
<div class="col-12 col-md-2">
<h2>Search for a city:</h2>
<div class="input-group w-100">
<div class="form-outline w-100">
<input id="city-search-input" type="search" id="form1" class="form-control" />
<label class="form-label" for="form1"></label>
</div>
<button type="submit" class="btn btn-secondary btn-block custom-btn-search"
id="search-button">GET WEATHER</button>
</div>
<hr>
<div id="btnList">
</div>
</div>
<!--Current Day's Forecast-->
<div class="col-12 col-md-10">
<div class="card">
<h3 id="todayCardHeader" class="card-header custom-card-header text-white">City, Date</h3>
<div class="card-body custom-card-body">
<img id="todayIcon">
<ul class="card-text list-unstyled h5">
<li class="my-2">Temp: <span id="currentTemp" class="text-white"></span></li>
<li class="my-2">Humidity: <span id="currentHumidity" class="text-white"></span></li>
<li class="my-2">Wind Speed: <span id="currentWindSpeed" class="text-white"></span></li>
<li class="my-2">UV Index: <span id="currentUV" class="text-white"></span></li>
</ul>
</div>
</div>
<!--5-Day Forecast-->
<div class="custom-container">
<div class="col-12 col-md-10">
<h3 class="p-0">5-Day Forecast:</h3>
</div>
<section class="row justify-content-between">
<!--Day 1-->
<div class="col-12 col-sm-6 col-lg-2">
<div class="card">
<h3 id="day1CardHeader" class="card-header custom-card-header">Day 1</h3>
<div class="card-body custom-card-body">
<img id="day1Icon">
<ul class="card-text list-unstyled h5">
<li class="my-2">Temp: <span id="day1Temp"></span></li>
<li class="my-2">Wind: <span id="day1Wind"></span></li>
<li class="my-2">Humidity: <span id="day1Humidity"></span></li>
</ul>
</div>
</div>
</div>
<!--Day 2-->
<div class="col-12 col-sm-6 col-lg-2">
<div class="card">
<h3 id="day2CardHeader" class="card-header custom-card-header">Day 2</h3>
<div class="card-body custom-card-body">
<img id="day2Icon">
<ul class="card-text list-unstyled h5">
<li class="my-2">Temp: <span id="day2Temp"></span></li>
<li class="my-2">Wind: <span id="day2Wind"></span></li>
<li class="my-2">Humidity: <span id="day2Humidity"></span></li>
</ul>
</div>
</div>
</div>
<!--Day 3-->
<div class="col-12 col-sm-6 col-lg-2">
<div class="card">
<h3 id="day3CardHeader" class="card-header custom-card-header">Day 3</h3>
<div class="card-body custom-card-body">
<img id="day3Icon">
<ul class="card-text list-unstyled h5">
<li class="my-2">Temp: <span id="day3Temp"></span></li>
<li class="my-2">Wind: <span id="day3Wind"></span></li>
<li class="my-2">Humidity: <span id="day3Humidity"></span></li>
</ul>
</div>
</div>
</div>
<!--Day 4-->
<div class="col-12 col-sm-6 col-lg-2">
<div class="card">
<h3 id="day4CardHeader" class="card-header custom-card-header">Day 4</h3>
<div class="card-body custom-card-body">
<img id="day4Icon">
<ul class="card-text list-unstyled h5">
<li class="my-2">Temp: <span id="day4Temp"></span></li>
<li class="my-2">Wind: <span id="day4Wind"></span></li>
<li class="my-2">Humidity: <span id="day4Humidity"></span></li>
</ul>
</div>
</div>
</div>
<!--Day 5-->
<div class="col-12 col-sm-6 col-lg-2">
<div class="card">
<h3 id="day5CardHeader" class="card-header custom-card-header">Day 5</h3>
<div class="card-body custom-card-body">
<img id="day5Icon">
<ul class="card-text list-unstyled h5">
<li class="my-2">Temp: <span id="day5Temp"></span></li>
<li class="my-2">Wind: <span id="day5Wind"></span></li>
<li class="my-2">Humidity: <span id="day5Humidity"></span></li>
</ul>
</div>
</div>
</div>
</section>
</div>
</div>
</section>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="./scripts/logic.js"></script>
</body>
</html>