-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (32 loc) · 1.38 KB
/
index.html
File metadata and controls
33 lines (32 loc) · 1.38 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<link rel="icon" href="images/cloudy.png">
<link rel="stylesheet" href="styles.css">
<meta name="author" content="Brian Shifoko">
<meta name="description" content="A simple weather app to fetch current weather and forecast.">
</head>
<body>
<main class="container">
<header>
<h1>Weather App</h1>
</header>
<section class="search">
<label for="country-input" class="visually-hidden"></label>
<input type="text" id="country-input" placeholder="Enter country, City or Town" aria-label="Country, City or Town">
<button id="search-btn" aria-label="Search for weather">Search</button>
</section>
<section class="weather-card" id="weather-card" aria-live="polite"></section>
<p>Turn on Toggle to use Fahrenheit</p>
<div class="toggle-switch">
<input type="checkbox" id="unit-toggle" class="toggle-checkbox" aria-label="Toggle between Celsius and Fahrenheit">
<label for="unit-toggle" class="toggle-label"></label>
</div>
</main>
<script src="script.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/suncalc/1.8.0/suncalc.min.js"></script>
</body>
</html>