-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
112 lines (92 loc) · 4.85 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!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">
<link rel="stylesheet" href="https://bootswatch.com/5/flatly/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Weather-Status</title>
</head>
<body style="background-color: #B2D9F2;">
<div class="container">
<div class="row">
<div class="col-md-10 mx-auto mt-4">
<div class="card text-white bg-info mb-3 shadow-lg">
<div class="card-header d-flex justify-content-between">
<div>
<span class="card-title fs-1" id="loc-name" style="text-shadow: 0px 1px 10px rgb(6, 71, 97);">
</span>
<span class="badge bg-light text-danger fs-6" id="date"> </span>
<span class="badge bg-light text-danger fs-6" id="time"> </span>
</div>
<button class="btn btn-success text-nowrap" data-bs-toggle="modal" data-bs-target="#loc-modal">Change Location</button>
</div>
<div class="card-body">
<div>
<span class="card-title mb-2 fs-2" id="weather"></span>
<img id="weather-icon"></img>
</div>
<div class=" mb-3">
<span class="card-title fs-3 me-3" id="temp">
</span>
<span class="badge bg-light text-warning fs-6 me-2"
id="feel-like"> </span>
</div>
</div>
<ul class="list-group fs-5">
<li class="list-group-item d-flex justify-content-between align-items-center">
<span class="badge bg-primary rounded-pill">Description : </span>
<p id="Description"></p>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span class="badge bg-primary rounded-pill">Humidity : </span>
<p id="humidity"></p>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span class="badge bg-primary rounded-pill">Presssure : </span>
<p id="pressure"></p>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span class="badge bg-primary rounded-pill">Wind Speed : </span>
<p id="wind"></p>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="loc-modal" tabindex="-1" aria-labelledby="loc-modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loc-modal">Change Location</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="City" class="mb-2">City : </label>
<input class="form-control" type="text" id="city-new" placeholder="Chandigarh" required>
</div>
</form>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success" id="save-changes" data-bs-dismiss="modal">Save changes</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="storage.js"></script>
<script src="weather.js"></script>
<script src="ui.js"></script>
<script src="app.js"></script>
</body>
</html>