mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Style update
This commit is contained in:
parent
3d583c9eae
commit
85a40f68cb
@ -98,10 +98,6 @@ body, html {
|
|||||||
{
|
{
|
||||||
width: 60px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
.forecast-table .temp-min
|
|
||||||
{
|
|
||||||
width: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.forecast-table .day
|
.forecast-table .day
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ jQuery(document).ready(function($) {
|
|||||||
var temp_max = roundTemp(json.main.temp_max);
|
var temp_max = roundTemp(json.main.temp_max);
|
||||||
|
|
||||||
var iconClass = iconTable[json.weather[0].icon];
|
var iconClass = iconTable[json.weather[0].icon];
|
||||||
var icon = $('<span/>').addClass('icon').addClass(iconClass);
|
var icon = $('<span/>').addClass('icon').addClass('dimmed').addClass(iconClass);
|
||||||
$('.temp').updateWithText(icon.outerHTML()+temp+'°', 1000);
|
$('.temp').updateWithText(icon.outerHTML()+temp+'°', 1000);
|
||||||
|
|
||||||
// var forecast = 'Min: '+temp_min+'°, Max: '+temp_max+'°';
|
// var forecast = 'Min: '+temp_min+'°, Max: '+temp_max+'°';
|
||||||
@ -178,8 +178,8 @@ jQuery(document).ready(function($) {
|
|||||||
var row = $('<tr />');
|
var row = $('<tr />');
|
||||||
|
|
||||||
row.append($('<td/>').addClass('day').html(dayAbbr[dt.getDay()]));
|
row.append($('<td/>').addClass('day').html(dayAbbr[dt.getDay()]));
|
||||||
row.append($('<td/>').addClass('temp-max').html(roundTemp(forecast.temp_max)+'°'));
|
row.append($('<td/>').addClass('temp-max').html(roundTemp(forecast.temp_max)));
|
||||||
row.append($('<td/>').addClass('temp-min').html(roundTemp(forecast.temp_min)+'°'));
|
row.append($('<td/>').addClass('temp-min').html(roundTemp(forecast.temp_min)));
|
||||||
|
|
||||||
forecastTable.append(row);
|
forecastTable.append(row);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user