-
Notifications
You must be signed in to change notification settings - Fork 0
/
forecast.html
139 lines (125 loc) · 7.75 KB
/
forecast.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!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">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="wm.css">
<title>weather forecast</title>
</head>
<body>
<section class="main-wrapper">
<div class="hero-pic">
<div class="search-bar">
<input type="text" id="search-input-weathermap" placeholder="Search city">
<button id="search-btn-weathermap">
<svg id="svg" stroke="currentColor" fill="currentColor" stroke-width="0" version="1"
viewBox="0 0 48 48" enable-background="new 0 0 48 48" height="20px" width="50px"
xmlns="http://www.w3.org/2000/svg">
<g fill="#616161">
<rect x="34.6" y="28.1" transform="matrix(.707 -.707 .707 .707 -15.154 36.586)" width="4"
height="17"></rect>
<circle cx="20" cy="20" r="16"></circle>
</g>
<rect x="36.2" y="32.1" transform="matrix(.707 -.707 .707 .707 -15.839 38.239)" fill="#37474F"
width="4" height="12.3"></rect>
<circle fill="#64B5F6" cx="20" cy="20" r="13"></circle>
<path fill="#BBDEFB"
d="M26.9,14.2c-1.7-2-4.2-3.2-6.9-3.2s-5.2,1.2-6.9,3.2c-0.4,0.4-0.3,1.1,0.1,1.4c0.4,0.4,1.1,0.3,1.4-0.1 C16,13.9,17.9,13,20,13s4,0.9,5.4,2.5c0.2,0.2,0.5,0.4,0.8,0.4c0.2,0,0.5-0.1,0.6-0.2C27.2,15.3,27.2,14.6,26.9,14.2z">
</path>
</svg>
</button>
</div>
</div>
<div id="forecast-content">
<table id="forecast-table">
<th></th>
<tr>
<td>day</td>
<td>temperature</td>
<td>desc</td>
<td>chance of rain</td>
</tr>
<tr class="day1">
<td id="day1"></td>
<td id="temp1"></td>
<td id="desc1"></td>
<td id="rain1"></td>
</tr>
<tr class="day2">
<td id="day2"></td>
<td id="temp2"></td>
<td id="desc2"></td>
<td id="rain2"></td>
</tr>
<tr class="day3">
<td><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024"
height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path
d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z">
</path>
<path
d="M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z">
</path>
<path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"></path>
</svg></td>
</tr>
<tr class="day4">
<td><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024"
height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path
d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z">
</path>
<path
d="M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z">
</path>
<path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"></path>
</svg></td>
</tr>
<tr class="day5">
<td><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024"
height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path
d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z">
</path>
<path
d="M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z">
</path>
<path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"></path>
</svg></td>
</tr>
<tr class="day6">
<td><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024"
height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path
d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z">
</path>
<path
d="M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z">
</path>
<path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"></path>
</svg></td>
</tr>
<tr class="day7">
<td><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024"
height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
<path
d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z">
</path>
<path
d="M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z">
</path>
<path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"></path>
</svg></td>
</tr>
</table>
</div>
<footer>
<h3>some content is premium only</h3>
</footer>
</section>
<script src="forecast.js"></script>
<!-- <script src="util.js"></script> -->
</body>
</html>