-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (62 loc) · 2.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css"/>
<title>Document</title>
</head>
<body>
<header>
<h1>Weather Dashboard</h1>
</header>
<div class="container mr-0 ml-0">
<div class="row">
<div class="col-4 bg-light m-2">
<h4>Search for a City:</h4>
<form>
<div class="input-group mb-3">
<input id="search_txt" type="text" class="form-control">
<div class="input-group-append">
<button class="btn btn-primary" type="submit" id="search"><i class="fas fa-search"></i></button>
</div>
</div>
</form>
<div class="card">
<ul id="searchList" class="list-group list-group-flush"></ul>
</div>
</div>
<div class="col-7">
<div class="row">
<div class="col border m-3 p-3">
<h3 id="city"><img id="icon" alt="Current Weather icon"></h3>
<p>Temperature: <span id="temp"></span></p>
<p>Humidity: <span id="humidity"></span></p>
<p>Wind Speed: <span id="wind"></span></p>
<p>UV Index: <span id="uv_index"></span></p>
</div>
</div>
<div class="row">
<div class="col">
<h4>5-Day Forecast:</h4>
<div id="forecast" class="list-group list-group-horizontal-md">
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="script.js"></script>
</body>
</html>