-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (95 loc) · 3.23 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
100
101
102
103
104
<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>Weatherspark Getter</title>
<style>
* {
font-family: Arial, Helvetica, sans-serif;
}
input {
font-size: 20px;
padding: 10px;
margin-bottom: 10px;
}
/* results section */
#search-results {
flex-direction: column;
gap: 10px;
}
.result {
padding: 10px;
background-color: whitesmoke;
border: 1px solid #ccc;
}
.result:hover {
cursor: pointer;
background-color: lightgray;
}
/* legend section*/
.legend {
white-space: nowrap;
overflow-y: scroll;
border-top: 2px solid #ccc;
padding-top: 20px;
display: flex;
flex-direction: row;
margin-bottom: 10px;
}
.legend-bit {
display: flex;
flex-direction: column;
align-items: center;
}
.degree {
margin-top: -10px;
}
.temp-name {
padding: 4px 12px;
color: whitesmoke;
}
</style>
</head>
<body>
<header>
<h1>WeatherSpark Getter</h1>
<p>Gets barebones version of Weather Spark's beautifully designed "year-round temperature averages" graphic as PNG.</p>
</header>
<!-- SEARCH -->
<input type="text" name="city" id="city" placeholder="city search" />
<!-- SEARCH RESULTS -->
<div id="search-results"></div>
<!-- INFOGRAPHIC -->
<div class="download"></div>
<div id="infographic"></div>
<!-- LEGEND -->
<div class="legend">
<p class="temp-name" style="background: rgba(92, 160, 180, 1)">frigid</p>
<p class="degree">-9°C</p>
<p class="temp-name" style="background: rgba(131, 194, 213, 1)">freezing</p>
<p class="degree">0°C</p>
<p class="temp-name" style="background: rgba(103, 149, 104, 1)">very cold</p>
<p class="degree">7°C</p>
<p class="temp-name" style="background: rgba(116, 168, 119, 1)">cold</p>
<p class="degree">13°C</p>
<p class="temp-name" style="background: rgba(141, 191, 113, 1)">cool</p>
<p class="degree">18°C</p>
<p class="temp-name" style="background: rgba(233, 204, 119, 1)">comfortable</p>
<p class="degree">24°C</p>
<p class="temp-name" style="background: rgba(199, 117, 96, 1)">warm</p>
<p class="degree">29°C</p>
<p class="temp-name" style="background: rgba(176, 91, 90, 1)">hot</p>
<p class="degree">35°C</p>
<p class="temp-name" style="background: rgba(152, 75, 68, 1)">sweltering</p>
</div>
<!-- Footer -->
<footer>
made by <a href="https://github.com/mostlyemre" target="_blank">emre</a><br /><br />Uses ⚡️ Weather Spark.
<a href="https://weatherspark.com/" target="_blank">https://weatherspark.com/</a>. <br /><br />I recommend using Weather Spark's site instead of
the "getter", as this is created as a solution to an extremely niche shortcoming of one of my side projects and doesn't make sense to use 99% of
the time.
</footer>
<script type="module" src="script.js"></script>
</body>
</html>