-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (49 loc) · 1.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Weather Dashboard</title>
<!-- CSS Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" />
<!-- Day.js -->
<script
defer
src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"
></script>
<!-- JavaScript -->
<script defer src="resources/javascript/script.js"></script>
</head>
<body>
<header>
<h1>Weather Dashboard</h1>
</header>
<main>
<aside>
<form id="search-form">
<label for="search">Search for a City:</label>
<input id="search-input" type="text" name="search" />
<button type="submit">Search</button>
</form>
<hr />
<div class="city-list"></div>
</aside>
<section>
<div class="city hidden">
<h2>
<span id="city-name"></span> <span id="city-date"></span>
<span id="city-emoji"></span>
</h2>
<p>Temp: <span id="temp-current"></span></p>
<p>Wind: <span id="wind-current"></span></p>
<p>Humidity: <span id="humidity-current"></span></p>
</div>
<div class="forecast hidden">
<h3>5-Day Forecast:</h3>
<div class="cards"></div>
</div>
</section>
</main>
</body>
</html>