-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (63 loc) · 2.74 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
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./Assets/css/reset.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="./Assets/css/style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<header class="container-fluid text-center text-white bg-dark p-2 weather-header">
<h1>Weather Dashboard</h1>
</header>
<!-- max-width for ultra wide resolutions -->
<div class="container-fluid" style="max-width: 1400px">
<div class="row">
<aside class="col-md-3 col-12 pb-3">
<h2 id="form-heading" class="mt-1 h3 form-label">
Search for a City:
</h2>
<!--input city name-->
<form id="search-form" class="form">
<div class="col-md-3 col-12 form-inline form-group">
<div class="input-group">
<input class="form-input weather-search" type="text" id="search-input" placeholder="London"
aria-labelledby="form-heading" aria-controls="today forecast" />
<div class="input-group-append">
<button class="btn btn-outline btn-xl search-button" id="search-button" aria-label="submit search">
Search
</button>
</div>
</div>
</div>
</form>
<hr class="weather">
<div class="list-group" id="history"></div>
</aside>
<div class="col-md-9 col-12 pb-4">
<!-- todays weather html generated dynamically after api call -->
<section id="today" class="today mt-4" role="region" aria-live="polite">
<div class="city" id="city"></div>
<div class="weatherImg" id="weatherImg"></div>
<div class="temp" id="temp"></div>
<div class="wind" id="wind"></div>
<div class="humidity" id="humidity"></div>
</section>
<!--the html for the 5 day forecast is generated dynamically after data is retrieved from the api call-->
<section id="forecastTitle" class="row mt-4"></section>
<section id="forecast" class="row mt-4" role="region" aria-live="polite">
</section>
</div>
</div>
</div>
<!-- Moment.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="./Assets/js/script.js"></script>
</body>
</html>