-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
188 lines (184 loc) · 6.48 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="weatherapp.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet"
/>
<title>Weather Web App</title>
<link rel="icon" href="./assets/icons/favicon.svg" type="image/svg+xml" />
<style>
/* Inline CSS for Weather Alerts */
.alerts-part {
margin-top: 20px;
padding: 10px 15px;
background: rgba(255, 0, 0, 0.1);
color:white;
border-radius: 5px;
display: block;/* Initially hidden */
}
.alerts-header {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
.alerts-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
background: rgba(255, 255, 255, 0.05);
padding: 10px 0;
}
.alerts-content p {
font-size: 14px;
margin: 0;
padding: 0 10px;
}
.alerts-header i {
font-size: 20px;
color:white;
}
</style>
</head>
<body>
<div class="home" id="home">
<div id="particles-js"></div>
<!-- dark mode toggle -->
<div class="dark-mode">
<span class="dark-mode-btn">
<i class="bx bx-moon"></i>
</span>
</div>
<!-- main content -->
<center>
<div class="wrapper">
<marquee
style="color: #9c9388a1; margin-top: 6px"
direction="left"
scrollamount="3"
>Created By
<b><a style="text-decoration: none; color: aqua"> Kanishk </a> </b
><span id="contactspan"></span>
</marquee>
<header><i class="bx bx-left-arrow-alt"></i>Weather App</header>
<section class="input-part">
<p class="info-txt"></p>
<div class="content">
<input
list="cities"
type="text"
spellcheck="false"
placeholder="Select or Enter City Name"
required
/>
<datalist id="cities">
<option value="Bangalore"></option>
<option value="Chennai"></option>
<option value="Delhi"></option>
<option value="Lucknow"></option>
<option value="Mumbai"></option>
<option value="Noida"></option>
<option value="Hyderabad"></option>
<option value="Kolkata"></option>
<option value="Pune"></option>
<option value="Jaipur"></option>
<option value="Ahmedabad"></option>
<option value="Chandigarh"></option>
<option value="Gurgaon"></option>
<option value="Nagpur"></option>
<option value="Bhopal"></option>
<option value="Patna"></option>
<option value="Indore"></option>
<option value="Kanpur"></option>
<option value="Coimbatore"></option>
<option value="Vijayawada"></option>
<option value="Surat"></option>
<option value="Visakhapatnam"></option>
<option value="Madurai"></option>
<option value="Thiruvananthapuram"></option>
<option value="Mysore"></option>
<option value="Varanasi"></option>
<option value="Ranchi"></option>
<option value="Raipur"></option>
<option value="Guwahati"></option>
</datalist>
<div class="separator"></div>
<button>Location auto-detect</button>
</div>
</section>
<!-- Weather Alerts Section -->
<section class="alerts-part">
<div class="alerts-header">
<h3>Weather Alerts</h3>
<i class="bx bx-chevron-down" onclick="toggleAlerts()"></i>
</div>
<div class="alerts-content">
<p>No current alerts</p>
</div>
</section>
<section class="weather-part">
<img src="" alt="Weather Icon" />
<div class="temp">
<span class="numb">_</span>
<span class="deg">°</span>C
</div>
<div class="weather">_ _</div>
<div class="location">
<i class="bx bx-map"></i>
<span>_, _</span>
</div>
<div class="bottom-details">
<div class="column feels">
<i class="bx bxs-thermometer"></i>
<div class="details">
<div class="temp">
<span class="numb-2">_</span>
<span class="deg">°</span>C
</div>
<p>Feels like</p>
</div>
</div>
<div class="column humidity">
<i class="bx bxs-droplet-half"></i>
<div class="details">
<span>_</span>
<p>Humidity</p>
</div>
</div>
</div>
</section>
</div>
</center>
<script src="assets/js/script.js"></script>
<script src="assets/js/particles.min.js"></script>
<script src="assets/js/app.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="assets/js/security.js"></script>
<script>
// Inline JavaScript for Weather Alerts Toggle
function toggleAlerts() {
const content = document.querySelector(".alerts-content");
const icon = document.querySelector(".alerts-header i");
if (content.style.maxHeight) {
content.style.maxHeight = null;
icon.classList.remove("bx-chevron-up");
icon.classList.add("bx-chevron-down");
} else {
content.style.maxHeight = content.scrollHeight + "px";
icon.classList.remove("bx-chevron-down");
icon.classList.add("bx-chevron-up");
}
}
</script>
</div>
</body>
</html>