Adding weather data
This commit is contained in:
@@ -623,6 +623,12 @@ function addSpotMessages(aoMessages) {
|
||||
.append(oSpot.lang('local_time', oMsg.formatted_time_local)));
|
||||
}
|
||||
|
||||
//Weather
|
||||
$Tooltip.append($('<p>', {'class':'weather', 'title':oSpot.lang(oMsg.weather_cond)})
|
||||
.addIcon('fa-'+oMsg.weather_icon+' fa-fw fa-lg', true)
|
||||
.append(oMsg.weather_temp+'°C')
|
||||
);
|
||||
|
||||
//Tooltip: Medias
|
||||
if(oMsg.medias) {
|
||||
var $Medias = $('<div>', {'class':'medias'});
|
||||
@@ -812,10 +818,11 @@ function getPost(asPost) {
|
||||
.append($('<p>').addIcon('fa-time', true).append(sAbsTime))
|
||||
.append(bTimeDiff?$('<p>').addIcon('fa-timezone', true).append(oSpot.lang('local_time', sAbsTimeLocal)):'')
|
||||
.append($('<a>', {'class':'drill'})
|
||||
.append($('<span>', {'class':'weather', 'title':oSpot.lang(asPost.weather_cond)}).addIcon('fa-'+asPost.weather_icon, true).append(asPost.weather_temp+'°C'))
|
||||
.append($('<img>', {'class':'staticmap', title: oSpot.lang('click_zoom'), src: getWmtsApiUrl('static', asPost.latitude, asPost.longitude, 13)}))
|
||||
.append($('<span>', {'class': 'drill-icon fa-stack'})
|
||||
.addIcon('fa-message-in fa-stack-1x fa-rotate-270')
|
||||
.addIcon('fa-message fa-stack-2x')
|
||||
.addIcon('fa-message-in fa-stack-1x fa-rotate-270')
|
||||
)
|
||||
.click(function(){
|
||||
var $Parent = $(this).parent();
|
||||
|
||||
Reference in New Issue
Block a user