-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (116 loc) · 5.72 KB
/
index.html
File metadata and controls
141 lines (116 loc) · 5.72 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS -->
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" />
<!-- 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" />
<script src="https://kit.fontawesome.com/78515554e8.js" crossorigin="anonymous"></script>
<!-- My stylesheets -->
<link rel="stylesheet" type="text/css" href="assets/css/reset.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!-- Moment.js -->
<script src="https://unpkg.com/moment"></script>
<title>Weather Dashboard</title>
</head>
<body>
<video autoplay muted loop id="bgVideo">
<source src="./assets/images/bg.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<!-- <object id="bgVideo"
data="https://www.youtube.com/embed/c9pQYOGIWM8?autoplay=1&mute=1&loop=1&controls=0">
</object> -->
<!-- <iframe id="bgVideo" src="https://www.youtube.com/embed/c9pQYOGIWM8?autoplay=1&mute=1&loop=1&controls=0"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
allow="fullscreen;"></iframe> -->
<div class="jumbotron jumbotron-fluid py-2 bgWhiteTransparent">
<div class="container">
<h1 class="display-4 text-center">Weather Dashboard</h1>
</div>
</div>
<div class="row w-100">
<div class="col-3">
<div class="bgWhiteTransparent py-4 rounded" id="leftBar">
<div class="row mb-4">
<div class="col-12">
<form class="form-inline my-2 my-lg-0 justify-content-center">
<label class="col-12 font-weight-bold text-center mb-1 h4">Search for a City</label>
<input class="form-control h-100 bgWhiteTransparent w-75" type="search" placeholder="Search"
aria-label="Search" id="locationInput">
<button class="btn btn-primary h-100 fa fa-search" type="submit"
id="searchLocation"></button>
</form>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="list-group" id="history">
<!-- buttons go here -->
<button class="list-group-item list-group-item-action bgWhiteTransparent" id="clear"
type="button">Clear
History <i class="fas fa-trash-alt" style="color: red;"></i></button>
</div>
</div>
</div>
</div>
</div>
<div class="col-9">
<div class="row">
<div class="col-12 p-3 pt-2 bgWhiteTransparent rounded" id="currentWeather">
<div class="row">
<div class="col-12 py-2 font-weight-bold h1" id="location"></div>
</div>
<div class="row">
<div class="col-12 py-2">Temperature: <span id="temperature"></span></div>
</div>
<div class="row">
<div class="col-12 py-2">Humidity: <span id="humidity"></span></div>
</div>
<div class="row">
<div class="col-12 py-2">Wind Speed: <span id="windSpeed"></span></div>
</div>
<div class="row">
<div class="col-12 py-2">UV Index: <span class="p-1 rounded text-white" id="uv"></span></div>
</div>
<div class="row">
<div class="col-12 py-2">Warnings: </div>
<div class="col-12 pl-4 py-2" id="warnings"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 py-4 text-center bgWhiteTransparent rounded" id="welcome">
<div class="display-4">Welcome to Weather Dashboard!</div>
<div class="h1">Search for a city on the left panel</div>
<div class="h1">Get most recent weather and a forecast for the next 5 days!</div>
</div>
</div>
<div class="row my-3 pb-4 bgWhiteTransparent rounded" id="forecast">
<div class="container mx-auto px-0">
<div class="row">
<div class="col-12 py-2 mt-4 font-weight-bold text-center" style="font-size: x-large;">5-Day
forecast
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-lg-2 col-md-6 my-2" id="0"></div>
<div class="col-lg-2 col-md-6 my-2" id="1"></div>
<div class="col-lg-2 col-md-6 my-2" id="2"></div>
<div class="col-lg-2 col-md-6 my-2" id="3"></div>
<div class="col-lg-2 col-md-6 my-2" id="4"></div>
</div>
</div>
</div>
</div>
</div>
<!-- JavaScript -->
<script src="./dist/app.bundle.js" defer></script>
</body>
</html>