-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (39 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Weather and Corona</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Chewy&family=VT323&display=swap" rel="stylesheet">
</head>
<body>
<main id="" tabindex="0">
<section class="landing-page">
<h1>Rainy with a chance of plague</h1>
<img src="./images/image-removebg-preview.png" class="zombie" alt="Image of a cartoon zombie">
<p>Input your postcode to find out the number of Covid-19 cases and weather conditions in your area</p>
<form>
<label for="postcode">Enter your postcode:</label>
<input type="text" id="postcode" name="postcode" class="postcode">
<input type="submit" value="Wish me luck!" class="submit" aria-label="submit your postcode ">
</input>
</form>
</section>
<section class="display-results none" id="results">
<img class="display-results-img" src="./images/01.svg" alt="image of sun">
<p class="display-results-weather"></p>
<p class="display-results-covid"></p>
</section>
<button onclick="location.href='#'">Up</button>
</main>
<footer>
<p> Source: <a href="https://postcodes.io/">Postcodes API</a> </br>
Source: <a href="https://documenter.getpostman.com/view/9215231/SzYZ2Jss?version=latest">UK Coronavirus Data API</a></br>
Source: <a href="https://openweathermap.org/api">Open Weather API</a>
</p>
</footer>
<script src="postcode.js"></script>
<script src="weather.js"></script>
<script src="covid.js"></script>
</body>
</html>