-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
201 lines (201 loc) · 6.46 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
<!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" />
<script src="https://cdn.plot.ly/plotly-2.18.0.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- CSS only -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="src/styles.css" />
<title>My Weather</title>
</head>
<body>
<!-- https://chessy969358.invisionapp.com/freehand/SheCodes-Weather-Website-7CxnuvCmO?dsid_h=3008d4dcd9c636e91fedd8604088ab77509649a1fee4cdec6c7ace57d47099b1&uid_h=dfddab8b9824e6b314d1587b113f6d262503027f6588464d15fc5dcad3f808a5 -->
<div class="image-wrapper">
<div class="container">
<div class="row" id="heading">
<div class="col">
<h1>my Weather</h1>
</div>
<div class="col align-self-end">
<form action="" id="searchForm">
<div class="input-group mb-3">
<input
type="text"
class="form-control"
placeholder="get your weather in ..."
id="citySearch"
aria-label="City Search"
aria-describedby="basic-addon2"
/>
<div class="input-group-append">
<button
class="btn btn-outline-secondary"
type="submit"
id="citySearchButton"
>
<img
id="searchIcon"
src="images/search.svg"
alt=""
width="20"
/>
</button>
</div>
</div>
</form>
</div>
</div>
<div id="main">
<div class="row" id="currentCity">
<div class="col">
<p>Weather in <span id="currentCityName">Munich</span></p>
</div>
<div class="col text-right">
<a href="#" id="CurrentLocation"
><span
style="font-weight: normal"
title="find weather at current location"
>🚩</span
></a
>
</div>
</div>
<div class="row" id="currentWeather">
<div class="col">
<p>
<img src="" alt="Weather Icon" id="emoji" />
<span id="temperatureValue">11</span
><span class="units">°C</span>
</p>
</div>
<div class="col">
<ul>
<li><span id="description">Clear</span></li>
<li>Humidity: <span id="humidity">73</span>%</li>
<li>Wind: <span id="wind">2</span> km/h</li>
</ul>
</div>
</div>
<hr />
<div class="row" id="forcast">
<div class="col">
<div id="forcast-date-0">Nov. 4</div>
<div class="weekDay" id="forcast-day-0">today</div>
<div class="temperature temperatureMax">
<span class="temperatureLabel">max. </span>
<span class="temperatureValue" id="forcast-temp-max-0">15</span>
<span>°C</span>
</div>
<div class="temperature temperatureMin">
<span class="temperatureLabel">min. </span>
<span class="temperatureValue" id="forcast-temp-min-0">10</span>
<span>°C</span>
</div>
<div class="emoji">
<img src="" alt="Weather Icon" id="forcast-emoji-0" />
</div>
</div>
<div class="col">
<div id="forcast-date-1">Nov. 5</div>
<div class="weekDay" id="forcast-day-1">Sunday</div>
<div class="temperature temperatureMax">
<span class="temperatureLabel">max. </span>
<span class="temperatureValue" id="forcast-temp-max-1">15</span>
<span>°C</span>
</div>
<div class="temperature temperatureMin">
<span class="temperatureLabel">min. </span>
<span class="temperatureValue" id="forcast-temp-min-1">10</span>
<span>°C</span>
</div>
<div class="emoji">
<img src="" alt="Weather Icon" id="forcast-emoji-1" />
</div>
</div>
<div class="col">
<div id="forcast-date-2">Nov. 6</div>
<div class="weekDay" id="forcast-day-2">Monday</div>
<div class="temperature temperatureMax">
<span class="temperatureLabel">max. </span>
<span class="temperatureValue" id="forcast-temp-max-2">15</span>
<span>°C</span>
</div>
<div class="temperature temperatureMin">
<span class="temperatureLabel">min. </span>
<span class="temperatureValue" id="forcast-temp-min-2">10</span>
<span>°C</span>
</div>
<div class="emoji">
<img src="" alt="Weather Icon" id="forcast-emoji-2" />
</div>
</div>
<div class="col">
<div id="forcast-date-3">Nov. 7</div>
<div class="weekDay" id="forcast-day-3">Tuesday</div>
<div class="temperature temperatureMax">
<span class="temperatureLabel">max. </span>
<span class="temperatureValue" id="forcast-temp-max-3">15</span>
<span>°C</span>
</div>
<div class="temperature temperatureMin">
<span class="temperatureLabel">min. </span>
<span class="temperatureValue" id="forcast-temp-min-3">10</span>
<span>°C</span>
</div>
<div class="emoji">
<img src="" alt="Weather Icon" id="forcast-emoji-3" />
</div>
</div>
<div class="col">
<div id="forcast-date-4">Nov. 8</div>
<div class="weekDay" id="forcast-day-4">Wednesday</div>
<div class="temperature temperatureMax">
<span class="temperatureLabel">max. </span>
<span class="temperatureValue" id="forcast-temp-max-4">15</span>
<span>°C</span>
</div>
<div class="temperature temperatureMin">
<span class="temperatureLabel">min. </span>
<span class="temperatureValue" id="forcast-temp-min-4">10</span>
<span>°C</span>
</div>
<div class="emoji">
<img src="" alt="Weather Icon" id="forcast-emoji-4" />
</div>
</div>
</div>
<hr />
<div class="row">
<div id="graphic"></div>
</div>
</div>
<div id="footer">
<div class="row">
<div class="col">
<p>
<a
href="https://github.com/leon8889/SheCodes-WeatherApp"
target="_blank"
>Source code</a
>
by leon8889
</p>
</div>
<div class="col">
<p id="currentDate">Tuesday 16:00</p>
</div>
</div>
</div>
</div>
</div>
<script src="src/index.js"></script>
</body>
</html>