-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10-weather-app.html
69 lines (56 loc) · 3.55 KB
/
10-weather-app.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- BOOTSTRAP CDN -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"
integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- FONTAWESOME -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<title>Weather App</title>
</head>
<body class="p-4 bg-dark d-flex justify-content-center mt-3">
<div class="card" style="width: 18rem;">
<div class="input-group d-flex justify-content-center p-3">
<input class="input rounded form-control" type="text" placeholder="City name..." id="input">
<button class="btn btn-dark" type="button" id="button">
<span class="input-group-text bg-dark border-dark" id="addon-wrapping">
<i class="fa-solid fa-magnifying-glass text-primary" ></i>
</span>
</button>
</div>
<div class="weather d-flex flex-column mx-3 align-items-center mb-3">
<img src="./img/temperature.gif" alt="weather icon" id="weatherIcon" style="width: 200px;">
<script type="text/javascript" async src="https://tenor.com/embed.js"></script>
<h5 class="city" id="city">---</h5>
<h3 id="temperature">---°C</h3>
</div>
<div class="d-flex justify-content-around align-items-center">
<div style="width: 50px;">
<div class="tenor-gif-embed" data-postid="15709878" data-share-method="host" data-aspect-ratio="1" data-width="100%"><a href="https://tenor.com/view/ah-sweat-tired-exhausted-long-day-gif-15709878">Ah Sweat Sticker</a>from <a href="https://tenor.com/search/ah-stickers">Ah Stickers</a></div>
<script type="text/javascript" async src="https://tenor.com/embed.js"></script>
<p style="margin-bottom: 0px; font-weight: 800; font-size: 12px;" class="text-center" id="humidity">---</p>
<p style="font-size: 10px; margin-top: 0px; " class="text-center">Humidity</p>
</div>
<div style="width: 50px;">
<div class="tenor-gif-embed" data-postid="14225275" data-share-method="host" data-aspect-ratio="1" data-width="100%"><a href="https://tenor.com/view/shrimp-hand-fan-sweating-shy-shrimp-pikaole-gif-14225275">Shrimp Hand Fan Sticker</a>from <a href="https://tenor.com/search/shrimp-stickers">Shrimp Stickers</a></div>
<script type="text/javascript" async src="https://tenor.com/embed.js"></script>
<p style="margin-bottom: 0px; font-weight: 800; font-size: 12px;" class="text-center" id="wind">---</p>
<p style="font-size: 10px; margin-top: 0px;" class="text-center">Wind</p>
</div>
</div>
<script src="./js/10-weather-app.js"></script>
</body>
</html>