forked from bleedingcode/node-red-weather-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-raw.html
224 lines (208 loc) · 7.12 KB
/
dashboard-raw.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Weather Dashboard</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<style>
.section {
top: 0;
width: 100%;
z-index: 999;
background-color: #111111;
color: #ccc;
border-top: solid 3px #1E97E3;
height: 50px;
}
.menuitem {
margin-top: 12px;
display: inline-block;
width: 100px;
}
.menulink {
height: 40px;
padding: 7px;
border-bottom: 3px solid transparent;
}
.menulink:hover {
border-bottom: 3px solid #1E97E3;
text-decoration: none;
color: #1E97E3;
}
.footer {
margin-top: 12px;
}
.liitem {
height: 45px;
}
.skillLine {
display: inline-block;
width: 100%;
min-height: 90px;
padding: 3px 4px;
}
skillLineDefault {
padding: 3px 4px;
}
div.skill {
background: #F58723;
border-radius: 3px;
color: white;
font-weight: bold;
padding: 3px 4px;
width: 70px;
}
.rating {
margin-left: 30px;
}
.footerQR {
margin-left: 30%;
}
.leftText {
font-size: 41px;
}
.rightText {
font-size: 41px;
background: #F58723;
border-radius: 3px;
color: white;
padding: 3px 4px;
}
</style>
</head>
<body>
<div class="container">
<div class="row" style="margin-top: 30px">
<div class="col-xs-10 col-sm-8 col-sm-offset-2 col-xs-offset-1">
<form id="searchForm">
<div class="form-group">
<div class="input-group">
<input id="inputSearch" type="text" class="form-control input-lg" name="search"
placeholder="Search 'city name' or 'city, country code' " />
<span class="input-group-btn">"
<button id="searchSubmit" type="submit" class="btn btn-primary btn-lg ladda-button"
data-style="expand-right" type="submit"><span class="ladda-label">Search</span></button>
</span>
</div>
</div>
</form>
</div>
</div>
<h2 style="text-align: center;margin: auto">Chicago, United States</h2>
<div class="container">
<br />
<div class="row">
<div class="col-sm-6 col-lg-4">
<div class="panel panel-primary" style="height: 450px;">
<div class="panel-heading">
<h4 class="text-center">Current Forecast<span class="glyphicon glyphicon-asterisk pull-right"></span>
</h4>
</div>
<div class="panel-body text-center">
<p>
<strong>broken clouds</strong>
<img src="https://openweathermap.org/img/wn/[email protected]" />
</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item liitem"><strong>Temperature:</strong>
<span class="pull-right">23°C</span>
</li>
<li class="list-group-item liitem"><strong>Feels Like:</strong>
<span class="pull-right">23°C</span>
</li>
<li class="list-group-item liitem"><strong>Humidity:</strong>
<span class="pull-right">72%</span>
</li>
<li class="list-group-item liitem"><strong>Sunrise:</strong>
<span class="pull-right">12:23 PM</span>
</li>
<li class="list-group-item liitem"><strong>Sunset:</strong>
<span class="pull-right">03:11 AM</span>
</li>
</ul>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="panel panel-primary" style="height: 450px;">
<div class="panel-heading">
<h4 class="text-center">5 Day Weather Forecast<span class="glyphicon glyphicon-list pull-right"></span>
</h4>
</div>
<table class="table table-hover">
<tr>
<td>23/5</td>
<td>25°C - light rain</td>
<td><img style="margin-top: -10px;" src="https://openweathermap.org/img/wn/10d.png" /></td>
</tr>
<tr>
<td>23/5</td>
<td>25°C - light rain</td>
<td><img style="margin-top: -10px;" src="https://openweathermap.org/img/wn/10d.png" /></td>
</tr>
<tr>
<td>23/5</td>
<td>25°C - light rain</td>
<td><img style="margin-top: -10px;" src="https://openweathermap.org/img/wn/10d.png" /></td>
</tr>
<tr>
<td>23/5</td>
<td>25°C - light rain</td>
<td><img style="margin-top: -10px;" src="https://openweathermap.org/img/wn/10d.png" /></td>
</tr>
<tr>
<td>23/5</td>
<td>25°C - light rain</td>
<td><img style="margin-top: -10px;" src="https://openweathermap.org/img/wn/10d.png" /></td>
</tr>
</table>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="panel panel-primary" style="height: 450px;">
<div class="panel-heading">
<h4 class="text-center">About United States<span class="glyphicon glyphicon-map-marker pull-right"></span>
</h4>
</div>
<div class="panel-body text-center">
<img src="https://restcountries.eu/data/usa.svg" width="20%" />
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item liitem"><strong>Code:</strong>
<span class="pull-right">US</span>
</li>
<li class="list-group-item liitem"><strong>Capital:</strong>
<span class="pull-right">Washington, D.C.</span>
</li>
<li class="list-group-item liitem"><strong>Population:</strong>
<span class="pull-right">323,947,000</span>
</li>
<li class="list-group-item liitem"><strong>Currencies:</strong>
<span class="pull-right">USD ($)</span>
</li>
<li class="list-group-item liitem"><strong>Languages:</strong>
<span class="pull-right">English</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function (e) {
$("#searchSubmit").click(function (e) {
e.preventDefault()
var search = $('#inputSearch').val()
var url = location.protocol + "//" + location.host + location.pathname
if (!search) return alert("Please provide a search term");
url += '?search=' + search;
window.location.replace(url);
});
});
</script>
</body>
</html>