-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather Dashboard</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/js/all.min.js" integrity="sha256-HkXXtFRaflZ7gjmpjGQBENGnq8NIno4SDNq/3DbkMgo=" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://moment.github.io/luxon/global/luxon.min.js"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container-fluid">
<header class="row">
<div class="col-lg-12">
<h1>Weather Dashboard</h1>
</div>
</header>
<main class="row">
<div id="cities" class="col-lg-3">
<h3>Search for a City:</h3>
<form>
<div class="input-group">
<input type="text" class="form-control input-sm" id="txtCity">
<button id="btnSearch" type="submit" class="btn btn-primary"><i class="fas fa-search"></i></button>
</div>
</form>
<br/>
<ul id="cityList" class="list-group">
</ul>
</div>
<div id="forecast" class="col-lg-9">
<div class="card">
<div class="card-body">
<h1 id="city">City Name</h1>
<span>Temperature: </span><span id="lblTemp"></span>
<br/>
<span>Humidity: </span><span id="lblHumidity"></span>
<br/>
<span>Wind Speed: </span><span id="lblWindSpeed"></span>
<br/>
<span>UV Index: </span><span class="badge" id="lblUVIndex"></span>
</div>
</div>
<br/>
<h2>5-Day Forecast:</h2>
</div>
</main>
</div>
<script src="js/script.js"></script>
</body>
</html>