-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (73 loc) · 3.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" />
<link rel="stylesheet" href="./assets/css/style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<header class="navbar navbar-expand-lg navbar-dark bg-dark justify-content-center">
<span class="navbar-brand p-3 mb-2 h1">Weather Dashboard</span>
</header>
<main id="container" class="row mx-auto">
<div id="search-bar" class="col-12 col-md-4 search-bar">
<form id="search-form">
<h6>Search for a City:</h6>
<div class="input-group mb-3">
<input name="city" id="city" type="text" class="form-control" aria-label="Text input with a button for search by city">
<div class="input-group-append">
<button class="btn btn-primary" type="button" id="btn">
<svg class="bi bi-search" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"/>
<path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"/>
</svg>
</button>
</div>
</div>
</form>
<div id="history-container">
<ul id='cities-list' class="list-group"></ul>
</div>
</div>
<div id="weather-container" class="col-12 col-md-8">
<div id="current-weather" class="card">
<p id="temp" class="card-text"></p>
<p id="humidity" class="card-text"></p>
<p id="wind" class="card-text"></p>
</div>
<div id="forecast-title"><h4></h4></div>
<div id="forecast" class="row justify-content-around">
<div id="day1" class="col-md-2 card text-white bg-info mb-3 forecast">
<p id="temp1" class="card-text"></p>
<p id="hum1" class="card-text"></p>
</div>
<div id="day2"class="col-md-2 card text-white bg-info mb-3 forecast">
<p id="temp2" class="card-text"></p>
<p id="hum2" class="card-text"></p>
</div>
<div id="day3"class="col-md-2 card text-white bg-info mb-3 forecast">
<p id="temp3" class="card-text"></p>
<p id="hum3" class="card-text"></p>
</div>
<div id="day4"class="col-md-2 card text-white bg-info mb-3 forecast">
<p id="temp4" class="card-text"></p>
<p id="hum4" class="card-text"></p>
</div>
<div id="day5"class="col-md-2 card text-white bg-info mb-3 forecast">
<p id="temp5" class="card-text"></p>
<p id="hum5" class="card-text"></p>
</div>
</div>
</div>
</main>
<footer>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></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>
</body>
</html>