-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
199 lines (185 loc) · 8.34 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
<!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" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css"
/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"/>
<link rel="stylesheet" href="assets/css/style.css" />
<title>Weather Dashboard</title>
</head>
<body id="mobile-media-query">
<header class="uk-background-default">
<h1
class="
uk-heading-large uk-heading-divider uk-align-center uk-text-center
"
>
Weather Dashboard
</h1>
</header>
<div id="alert" uk-alert class="uk-text-center">
Search for any city in the world! Just be sure to match the format of city, state, country!<a class="uk-alert-close" uk-close></a>
</div>
<main id="mobile-media-query" class="uk-flex">
<!-- Search and Search History -->
<div
id="searchBox"
class="uk-section "
uk-scrollspy="target: ; cls: uk-animation-slide-bottom; delay: 3200"
>
<div class="uk-margin">
<form id="searchForm" class="uk-search uk-search-default">
<a id="btn" href="" class="uk-search-icon-flip" uk-search-icon></a>
<input id="searchInput" class="uk-search-input" type="text" placeholder="Seattle, Washington" />
</form>
</div>
<button
id="btn-search-history"
class="uk-button uk-button-default"
type="button"
uk-toggle="target: #offcanvas-overlay"
>
history
</button>
<div id="offcanvas-overlay" uk-offcanvas="overlay: true">
<div class="uk-offcanvas-bar">
<button id="sidebarBtn" class="uk-offcanvas-close" type="button" uk-close></button>
<h3 id="search-history-h3">Search History</h3>
<ul id="search-history-ul">
</ul>
</div>
</div>
</div>
<!-- Weather Specifics and 7-Day forecast -->
<div
id="currentDisplay"
class="uk-section uk-width-expand uk-flex uk-flex-center"
uk-scrollspy="target: > div; cls: uk-animation-fade; delay: 350"
>
<div id="city-focused" class=" uk-width-1-2 uk-flex uk-flex-center">
<div class="uk-flex uk-flex-column">
<h1 id="cityNameDisplay" class="uk-article-title"></h1>
<p class="uk-article-meta uk-text-large"> <span id="currentDate"></span></p>
<img class="uk-align-center uk-margin-top uk-padding-top" id = "weatherIconAdjust" src="" alt="weather icon"/>
<p class="uk-article-meta uk-text-large">Temp: <span id="temp"></span> Fareinheit</p>
<p class="uk-article-meta uk-text-large">Wind: <span id="wind"></span> mph</p>
<p class="uk-article-meta uk-text-large">Humidity: <span id="humidity"></span></p>
<p class="uk-article-meta uk-text-large">UV Index: <span id="uv"></span></p>
</div>
<div id="imgDiv" class="uk-width-expand uk-flex-center">
<img class="uk-align-center uk-margin-top uk-padding-top" id = "weatherIcon" src="" alt="weather icon"/>
</div>
</div>
</div>
</main>
<!-- Cards for Daily Forcast -->
<div class="uk-flex uk-flex-center uk-margin-bottom">
<div
id="day-card"
class="uk-child-width-auto uk-text-center"
uk-scrollspy="target: > div; cls: uk-animation-fade; delay: 500"
uk-grid
>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day1"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay1" src="" alt="weather icon">
<p>Temp: <span id="day1Temp"></span></p>
<p>Wind: <span id="day1Wind"></span></p>
<p>Humidity: <span id="day1Humidity"></span></p>
</div>
</div>
</div>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day2"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay2" src="" alt="weather icon">
<p>Temp: <span id="day2Temp"></span></p>
<p>Wind: <span id="day2Wind"></span></p>
<p>Humidity: <span id="day2Humidity"></span></p>
</div>
</div>
</div>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day3"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay3" src="" alt="weather icon">
<p>Temp: <span id="day3Temp"></span></p>
<p>Wind: <span id="day3Wind"></span></p>
<p>Humidity: <span id="day3Humidity"></span></p>
</div>
</div>
</div>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day4"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay4" src="" alt="weather icon">
<p>Temp: <span id="day4Temp"></span></p>
<p>Wind: <span id="day4Wind"></span></p>
<p>Humidity: <span id="day4Humidity"></span></p>
</div>
</div>
</div>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day5"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay5" src="" alt="weather icon">
<p>Temp: <span id="day5Temp"></span></p>
<p>Wind: <span id="day5Wind"></span></p>
<p>Humidity: <span id="day5Humidity"></span></p>
</div>
</div>
</div>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day6"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay6" src="" alt="weather icon">
<p>Temp: <span id="day6Temp"></span></p>
<p>Wind: <span id="day6Wind"></span></p>
<p>Humidity: <span id="day6Humidity"></span></p>
</div>
</div>
</div>
<div class='cardWhole'>
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header uk-text-center">
<h5 id="day7"></h5>
</div>
<div class="uk-card-body uk-text-left">
<img class="uk-align-center" id="iconDay7" src="" alt="weather icon">
<p>Temp: <span id="day7Temp"></span></p>
<p>Wind: <span id="day7Wind"></span></p>
<p>Humidity: <span id="day7Humidity"></span></p>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="assets/js/script.js"></script>
</html>