-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
187 lines (179 loc) · 6.33 KB
/
Copy pathindex.html
File metadata and controls
187 lines (179 loc) · 6.33 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Hey, wanna check the current weather of any city in the world? Click on this link.">
<meta name="author" content="Code Savant">
<meta property="og:title" content="Weather App">
<meta property="og:image" content="https://cdn-icons-png.flaticon.com/512/14838/14838434.png">
<meta property="og:url" content="https://https://weathercheck-11.netlify.app/">
<meta property="og:type" content="website">
<meta property="og:description" content="Hey, wanna check the current weather of any city in the world? Click on this link.">
<title>Weather App</title>
<!-- style -->
<link rel="stylesheet" href="./css/style.css" />
<!-- icon -->
<link rel="icon" href="./image/hail.png" type="image/x-icon" />
<!-- fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Roboto+Slab:wght@100..900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="card">
<div class="loader">
<div class="spinner"></div>
<h2 id="loaderTxt">enter your city name in the search box...</h2>
</div>
<button id="moreInfo" class="btnn aaa">
<span class="icon-info"></span>
</button>
<div id="default" class="rty">
<span><img src="./image/code-yellow.svg" alt="weather-images" /></span>
<p>Invalid City name</p>
</div>
<button id="toggleBtn" class="btnn bbb">
<div class="ccb">
<div class="kkx">
<span class="tc s1"></span>
<span class="tc s2"></span>
<span class="tc s3"></span>
<span class="tc s4"></span>
<span class="tc s5"></span>
<span class="tc s6"></span>
<span class="tc s7"></span>
<span class="tc s8"></span>
<div class="ddx">
<div class="moon"></div>
</div>
</div>
</div>
</button>
<div class="containers aa">
<div class="weather-main">
<div class="search-box box">
<input
type="text"
placeholder="Enter City Name"
/>
<button class="ggf">
<span class="icon-search nnn"></span>
</button>
</div>
<div class="City-name box">
<h2 class="city">Belgium</h2>
<p class="city-weather">Sunny</p>
<p class="city-weather-2">partly sunny</p>
</div>
<div class="weather-icon box">
<span
><img
class="weather-1"
src="./image/clear-day.svg"
alt="weather-images"
/></span>
</div>
<div class="temp box">
<h1 class="temp-3">22°c</h1>
</div>
<div class="weather-brief box">
<div class="wind">
<span><img src="./image/wind.svg" alt="weather-images" /></span>
<p>Wind</p>
<h3 class="wind-2">4km/h</h3>
</div>
<div class="temp-2">
<span
><img src="./image/humidity.svg" alt="weather-images"
/></span>
<p>humidity</p>
<h3 class="humidity">48%</h3>
</div>
</div>
</div>
</div>
<div class="containers bb">
<button id="close">
<span class="close-btn"></span>
</button>
<div class="weather-info">
<div class="column-1">
<div class="inn b2222">
<span
><img src="./image/tide-high.svg" alt="weather-images"
/></span>
<p>sea level</p>
<h3 class="sea">20m</h3>
</div>
<div class="inn c3333">
<span
><img src="./image/thermometer.svg" alt="weather-images"
/></span>
<p>temprature</p>
<h3 class="temp4">30°c</h3>
</div>
<div class="inn d4444">
<span
><img src="./image/wind.svg" alt="weather-images"
/></span>
<p>wind speed</p>
<h3 class="wind-3">40km/h</h3>
</div>
</div>
<div class="column-2">
<div class="inn a1111">
<span
><img src="./image/humidity.svg" alt="weather-images"
/></span>
<p>humidity</p>
<h3 class="humidity-2">40%</h3>
</div>
<div class="inn b2222">
<span
><img src="./image/umbrella-wind.svg" alt="weather-images"
/></span>
<p>wind direction</p>
<h3 class="deg">223°</h3>
</div>
<div class="inn c3333">
<span><img src="./image/pressure-high.svg" alt="weather-images" /></span>
<p>pressure</p>
<h3 class="pressure">1.22hPa</h3>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
document
.querySelector(".search-box input")
.addEventListener("focus", () => {
document.querySelector(".ggf").classList.add("yuy");
});
document.querySelector(".search-box input").addEventListener("blur", () => {
document.querySelector(".ggf").classList.remove("yuy");
});
const aa = document.querySelector(".aa");
const bb = document.querySelector(".bb");
const infoo = document.getElementById("moreInfo");
const infox = document.getElementById("close");
infoo.addEventListener("click", () => {
infoo.classList.toggle("open");
bb.classList.toggle("open-info");
aa.classList.toggle("close-main");
infox.classList.toggle("uil");
});
infox.addEventListener("click", () => {
infoo.classList.toggle("open");
bb.classList.toggle("open-info");
aa.classList.toggle("close-main");
infox.classList.toggle("uil");
});
</script>
<script src="./js/script.js"></script>
</html>