From 1e58432ae2406d98d53a8d1aae683199dfcff3bb Mon Sep 17 00:00:00 2001 From: borisneubert Date: Sun, 20 Sep 2015 07:00:01 +0000 Subject: [PATCH] 02_RSS: viewport in HTML header makes page fit screen on tablets git-svn-id: https://svn.fhem.de/fhem/trunk@9279 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/02_RSS.pm | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 94e43bb13..fbb1d7063 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 02_RSS: viewport in HTML header makes page fit screen on tablets - bugfix: 74_AMAD: fixed hash->{PORT} in log output - bugfix: 70_PushNotifier: - require Try::Tiny - feature: 70_Jabber: - Added OTR (Off the Record) end to end encryption diff --git a/fhem/FHEM/02_RSS.pm b/fhem/FHEM/02_RSS.pm index ff3c64c45..3e6626df3 100644 --- a/fhem/FHEM/02_RSS.pm +++ b/fhem/FHEM/02_RSS.pm @@ -272,12 +272,16 @@ RSS_getScript() { sub RSS_HTMLHead($$) { - my ($title,$refresh) = @_; + my ($name,$refresh) = @_; + + my ($width,$height)= split(/x/, AttrVal($name,"size","800x600")); + my $doctype= ''; my $xmlns= 'xmlns="http://www.w3.org/1999/xhtml"'; my $scripts= RSS_getScript(); - my $code= "$doctype\n\n\n$title\n$scripts\n"; + my $viewport= ""; + my $code= "$doctype\n\n\n$name\n$viewport\n$scripts\n"; }