-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (57 loc) · 2.51 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
<!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>Weather Forecast</title>
</head>
<body>
<header class="nav justify-content-center bg-dark text-light">
<h1 class="nav-item">Weather Dashboard</h1>
</header>
<div class="container-fluid">
<!-- class="g-0" -->
<div class="row">
<aside class="col-lg-3 sidebar">
<h3 class="text-muted">Search for a City:</h3>
<form class="d-flex mb-3">
<input class="form-control me-3" id="field-input" type="text" placeholder="Search">
<button class="btn btn-primary" id="search-city" type="submit" title="Search City" ><i class="fa fa-search"></i></button>
<button class="btn btn-danger" id="clear-search" type="submit" title="Clear History"><i class="fa fa-times"></i></button>
<!-- <button class="btn btn-danger" id="clear-search" type="submit"><i class="fa fa-ban"></i></button> -->
</form>
<ul class="list-group shadow mb-5 rounded">
<!-- Use jQuery to add additional list items here -->
</ul>
</aside>
<div class="col-lg-9">
<section class="row shadow mb-5">
<!-- Current search location weather -->
<div class="card mt-3" style="width: 100%">
<div class="card-body">
<h2 class="card-title text-muted mb-4">City: <span id="city-name"></span></h2>
<p class="card-text">Temperature: <span id="city-temp"></span></p>
<p class="card-text">Humidity: <span id="city-humi"></span></p>
<p class="card-text">Wind Speed: <span id="city-wind"></span></p>
<p class="card-text">UV Index: <span id="city-uvi" class="rounded-pill py-2 px-3"></span></p>
</div>
</div>
</section>
<!-- 5-Day forecast -->
<div class="row">
<h3 class="text-muted mt-3">5-Day Forecast</h3>
</div>
<div class="row" id="forecast-area">
<!-- use jQuery to build forecast cards here -->
</div>
</div>
</div>
</div>
<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>