-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (89 loc) · 4.17 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
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather Dashboard</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<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="styles.css">
</head>
<body>
<h1>
<nav class="navbar navbar-dark bg-dark justify-content-center"></nav>
<div class="container-fluid-nav">
<div class="navbar-header">
<span class="navbar-brand mb-0 h1" style="font-size: 36px">Weather Dashboard</span>
</div>
</div>
</nav>
</h1>
<div class="container">
<div class="row">
<div class="col-md-3 bg-light pb-3 pt-3">
<aside>
<form class="form-inline my-2 my-lg-0">
<label for="citySearch">Search for a City:</label>
<input class="form-control mr-0" type="search" placeholder="Search" aria-label="Search"
id="city-search-input">
<button class="btn btn-primary my-2 my-sm-0" type="submit" id="city-search-btn">
<i class="fas fa-search"></i></button>
</form>
<br>
<div class="list-group" id="city-list">
<!-- Inside Javascript -->
</div>
</aside>
</div> <!-- City info -->
<div class="col-md-9" id="city-column" style="visibility: hidden">
<div class="row">
<div class="col-md-12">
<div class="card mt-3">
<div class="card-body" id="weatherdata">
<!-- this where the weather data will go (in javascript) -->
</div>
</div>
</div>
</div>
<br>
<div class="row ml-1">
<h2>5-Day Forecast:</h2>
</div>
<div class="row" id="5dayforecast">
<!-- this is where the 5-day forecast will go -->
</div>
</div>
</div>
</div> <!-- end of container -->
<!-- the following is for error messages to pop up -->
<div class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Weather Dashboard Message</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p id="errorMsg"></p> <!-- this is set in javascript -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<script src="./script.js"></script>
</body>
</html>