-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (104 loc) · 5.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<!--Bootstrap CDN-->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!--My stylesheet-->
<link rel="stylesheet" href="assets/css/style.css">
<title>Weather Project</title>
</head>
<body>
<!-- Start Heading -->
<header class="container-fluid bg-dark text-white">
<div class="row justify-content-center">
<h1>Weather Dashboard</h1>
</div>
</header>
<!--searched cities table-->
<div class="container-fluid">
<div classrow>
<div class="row justify-content-around">
<div class="cols-1 card bg-light mt-2">
<h5 class="mt-3">Search for a City:</h5>
<p>does not support zip code search.</p>
<div class="form-control-lg">
<input class="ml col-6 " id="city" type="text" placeholder="Search">
<button class="btn btn-outline-secondary" id="submit-city" type="submit"><i class="fas fa-search"></i></button>
</div>
</divrow>
<!--search history list and clear button-->
<ul class="mr-5 mt-2" id="search-history"></ul>
<button class="btn btn-outline-secondary" id="clear-history">Clear</button>
</div>
<!--The days weather/current weather-->
<div class="col-7 mt-4">
<div class="row" id="current-weather" >
<div class="col-7" >
<h3><span id = "current-city"></span><img id="weather-img" src=""></h3>
<p>Temperature: <span id="temperature"></span></p>
<p>Humidity: <span id="humidity"></span></p>
<p>Wind Speed: <span id="windspeed"></span></p>
<p>UV Index: <span id="uvindex"></span></p>
</div>
</div>
<!--5-day weather forecast-->
<h3 class="mt-5 mb-5 cols-1">5 Day Forecast:</h3>
<div class="card-deck">
<div class="card bg-primary">
<div id="day-1" class="card-body p-2">
<h6 class="card-date"></h6>
<img class = "weather-icon">
<p class = "weather-temp"></p>
<p class = "weather-humidity"></p>
</div>
</div>
<div class="card bg-primary">
<div id="day-2" class="card-body p-2">
<h6 class="card-date"></h6>
<img class = "weather-icon">
<p class = "weather-temp"></p>
<p class = "weather-humidity"></p>
</div>
</div>
<div class="card bg-primary">
<div id="day-3" class="card-body p-2">
<h6 class="card-date"></h6>
<img class = "weather-icon">
<p class = "weather-temp"></p>
<p class = "weather-humidity"></p>
</div>
</div>
<div class="card bg-primary">
<div id="day-4" class=" card-body p-2">
<h6 class="card-date"></h6>
<img class = "weather-icon">
<p class = "weather-temp"></p>
<p class = "weather-humidity"></p>
</div>
</div>
<div class="card bg-primary">
<div id="day-5" class="card-body p-2">
<h6 class="card-date"></h6>
<img class = "weather-icon">
<p class = "weather-temp"></p>
<p class = "weather-humidity"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="script.js"></script>
<!--CDN and Script to make the code render property-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.26.0/moment-with-locales.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="assets/js/script.js"></script>
<script src="https://kit.fontawesome.com/8b8f26d0e1.js" crossorigin="anonymous"></script>
</body>
</html>