-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (119 loc) · 4.15 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html class="h-100">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<script
src="https://kit.fontawesome.com/34b9bc8a79.js"
crossorigin="anonymous"
></script>
<script
src="https://kit.fontawesome.com/34b9bc8a79.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="Assets/css/stylesheet.css" />
<title>Weather Tracker</title>
</head>
<body>
<main class="container-fluid h-100 d-flex flex-column">
<!-- Jumbotron Title -->
<div class="row">
<div class="col p-0">
<div class="jumbotron jumbotron-fluid py-1 mb-0 bg-dark">
<div class="container-fluid">
<h1 class="text-center text-light">Weather Tracker</h1>
</div>
</div>
</div>
</div>
<div class="row" id="dashboard">
<div class="col col-lg-3 py-3 bg-light" id="search-bar">
<form class="form-group" id="search-city">
<label for="city-name" class="h4">Search for a city:</label>
<div class="form-inline">
<input type="text" class="form-control w-75" id="city-name" />
<button type="submit" class="btn btn-primary" id="search">
<i class="fas fa-search"></i>
</button>
</div>
<p class="text-danger" id="error"></p>
</form>
<div class="card">
<div class="card-header h5 text-center" style="display: none"></div>
<ul class="list-group list-group-flush" id="search-history"></ul>
</div>
</div>
<div class="col-lg-9 py-3" id="city-info" data-city="">
<div class="row">
<div class="col-12">
<span id="current-city" class="city-name align-middle"></span>
</div>
</div>
<div class="row">
<div class="col-12">
<p id="temp"></p>
</div>
</div>
<div class="row">
<div class="col-12">
<p id="humidity"></p>
</div>
</div>
<div class="row">
<div class="col-12">
<p id="wind"></p>
</div>
</div>
<div class="row">
<div class="col-12 d-flex">
<p id="uvi"><span id="uvspan"></span></p>
</div>
</div>
<div class="row" id="daily-weather-row">
<div class="col">
<h3>5-Day Forecast:</h3>
<div class="row" id="five-day-forecast-cards">
<div
class="col forecast bg-primary text-white ml-3 mb-3 rounded"
></div>
<div
class="col forecast bg-primary text-white ml-3 mb-3 rounded"
></div>
<div
class="col forecast bg-primary text-white ml-3 mb-3 rounded"
></div>
<div
class="col forecast bg-primary text-white ml-3 mb-3 rounded"
></div>
<div
class="col forecast bg-primary text-white ml-3 mb-3 rounded"
></div>
</div>
</div>
</div>
</div>
</main>
<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="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"
></script>
<script src="Assets/js/script.js"></script>
</body>
</html>