-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (86 loc) · 3.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>
<script
src="https://kit.fontawesome.com/3e9eb61dbd.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="src/styles.css" />
<title>Wicked Weather App</title>
</head>
<body>
<div class="container">
<div class="weather-app" id="weather-app">
<div class="card-body">
<form id="search-city-form">
<div class="row">
<div class="col-3">
<label for="takeMeTo">Take me to:</label>
</div>
<div class="col-5">
<div class="form-group form-inline" >
<input type="search" class="form-control shadow-sm" id="city-input" placeholder="City" autofocus="on" autocomplete="off" />
</div>
</div>
<div class="col-2">
<button type="submit" class="btn btn-success shadow" id="goBtn">Go!</button>
</div>
<div class="col-2">
<button type="submit" class="btn btn-info shadow" id="currentLocationBtn"><i class="fas fa-map-marker-alt"></i></button>
</div>
</div>
</div>
</form>
<h1><span id="city-name"></span>, <span id="country"></span></h1>
<h4 id="todays-date">
</h4>
<h4 id="current-time"></h4>
<div class="row">
<div class="col-sm-6">
<img src="" id="weather-icon" alt="">
<p class="weather-description" id="description"></p>
<p class="pack" id="what-to-pack"></p>
</div>
<div class="col-sm-6">
<ul>
<li>
🌅 <span id="sunrise"></span> <span id="sunset"></span>
</li>
<li class="weather-temperature">
<span class="temperature" id="current-temperature"></span>
<a href="#" id="units-celsius" class="active">°C</a>
<span id="units-line">|</span>
<a href="#" id="units-fahrenheit">°F</a>
</li>
<li>
Feels like: <span class="feels-like" id="feels-like"></span>°C
</li>
<li>
Humidity: <span class="humidity" id="humidity"></span>%
</li>
<li>
Wind Speed: <span class="wind-speed" id="wind-speed"></span> mph
</li>
</ul>
</div>
</div>
<br />
<br />
<div class="forecast row" id="forecast"></div>
</div>
</div>
<br />
<p class="sarah"><a href="https://github.com/sarahcrack/my-wicked-weather-app" target="_blank" id="open-source-link">Open-source code</a> by
Sarah Crack</p>
<script src="src/script.js"></script>
</body>
</html>