-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
57 lines (56 loc) · 1.85 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css?family=Hind+Madurai|Lora|Montserrat&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="container">
<!-- Weather status interface -->
<h1>Weather status</h1>
<input id="input-location" type="text" placeholder="Type location here" />
<span id="error-message"></span>
<div class="buttons">
<button id="input-location-button" onclick="locationButtonOnClick ()">
Get temperature
</button>
<button id="current-location" onclick="currentLocationButtonOnClick()">
Current location
</button>
</div>
<!-- Weather info display -->
<section id="show-weather">
<div class="weather-main">
<h2 id="city-name"></h2>
<!-- <img alt="weather-icon"> -->
<h3></h3>
<div class="data-container">
<p class="data" id="temperature"></p>
<p class="data" id="clouds"></p>
<p class="data" id="humidity"></p>
<p class="data" id="min-temp"></p>
<p class="data" id="max-temp"></p>
<p class="data" id="sunrise"></p>
<p class="data" id="sunset"></p>
<p class="data" id="wind-speed"></p>
</div>
</div>
<!-- Google maps -->
<div id="map"></div>
</section>
</div>
<script
async
defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDuZiptyl63Ijn3ZH4akMjXAqxZYk2eT1E&callback"
></script>
<script src="script.js"></script>
</body>
</html>