-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (78 loc) · 3.92 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
77
78
79
80
81
82
83
<!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>
<!-- Bootstrap CDN -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- Font Awesome CSS Icons (For cool glyphicons) -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class=" jumbotron bg-dark py-2">
<h1 class="display-4 text-center text-light">Weather Dashboard</h1>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-3 bg-light ml-3">
<div class="row">
<form class="">
<div class="form-row align-items-center ml-0">
<!-- this div will not be displayed on xs screen sized -->
<div class="col-auto d-none d-sm-block">
<h5 >Search for a city:</h5>
</div>
<div class="col-auto ">
<input type="text" class="form-control " id="city-name" placeholder="enter a city name">
</div>
<div class="col-auto">
<button type="submit" id="search-button" class="btn btn-primary float-right"><i
class="fa fa-search"></i></button>
</div>
</div>
</form>
</div>
<div class="row mt-3">
<div class="card w-75">
<ul class="list-group list-group-flush ">
</ul>
</div>
</div>
</div>
<div class="col-md-8 m-1">
<div class="row">
<div class="card w-100">
<div id="main-body" class="card-body d-none bg-secondary text-white">
<h5 id="city-title">
</h5>
<p id="temp"></p>
<p id="humidity"></p>
<p id="wind-speed"></p>
<div class="form-inline">
<label id="uv-label" for="uv-index"></label>
<button class="btn btn-sm ml-2" id="uv-index"></button>
</div>
</div>
</div>
</div>
<div class="row mt-5">
<h5 id="5d-forecast" class="bg-light d-none py-2 w-100" >5-Day Forecast: </h5>
</div>
<div class="row">
<div class="card-deck text-white w-100">
</div>
</div>
</div>
</div>
</div>
<!-- </div> -->
<!-- jQuery CDN -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<!-- Code to the JavaScript File -->
<script src="./script.js"></script>
</body>
</html>