-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (55 loc) · 1.54 KB
/
index.html
File metadata and controls
57 lines (55 loc) · 1.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Weather-Update</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(https://github.com/ProgrammingHero1/temperature-hot-solution/blob/main/images/bg-image.jpg?raw=true)
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="input-field"
type="text"
class="form-control"
placeholder="Enter a location for Weather ..."
/>
<div class="input-group-append">
<button onclick="fetchData()" 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">City Name</h1>
<h3><span id="temperature">0.00</span>°C</h3>
<h1 id="condition" class="lead">Forcast</h1>
</div>
</div>
<script src="js/index.js"></script>
</body>
</html>