-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (76 loc) · 3.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Link the DayJS library -->
<script
src="https://cdn.jsdelivr.net/npm/dayjs@1.11.3/dayjs.min.js"
integrity="sha256-iu/zLUB+QgISXBLCW/mcDi/rnf4m4uEDO0wauy76x7U="
crossorigin="anonymous">
</script>
<!-- Link the Bootstrap library -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM"
crossorigin="anonymous">
<!-- Link the JQuery UI library -->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">
<title>Weather Dashboard</title>
</head>
<body>
<h1 class="display-5 d-flex flex-wrap justify-content-center gap-4 text-bg-dark text-info p-1">Weather Dashboard</h1>
<div class="row">
<div class="col-md-3">
<!--Search bar and city list saved to local storage-->
<div class="left-div">
<div class="p-2 g-col-6">
<h2 class="display-7">Search for a City:</h2>
<form class="card-body" id="userForm">
<div class="input-group mb-3">
<input type="text" class="form-control" id="inputTag" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default" placeholder="San Diego">
</div>
<div class="p-2 g-col-6 d-grid gap-2">
<button type="submit" class="btn btn-outline-success" id="searchButton">Search</button>
</div>
</form>
<hr>
</div>
<!--local storage items added to div as buttons-->
<div class="p-2 g-col-6 d-grid gap-2" id="savedCityList"></div>
</div>
</div>
<div class="col-md-9">
<!--The current day and 5-day weather forecast-->
<div class="right-div">
<div class="p-2 g-col-6">
<!--City and current day updated-->
<h2 class="display-7" id="cityHeader"><span id="searchedCity"></span> <span id="todayDate"></span></h2>
<hr>
<!--temperature, wind speed, and humidity updated-->
Temp: <span id="todayTemp"></span>
<hr>
Wind: <span id="todayWind"></span>
<hr>
Humidity: <span id="todayHumidity"></span>
</div>
<div class="p-2 g-col-6">
<h2 class="display-7">5-Day Forecast</h2>
<hr>
<!--5-day forecast-->
<div class="d-flex flex-wrap justify-content-center gap-4" id="fiveDayContainer"></div>
</div>
</div>
</div>
</div>
<!-- Link the JQuery library -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.min.js"></script>
<!--Link the Bootstrap Library-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
<!--Link the JavaScript File-->
<script src="./assets/script.js"></script>
</body>
</html>