-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemperature.html
53 lines (42 loc) · 1.85 KB
/
temperature.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script src="https://kit.fontawesome.com/f2df0e5efa.js" crossorigin="anonymous"></script>
<title>Temperature</title>
</head>
<body>
<!-- <div id="temperature-container"> -->
<div id="weather-container">
<h1><i class="fa-solid fa-temperature-low"></i> Temperature</h1>
In your location: <p></p>
<div id="temperature-data"></div>
<p id="message"><i class="fa-regular fa-message"></i> Hope it's nice out there for ya!</p>
<!-- <img src="https://img.freepik.com/premium-vector/meteorology-thermometers-measuring-temperature-concept_198530-930.jpg" style="width:100%;height:100%;"> -->
<!-- fun fact section -->
<hr>
<div id="fun-fact">
Would you like learning some <a
href="https://mocomi.com/facts-about-temperature/#:~:text=57.8%20%C2%B0C%20(136%20%C2%B0,Antarctica%20on%20July%2021%2C%201983."
style="display: inline;">fun
facts</a> of Temperature?
<ul>
<li>57.8 °C (136 °F) is the hottest temperature ever recorded on Earth. It was recorded on September 13, 1922 in
Al ‘Aziziyah located in Libya.</li>
<li>−89.2 °C (−128.6 °F) is the coldest temperature ever recorded on Earth. It was recorded at Vostok Station
located in Antarctica on July 21, 1983.</li>
</ul>
</div>
<a href="index.html"><i class="fa-solid fa-land-mine-on"></i> Back to Home</a>
<a href="windspeed.html"><i class="fa-solid fa-wind"></i> View Wind Speed</a>
</div>
<script src="script.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
fetchWeatherData('temperature_2m', 'temperature-data');
});
</script>
</body>
</html>