-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (37 loc) · 1.36 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
<!doctype html>
<html lang="en">
<head>
<title>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 py-5">
<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>
</form>
<div class="weather-status text-white text-center">
<img id="weather-icon" src="https://openweathermap.org/img/wn/02d@2x.png" alt="">
<h1 id="city">Dhaka</h1>
<h3><span id="temperature">38.06</span>°C</h3>
<h1 id="condition" class="lead">Clouds</h1>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>