-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (41 loc) · 1.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="itsproali" content="author">
<title>Temperature Meter</title>
<link rel="shortcut icon" href="https://cdn-icons.flaticon.com/png/512/2862/premium/2862807.png?token=exp=1646457906~hmac=38af0f007794e936f9707e39514175b6" type="image/x-icon">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<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="search-field" type="text" class="form-control"
placeholder="Enter a city for Weather ...">
<div class="input-group-append">
<button id="search-btn" onclick="loadData()" type="button" class="btn btn-danger">Search</button>
</div>
</div>
</form>
<div class="weather-status text-white text-center">
<img id="icon" src="https://openweathermap.org/img/wn/02d@2x.png" alt="">
<h1 id="city-name">----</h1>
<h3><span id="temperature">----</span>°C</h3>
<h1 id="clouds" class="lead">----</h1>
</div>
</div>
<!-- JS -->
<script src="temperature.js"></script>
</body>
</html>