-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (45 loc) · 1.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Weather App</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/css/weather-icons.min.css"/>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-big">
<div class="container1">
<div class="box1">
<header>Weather.io</header>
</div>
</div>
</div>
<div style="margin-bottom: 80px;" id="current-weather">
<h2 class="current-city">Weather in <span class="current-city" id="current-city"></span><i id="current-icon" class="weather-icon"></i></h2>
<p>Temperature: <span id="current-temperature"></span> ℃</p>
<p>Humidity: <span id="current-humidity"></span>%</p>
<p>Description: <span id="current-description"></span></p>
<div id="map"></div>
</div>
<h1>Search Weather of a City</h1>
<form id="search-form">
<input class="search-bar" list="cities" id="location" name="location">
<datalist id="cities"></datalist>
<button class="button">Get Weather</button>
</form>
<div id="weather-details">
<h2 class="current-city" id="city"></h2>
<p>Temperature: <span id="temperature"></span> ℃</p>
<p>Humidity: <span id="humidity"></span>%</p>
<p>Description: <span id="description"></span></p>
<i id="icon" class="weather-icon"></i>
</div>
<footer>
<p>by Gaga</p>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</footer>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<script src="app.js"></script>
</body>
</html>