-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
42 lines (42 loc) · 1.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS Link -->
<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">
<!-- CSS File -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- the Main Js File -->
<script src="script.js"></script>
<!-- Title -->
<title>Weather App</title>
</head>
<body class="text-center">
<main>
<h1 class="banner p-3">Weather</h1>
<div class="form-group">
<input id="city-input" class="form-control form-control-lg" type="text" placeholder="Search city">
</div>
<button type="button" onclick="searchCity()" class="btn btn-lg btn-dark">Search</button>
<div id="weather-output" class="mt-3">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 shadow-sm">
<div class="card-header">
<h4 id="city-name" class="my-0 font-weight-normal">-----</h4>
</div>
<div class="card-body">
<h1 id="weather-type" class="card-title">-----</h1>
<ul class="list-unstyled mt-3 mb-4">
<li>Temp : <span id="temp">--</span>°</li>
<li>Min Temp : <span id="min-temp">--</span>°</li>
<li>Max Temp : <span id="max-temp">--</span>°</li>
</ul>
</div>
</div>
</div>
</div>
</main>
</body>
</html>