-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (36 loc) · 1.41 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
<!DOCTYPE html>
<html>
<head>
<title>Weather App</title>
<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">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
</head>
<body class="text-center">
<main class="contain">
<h1 class="banner p-3 neonText">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-light contain text-secondary">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">
<h3 id="weather-type" class="card-title">----</h3>
<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>