1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-17 23:00:10 -07:00

Added time from weather in tooltip

This commit is contained in:
Andrew Van Tassel 2015-05-30 12:10:31 -06:00
parent cc04f1ff6d
commit e92c20e899
3 changed files with 4 additions and 3 deletions

View File

@ -757,6 +757,7 @@ mailHops.displayResult = function ( header_route, response, meta, lookup_url ){
//set weather of sender
if(weather){
mailHops.resultTextDataPane3.style.display = 'block';
mailHops.resultTextDataPane3.setAttribute('tooltiptext',new Date(weather.time*1000));
mailHops.resultTextDataPane3.value = weather.summary+' '+Math.round(weather.temp)+'\u00B0';
mailHops.resultTextDataPane3.style.backgroundImage = 'url('+mailHops.getWeatherIcon(weather.icon)+')';
}
@ -1034,7 +1035,7 @@ mailHops.getWeatherIcon = function(icon){
, 'sleet': {'day':'rain','night':'rain'}
, 'wind': {'day':'clouds','night':'clouds'}
, 'fog': {'day':'clouds','night':'clouds'}
, 'cloudy': {'day':'cloudy','night':'cloudy_night'}
, 'cloudy': {'day':'clouds','night':'cloudy_night'}
, 'partly-cloudy-day': {'day':'cloudy','night':'cloudy'}
, 'partly-cloudy-night': {'day':'cloudy_night','night':'cloudy_night'}
, 'hail': {'day':'rain','night':'rain'}

View File

@ -64,12 +64,12 @@ button {
background-repeat: no-repeat;
}
.mailhopsHost, .mailhopsHostPref{
.mailhopsHost{
background-image: url(chrome://mailhops/content/images/host.png);
background-repeat: no-repeat;
}
.mailhopsSecure, .mailhopsSecurePref{
.mailhopsSecure{
background-image: url(chrome://mailhops/content/images/secure.png);
background-repeat: no-repeat;
}

Binary file not shown.