From ada40a47ddd05e721fa8b449bd0e6e9b9aee0949 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Wed, 24 Apr 2013 00:50:44 +0000 Subject: [PATCH] show multiple image if album --- raspberry-kiosk/kiosk.css | 8 +++++--- raspberry-kiosk/kiosk.js | 18 +++++++++++++----- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/raspberry-kiosk/kiosk.css b/raspberry-kiosk/kiosk.css index cc29079..1621337 100644 --- a/raspberry-kiosk/kiosk.css +++ b/raspberry-kiosk/kiosk.css @@ -178,7 +178,7 @@ p.gplustimestamp { background-color: Gainsboro; border-bottom-left-radius:9px; } -p.gplusimg { +table.gplusimg { display:block; margin-left:0; margin-top:6px; @@ -186,9 +186,11 @@ p.gplusimg { margin-right:0; overflow:hidden; max-height:275px; -} -img.gplusimg { width:495px; + border: 0px none black; + padding: 0; + border-spacing: 0; + border-collapse:collapse; } p.gplustxt { display:block; diff --git a/raspberry-kiosk/kiosk.js b/raspberry-kiosk/kiosk.js index d453cda..338f8da 100644 --- a/raspberry-kiosk/kiosk.js +++ b/raspberry-kiosk/kiosk.js @@ -7,18 +7,21 @@ function writeGooglePlusEvents(data, elem) var noteobj = item.object; var attach = noteobj.attachments; var notetxt = noteobj.content; - var noteimg = false; + var noteimgs = new Array(); if (attach) { for (var a=0; a

'+item.updated.substring(0,16).replace("T"," ")+'

'; ghtml += '

'+notetxt+'

'; - if (noteimg) + if (noteimgs.length>0) { - ghtml += '

'; + ghtml += ''; + for (var ni=0; ni'; + } + ghtml += '
'; } ghtml += ''; } -- 1.7.10.4