Skip to content

Commit f8a0cef

Browse files
committed
modified: views/pages/weatherbit.ejs
modified: views/partials/footer.ejs
1 parent 5ac6f15 commit f8a0cef

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

views/pages/weatherbit.ejs

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<header>
1111
<%- include('./../partials/header'); %>
1212
</header>
13-
<main onload="">
13+
<main>
1414
<br />
1515
<div>
1616
<fieldset>
@@ -36,23 +36,19 @@
3636
<br />
3737
<strong>Geolocation</strong>: <%= curData.lat %>, <%= curData.lon %>
3838
<br />
39-
<strong>Time zone: </strong>
40-
<%= curData.timezone %>
39+
<strong>Datetime</strong>: <%= curData.ob_time %>
40+
<br />
41+
<strong>Time zone</strong>: <%= curData.timezone %>
4142
<br />
4243
<hr />
4344
</p>
4445
<table class="styled-table">
4546
<tr class="active-row">
46-
<th>Datetime: </th>
47+
<th>Cloud cover(%): </th>
4748
<td>
48-
<%= curData.ob_time %>
49+
<%= curData.clouds %>
4950
</td>
5051
</tr>
51-
<th>Cloud cover(%): </th>
52-
<td>
53-
<%= curData.clouds %>
54-
</td>
55-
</tr>
5652
<th>Temperature(F): </th>
5753
<td>
5854
<%= curData.temp %>
@@ -201,7 +197,7 @@
201197
<% if( typeof(error)==="undefined" || foreStatus===400 ){ %>
202198
<p style="color:gray"> Waiting for data.</p>
203199
<% } else { %>
204-
<table class="styled-table">
200+
<table class="styled-table" style="overflow-x: auto;">
205201
<thead>
206202
<tr class="w-35">
207203
<th style="color:black;"> Date</th>
@@ -210,8 +206,7 @@
210206
<th style="color:rgb(27, 119, 223);"> TemperatureF) </th>
211207
<th style="color:rgba(20, 15, 177, 0.474);"> Pressure(㎧)</th>
212208
<th style="color:green;"> Humidity</th>
213-
<th style="color:rgb(198, 73, 15);"> Wind Speed</th>
214-
<th style="color:rgb(198, 15, 195);"> Wind Gust</th>
209+
<th style="color:rgb(198, 15, 195);"> Wind</th>
215210
<th style="color:rgb(15, 22, 207);"> Cloud Cover(%)</th>
216211
<th style="color:rgb(30, 140, 224);"> Visibility</th>
217212
<th style="color:rgb(78, 122, 80);"> UV Index</th>
@@ -242,9 +237,6 @@
242237
<td style="color:green;">
243238
<%= forecast[i].rh %>
244239
</td>
245-
<td style="color:rgb(198, 73, 15);">
246-
<%= forecast[i].wind_gust_spd %>
247-
</td>
248240
<td style="color:rgb(198, 15, 195);">
249241
<%= forecast[i].wind_gust_spd %> <%= forecast[i].wind_cdir %>
250242
</td>

views/partials/footer.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- This code contains copyright information and uses several classes from Bootstrap for styling. -->
22
<p class="text-center text-muted" style="
3-
position:fixed;
3+
44
bottom:0;
55
left:20px;
66
">&copy; Copyright 2022 by The Awesome TechRolEmi</p>

0 commit comments

Comments
 (0)