{
for (var a=0; a<attach.length; a++)
{
- if ( attach[a].objectType == "photo")
+ if ( attach[a].objectType == "album")
+ {
+ noteimg = attach[a].thumbnails[0].image.url;
+ }
+ else if ( attach[a].objectType == "photo")
{
noteimg = attach[a].image.url;
}
}
}
ghtml += '<div class="gpluspost">'
- ghtml += '<img class="gplusactor" src="'+item.actor.image.url+'"/><p class="gplustimestamp">'+item.updated+'</p>';
+ ghtml += '<img class="gplusactor" src="'+item.actor.image.url+'"/><p class="gplustimestamp">'+item.updated.substring(0,16).replace("T"," ")+'</p>';
ghtml += '<p class="gplustxt">'+notetxt+'</p>';
if (noteimg)
{
{
$.each( data.sensors[s], function(stype, std){
$.each( std, function(swhere, svalue){
- sensorstd+='<td style="background-color:white; height:42px; text-align:center; vertical-align:middle; display:table-cell;"><b>'+stype+'</b><br/>'+swhere+': '+svalue+'</td>';
+ sensorstd+='<td class="sensorstatus"><b>'+stype+'</b><br/>'+swhere+': '+svalue+'</td>';
});
});
}
loadCalendar();
loadGooglePlusEvents();
setInterval("updateAnwesenheitStatus()", 10000);
- setInterval("loadCalendar()", 100000);
- setInterval("updateSensors()", 50000);
- setInterval("loadGooglePlusEvents()", 3600*1000);
+ setInterval("loadCalendar()", 123*1000);
+ setInterval("updateSensors()",125*1000);
+ setInterval("loadGooglePlusEvents()", 1207*1000);
});
function updateDateClock(now)