diff --git a/fhem/CHANGED b/fhem/CHANGED
index 943d4063a..16e35542e 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.
+ - FHEMWEB: JavaScripts and CssFiles attributes added
- change: avoid updating weather information on get (59_Weather.pm)
- change: removed noshutdown=0 for HTTP connections made in 57_Calendar.pm
and 59_Weather.pm to address issues when FHEM is behind
diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm
index bdc1b4291..65ad174dd 100755
--- a/fhem/FHEM/01_FHEMWEB.pm
+++ b/fhem/FHEM/01_FHEMWEB.pm
@@ -127,6 +127,7 @@ FHEMWEB_Initialize($)
my @attrList = qw(
CORS:0,1
HTTPS:1,0
+ CssFiles
JavaScripts
SVGcache:1,0
addStateEvent
@@ -642,7 +643,10 @@ FW_answerCall($)
FW_pO "" if($rf);
}
- FW_pO "";
+ my $cssTemplate = "";
+ FW_pO sprintf($cssTemplate, "pgm2/style.css");
+ my @cssFiles = split(" ", AttrVal($FW_wname, "CssFiles", ""));
+ map { FW_pO sprintf($cssTemplate, $_); } @cssFiles;
########################
# FW Extensions
@@ -3076,6 +3080,15 @@ FW_widgetOverride($$)
FHEM-Server, and iPad/iPhone as Web-client.
+
+
+ attr WEB CssFiles pgm2/mystyle.css
+
+ attr WEB CssFiles pgm2/mystyle.css
+