-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (46 loc) · 2.04 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
<!DOCTYPE html>
<html>
<head>
<title>Weather</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<link rel="stylesheet" href="src/styles.css" />
</head>
<body>
<div class="containers">
<form class="search-form" id="search-form">
<input type="search" id="city-input" placeholder="Search for a city" autocomplete="off" size="40" />
<input type="submit" value="Search" class="btn btn-outline-success" />
<button type="button" class="btn btn-outline-primary" id="current-button">Current</button>
</form>
<h1 id="city">London</h1>
<ul>
<li>Last updated at <span id="time"></span></li>
</ul>
<div class="row">
<div class="col-6">
<div class="overview">
<img src="" alt="clear" id="icon" />
<strong id="temperature"></strong>
<span class="units"><a href="#" id="celsius-link" class="active">°C</a> | <a href="#" id="fahrenheit-link">°F</a></span>
</div>
</div>
<div class="col-6">
<ul>
<li>Humidity: <span id="humidity"></span>%</li>
<li>Wind: <span id="wind"></span> mph</li>
<li>Description: <span id="description"></span></li>
</ul>
</div>
</div>
<div class="weather-forecast" id="forecast"></div>
</div>
<script src="src/index.js"></script>
<footer>
<a href="https://github.com/amyjtechwriter/my-weather-application" target="_blank"> Open-source code</a> by Amy Jonsson
</footer>
</body>
</html>