-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (83 loc) · 2.5 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FCC Legacy Front End Projects - Show the Local Weather</title>
<script
src="https://kit.fontawesome.com/855ee508c4.js"
crossorigin="anonymous"
></script>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"
rel="stylesheet"
/>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<div id="loader">
<i class="fas fa-circle-notch fa-5x fa-spin"></i>
</div>
<div id="overlay" class="hide">
<div id="content">
<h1>
<i class="fas fa-cloud-sun fa-lg"></i>
JavaScript Weather App
</h1>
<div id="info">
<h2 id="loc"></h2>
<div class="ctrl">
<p id="temp">0</p>
<p>°</p>
<div id="deg">
<span id="c" class="cur" onclick="convert('C')">C</span>
<span id="f" onclick="convert('F')">F</span>
</div>
</div>
<div class="add">
<p><b>Low</b>: <span id="low">0 °C</span></p>
<p><b>Feels Like</b>: <span id="feel">0 °C</span></p>
<p><b>High</b>: <span id="high">0 °C</span></p>
</div>
</div>
<div id="weather">
<div class="icon-wrap">
<img id="icon" />
<h2 id="main">Unknown</h2>
</div>
<div class="add">
<p><b>Wind</b>: <span id="wind">0 mph</span></p>
<p id="desc">Unknown</p>
<p><b>Humidity</b>: <span id="humidity">0%</span></p>
</div>
</div>
<div class="add">
<button id="reload">
<i class="fas fa-redo-alt fa-lg"></i>
Reload
</button>
</div>
</div>
</div>
<script src="script.js"></script>
<!-- Taken from: https://codepen.io/Mark_Bowley/pen/xEbuI -->
<div id="background-wrap">
<div class="x1">
<div class="cloud"></div>
</div>
<div class="x2">
<div class="cloud"></div>
</div>
<div class="x3">
<div class="cloud"></div>
</div>
<div class="x4">
<div class="cloud"></div>
</div>
<div class="x5">
<div class="cloud"></div>
</div>
</div>
</body>
</html>