-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (61 loc) · 3.31 KB
/
index.html
File metadata and controls
65 lines (61 loc) · 3.31 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
<!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" />
<title>Weather App</title>
<link rel="stylesheet" href="./assets/styles.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.0/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js" integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js" integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG" crossorigin="anonymous"></script>
<script type="text/javascript" src="./assets/setup.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<aside class="col-md-4 mt-4 p-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="City" aria-label="City" aria-describedby="button-got" name="city-input" id="city-input" >
<button class="btn btn-outline-secondary" type="button" id="getCityBtn">GO</button>
</div>
<div class="alert alert-warning alert-dismissible fade show mt-2" role="alert" id="invalid-city-error">
<strong>Invalid City Name</strong>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" onclick="dismissAlert()"></button>
</div>
<div class="d-flex justify-content-center">
<button class="btn" id="collapse-toggle-btn" role="button" data-bs-toggle="collapse" data-bs-target="#city-list-container" aria-expanded="true" aria-controls="city-list-container"><i id="collapse-caret-icon" class="bi bi-caret-down-fill"></i></button>
</div>
<ul id="city-list-container" class="list-group-flush collapse">
</ul>
</aside>
<main class="col-md-8 p-4">
<h1 id="active-city-title"> </h1>
<small id="active-city-date"> </small>
<h3 id="active-city-weather-icon"></h3>
<p id="active-city-weather-condtion"></p>
<h3 class="display-3" id="current-city-current-temp"> </h3>
<div class="p-2 d-flex flex-column flex-md-row justify-content-between">
<span id="active-city-high" class="my-2"> </span>
<span id="active-city-low" class="my-2"> </span>
<span id="active-city-humidity" class="my-2"> </span>
<span id="active-city-uvi" class="badge rounded-pill my-2 p-2"> </span>
</div>
<hr class="my-4">
<section class="conatiner">
<div id="forecast-container" class="row">
</div>
<div class="d-flex justify-content-center">
<button class="btn btn-sm btn-outline-secondary" onclick="removeActiveCityFromCitiesList()">Remove from recent search list</button>
</div>
</section>
</main>
<footer class="conatiner d-flex justify-content-center">
<p class="lead p-4">© 2021 <a class="text-dark text-decoration-none" href="https://blake-ink.com" >BLAKEink.</a> | <a class="text-dark text-decoration-none" href="https://n8blake.com" >n8blake</a> </p>
<p class="lead p-4">Weather data provided by <a class="text-secondary text-decoration-none" href="https://openweathermap.org/">OpenWeather</a></p>
</footer>
</div>
</div>
<script type="text/javascript" src="./assets/index.js"></script>
</body>
</html>