-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (120 loc) · 4.32 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
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/f5f4ff2f36.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment.min.js"></script>
<link rel="stylesheet" href="./develop/css/style.css">
<title>Weather Dashboard</title>
</head>
<body>
<!-- header -->
<header>
<h2>Weather Dashboard</h2>
</header>
<hr>
<!-- main container -->
<div class="container-fluid">
<div class="row">
<div class="col-md-2 col-sm-4 col-xs-6" id="search-div">
<h3>Search for a City:</h3>
<form class="input-group my-3">
<!-- search bar -->
<input type="text" id="userInput" class="form-control" placeholder="Los Angeles" required>
<div class="input-group-append">
<!-- search button -->
<button class="btn btn-primary" id="submitBtn"><i class="fas fa-search"></i></button>
</div>
</form>
<hr>
<!-- to store searched results -->
<div id="searchHistory">
<ul id="cityResults">
</ul>
</div>
<div class="searhcedCities"></div>
</div>
<!-- right column -->
<div class="col-md-10 col-sm-8 col-xs-6" id="containerBody">
<h3>Weather Report</h3>
<img id="weatherIcon">
<div id="cityName">
</div>
<div class="row" id="weather-results">
<div class="card bg-dark.bg-gradient text-dark m-3 w-100">
<div class="card-header" id="weatherDate">Date:</div>
<div class="card-body">
<p class="card-style" id="weatherTemp">Temp:</p>
<p class="card-style" id="weatherHumidity">Humidity:</p>
<p class="card-style" id="weatherWind">Wind Speed:</p>
<p class="card-style" id="weatherUv">UVIndex: <span>0</span></p>
</div>
</div>
</div>
<hr>
<!-- 5 day forecast -->
<section id="fivedayForecast">
<h3>5-Day Forecast</h3>
<div class="row">
<!-- day1 -->
<div class="column">
<div class="card" id="day1">
<p id="day1Date">Date</p>
<img id="day1Img">
<p id="day1Temp">Temp</p>
<p id="day1Wind">Wind Speed:</p>
<p id="day1Humidity">Humidity</p>
</div>
</div>
<!-- day2 -->
<div class="column">
<div class="card" id="day2">
<p id="day2Date">Date</p>
<img id="day2Img">
<p id="day2Temp">Temp</p>
<p id="day2Wind">Wind Speed:</p>
<p id="day2Humidity">Humidity</p>
</div>
</div>
<!-- day3 -->
<div class="column">
<div class="card" id="day3">
<p id="day3Date">Date</p>
<img id="day3Img">
<p id="day3Temp">Temp</p>
<p id="day3Wind">Wind Speed:</p>
<p id="day3Humidity">Humidity</p>
</div>
</div>
<!-- day4 -->
<div class="column">
<div class="card" id="day4">
<p id="day4Date">Date</p>
<img id="day4Img">
<p id="day4Temp">Temp</p>
<p id="day4Wind">Wind Speed:</p>
<p id="day4Humidity">Humidity</p>
</div>
</div>
<!-- day5 -->
<div class="column">
<div class="card" id="day5">
<p id="day5Date">Date</p>
<img id="day5Img">
<p id="day5Temp">Temp</p>
<p id="day5Wind">Wind Speed:</p>
<p id="day5Humidity">Humidity</p>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<script src="./develop/js/script.js"></script>
</body>
</html>