-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (65 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>City Weather</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
/>
<style>
body {
background: url(images/bg-image.jpg) no-repeat;
background-size: cover;
height: 100vh;
}
</style>
</head>
<body>
<div class="container">
<form class="col-md-6 m-auto pt-5 pb-3">
<div class="input-group mb-3">
<input
id="city-name"
type="text"
class="form-control"
placeholder="Enter a location for Weather ..."
/>
<div class="input-group-append">
<button
onclick="searchTemperature()"
type="button"
class="btn btn-danger"
>
Search
</button>
</div>
</div>
<p id="error-message" class="text-center text-warning"></p>
</form>
<div class="weather-status text-white text-center">
<img
id="weather-icon"
src="https://openweathermap.org/img/wn/[email protected]"
alt=""
/>
<h1 id="city">Dhaka</h1>
<h3 class="m-0"><span id="temperature">38.06</span>°C</h3>
<small class="font-italic font-weight-lighter"
>Feels like: <span id="feels-like">38.06</span>°C</small
>
<h1 id="condition" class="lead m-0">Clouds</h1>
<small class="font-italic font-weight-lighter"
>(<span id="condition-description">Clouds</span>)
</small>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>