Skip to content

Commit

Permalink
Update octopus-energy-rates-card.js
Browse files Browse the repository at this point in the history
Changed sizing of text and display and modified past dates
  • Loading branch information
FozzieUK authored Nov 28, 2023
1 parent ca317db commit b3d61e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octopus-energy-rates-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ class OctopusEnergyRatesCard extends HTMLElement {
else if (valueToDisplay > mediumlimit) colour = colours[2];
else if (valueToDisplay <= 0) colour = colours[3];

if(showpast || (date - Date.parse(new Date())>-1800000)) {
table = table.concat("<tr class='rate_row'><td class='time time_"+colour+"'>" + date_locale + time_locale +
if(showpast || (date - Date.parse(new Date())>-41400000)) {
table = table.concat("<tr class='rate_row' style='font-size: 13px; height: 18px;'><td class='time time_"+colour+"'>" + date_locale + time_locale +
"</td><td class='rate "+colour+"'>" + valueToDisplay.toFixed(roundUnits) + unitstr + "</td></tr>");

if (x % rows_per_col == 0) {
Expand Down

0 comments on commit b3d61e4

Please sign in to comment.