-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (76 loc) · 3.13 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
<!DOCTYPE html>
<html lang="en">
<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="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<header class="jumbotron">
<div class="p-5 text-center">
<h1 class="mb-3">Weather Dashboard</h1>
</div>
</header>
<div class="container-fluid">
<div class="card-search">
<div class="col-3">
<label>Enter a city:</label>
<div class="search-content">
<form class="search-form">
<input
class="searchBox form-control"
id="inputValue"
type="text"
name="cityInput"
placeholder="Search location city, state..."
/>
<div class="search-content">
<button id="searchBtn">
<i class="fa fa-search text-white"></i>
</button>
</div>
</form>
</div>
<!-- Search history to save locally -->
<h3>Searched Cities: </h3>
<div id="searchHistoryContainer"></div>
</div>
<div class="row">
<div class="col-12">
<h2>Current Weather Conditions</h2>
<!-- Current weather card -->
<div id="currentWeather" class="card-current">
<h4 id="currentDate"></h4>
<h5>City: <span id="currentCity"></span></h5>
<div id="currentIcon"><img src="" class="center"/></div>
<p>Weather Conditions: <span id="weatherDescription"></span></p>
<p>Temperature: <span id="temp"></span></p>
<p>Humidity: <span id="humidity"></span></p>
<p>Wind Speed: <span id="wind"></span></p>
<p>UV Index: <span id="currentUVI"></span></p>
</div>
</div>
</div>
<!-- 5-Day Forecast Info -->
<div class="row">
<div class="col-12">
<div class="forecast-info">
<h2>5-Day Weather Forecast</h2>
<div id="fiveDayContainers"></div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="assets/script.js"></script>
</body>
</html>