-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweather2.html
More file actions
73 lines (66 loc) · 3.03 KB
/
weather2.html
File metadata and controls
73 lines (66 loc) · 3.03 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <!-- jQuery and Bootstrap Bundle JS -->
<!-- jQuery and Bootstrap and Maps Bundle JS -->
<script
src="https://code.jquery.com/jquery-3.6.4.js"
integrity="sha256-a9jBBRygX1Bh5lt8GZjXDzyOB+bWve9EiO7tROUtj/E="
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script src="weather2.js"></script>
<!-- <link rel="stylesheet" href="weather.css"> -->
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">Rest</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="weather.html">Weather</a>
</li>
<li class="nav-item">
<a class="nav-link" href="weather2.html">Weather2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="weather3.html">Weather3</a>
</li>
<li class="nav-item">
<a class="nav-link" href="finance.html">Finance</a>
</li>
<li class="nav-item">
<a class="nav-link" href="finance2.html">Finance2</a>
</li>
</ul>
</div>
</nav>
</header>
<main>
<div class="container justify-content-center align-items-center mt-5">
<div class="row">
<div class="col-md-8 mx-auto text-center">
<h1 class="display-4 mb-4">Weather Rest App</h1>
<form>
<div class="input-group mb-3">
<input type="text" id="city" placeholder="Enter city name" class="form-control">
<button onclick="fetchWeather()" type="button" class="btn btn-primary">Get Weather</button>
</div>
</form>
</div>
</div>
</div>
<div id="weather-info" class="mt-5"></div>
<div id="error-message" class="mt-5"></div>
</main>
</body>
</html>