2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

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
This commit is contained in:
borisneubert 2015-09-20 07:00:01 +00:00
parent 9f88abd464
commit a452a02807
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
my $xmlns= 'xmlns="http://www.w3.org/1999/xhtml"';
my $scripts= RSS_getScript();
my $code= "$doctype\n<html $xmlns>\n<head>\n<title>$title</title>\n$scripts</head>\n";
my $viewport= "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0\"/>";
my $code= "$doctype\n<html $xmlns>\n<head>\n<title>$name</title>\n$viewport\n$scripts</head>\n";
}