-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (75 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous" />
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="styles.css" />
<title>Weather App</title>
</head>
<body>
<nav class="navbar navbar-dark bg-darker">
<div class="container-fluid">
<span class="navbar-brand mb-0 h1">Weather App</span>
</div>
</nav>
<div class="container">
<div class="weather-app">
<form class="search-form" id="search-form">
<div class="row">
<div class="col-6">
<input
type="search"
placeholder="Type a city.."
autofocus="on"
autocomplete="off"
id="city-input"
class="form-control shadow-sm" />
</div>
<div class="col-3">
<input
type="submit"
value="Search"
class="form-control btn btn-primary shadow-sm w-100" />
</div>
<div class="col-3">
<button
class="btn btn-success w-100"
id="current-location-button">
Current
</button>
</div>
</div>
</form>
<h1 id="city"></h1>
<ul>
<li id="date"></li>
<li id="description"></li>
</ul>
<div class="row">
<div class="col-6">
<div class="clearfix">
<div class="float-left">
<span class="temperature" id="temperature"></span
><span class="units">°C</span>
</div>
</div>
</div>
<div class="col-6">
<ul>
<li>Humidity: <span id="humidity"></span>%</li>
<li>Wind: <span id="wind"></span> km/h</li>
</ul>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>