-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (78 loc) · 2.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather</title>
<link rel="stylesheet" href="style.css">
<script src="lib/colorTools.js"></script>
<script src="weatherImages.js"></script>
<script src="weatherQuotes.js"></script>
<script defer src="weather.js"></script>
</head>
<body>
<header>
<form id="location-form">
<label for="location-input">Show weather in</label>
<input id="location-input" name="location" type="search" placeholder="City or ZIP Code">
<button id="fetch-weather-button">Go</button>
</form>
</header>
<main>
<section id="loading" class="hidden">
<p>Loading<span id="ellipsis"></span></p>
</section>
<section id="error-message" class="hidden">
<p>Sorry, we couldn't find the weather for that location!</p>
</section>
<section id="results" class="hidden">
<h1 class="section-head"><span id="location-output"></span></h1>
<div id="low-temp-card" class="card low temp-card">
<h2 class="heading">Low</h2>
<h2 class="temp-text">
<span class="key-metric">
<span class="temperature">??</span><span class="deg">°</span>
</span>
<span class="measure-unit">F</span>
</h2>
<meter class="thermometer" min="0" max="100">?? degrees Fahrenheit</meter>
</div>
<div id="high-temp-card" class="card high temp-card">
<h2 class="heading">High</h2>
<h2 class="temp-text">
<span class="key-metric">
<span class="temperature">??</span><span class="deg">°</span>
</span>
<span class="measure-unit">F</span>
</h2>
<meter class="thermometer" min="0" max="100">?? degrees Fahrenheit</meter>
</div>
<div id="conditions-card" class="card">
<p class="image-credit">Image Credit</p>
<h2 class="description">Weather</h2>
</div>
<div id="wind-card" class="card">
<h2 class="heading">Wind</h2>
<h2 class="wind-text">
<span class="key-metric wind-speed">??</span>
<span class="measure-unit">mph</span>
</h2>
<div class="wind-graphic">
<img class="wind-arrow" src="./img/wind-arrow-down.svg">
</div>
</div>
<div id="quote-card" class="card">
<p class="quote-text">A quote goes here</p>
<p class="quote-source">Somebody</p>
</div>
</section>
</main>
<footer>
<p>
<span>Made by <a href="https://github.com/McKathlin">McKathlin</a></span>
<span class="divider"></span>
<span>Weather results powered by <a href="https://www.visualcrossing.com/weather-api">Visual Crossing Weather</a></span>
</p>
</footer>
</body>
</html>