-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
72 lines (71 loc) · 2.58 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
<!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">
<title> Free Weather App</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="weather__header">
<form class="weather__search">
<input type="text" placeholder="Search for a city..." class="weather__searchform">
<i class="fa-solid fa-magnifying-glass"></i>
</form>
<div class="weather__units">
<span class="weather_unit_celsius" onclick="convertTempToC()">°C</span>
<span class="weather_unit_farenheit" onclick="convertTempToF()">°F</span>
</div>
</div>
<div class="weather__body">
<p id="errorMessage"></p>
<h1 class="weather__city"></h1>
<div class="weather__datetime">
</div>
<div class="weather__forecast"></div>
<div class="weather__icon">
</div>
<p class="weather__temperature temps">
</p>
<div class="weather__minmax">
<p>Min: <span class="temps"></span></p>
<p>Max: <span class="temps"></span></p>
</div>
</div>
<div class="weather__info">
<div class="weather__card">
<i class="fa-solid fa-temperature-full"></i>
<div>
<p>Real Feel</p>
<p class="weather__realfeel"><span class="temps"></span></p>
</div>
</div>
<div class="weather__card">
<i class="fa-solid fa-droplet"></i>
<div>
<p>Humidity</p>
<p class="weather__humidity">18°</p>
</div>
</div>
<div class="weather__card">
<i class="fa-solid fa-wind"></i>
<div>
<p>Wind</p>
<p class="weather__wind">18°</p>
</div>
</div>
<div class="weather__card">
<i class="fa-solid fa-gauge-high"></i>
<div>
<p>Pressure</p>
<p class="weather__pressure">18°</p>
</div>
</div>
</div>
</div>
<script src="https://kit.fontawesome.com/a692e1c39f.js" crossorigin="anonymous"></script>
<script src="weather.js"></script>
</body>
</html>