mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-18 07:10:09 -07:00
Added time from weather in tooltip
This commit is contained in:
parent
cc04f1ff6d
commit
e92c20e899
@ -757,6 +757,7 @@ mailHops.displayResult = function ( header_route, response, meta, lookup_url ){
|
|||||||
//set weather of sender
|
//set weather of sender
|
||||||
if(weather){
|
if(weather){
|
||||||
mailHops.resultTextDataPane3.style.display = 'block';
|
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.value = weather.summary+' '+Math.round(weather.temp)+'\u00B0';
|
||||||
mailHops.resultTextDataPane3.style.backgroundImage = 'url('+mailHops.getWeatherIcon(weather.icon)+')';
|
mailHops.resultTextDataPane3.style.backgroundImage = 'url('+mailHops.getWeatherIcon(weather.icon)+')';
|
||||||
}
|
}
|
||||||
@ -1034,7 +1035,7 @@ mailHops.getWeatherIcon = function(icon){
|
|||||||
, 'sleet': {'day':'rain','night':'rain'}
|
, 'sleet': {'day':'rain','night':'rain'}
|
||||||
, 'wind': {'day':'clouds','night':'clouds'}
|
, 'wind': {'day':'clouds','night':'clouds'}
|
||||||
, 'fog': {'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-day': {'day':'cloudy','night':'cloudy'}
|
||||||
, 'partly-cloudy-night': {'day':'cloudy_night','night':'cloudy_night'}
|
, 'partly-cloudy-night': {'day':'cloudy_night','night':'cloudy_night'}
|
||||||
, 'hail': {'day':'rain','night':'rain'}
|
, 'hail': {'day':'rain','night':'rain'}
|
||||||
|
@ -64,12 +64,12 @@ button {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mailhopsHost, .mailhopsHostPref{
|
.mailhopsHost{
|
||||||
background-image: url(chrome://mailhops/content/images/host.png);
|
background-image: url(chrome://mailhops/content/images/host.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mailhopsSecure, .mailhopsSecurePref{
|
.mailhopsSecure{
|
||||||
background-image: url(chrome://mailhops/content/images/secure.png);
|
background-image: url(chrome://mailhops/content/images/secure.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
BIN
mailhops.xpi
BIN
mailhops.xpi
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user