mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-08 16:34:47 +00:00
compliments: add abilty to set classes for compliments module
This commit is contained in:
parent
9e2bbd50b6
commit
53d2c7e89f
@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Added option `remoteFile` to compliments module to load compliment array from filesystem.
|
- Added option `remoteFile` to compliments module to load compliment array from filesystem.
|
||||||
- Added option `zoom` to scale the whole mirror display with a given factor.
|
- Added option `zoom` to scale the whole mirror display with a given factor.
|
||||||
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
|
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
|
||||||
|
- Added abilty set the classes option to compliments module for style and text size of compliments.
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
- Modified translations for Frysk.
|
- Modified translations for Frysk.
|
||||||
|
@ -144,7 +144,7 @@ Module.register("compliments",{
|
|||||||
|
|
||||||
var compliment = document.createTextNode(complimentText);
|
var compliment = document.createTextNode(complimentText);
|
||||||
var wrapper = document.createElement("div");
|
var wrapper = document.createElement("div");
|
||||||
wrapper.className = "thin xlarge bright";
|
wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright";
|
||||||
wrapper.appendChild(compliment);
|
wrapper.appendChild(compliment);
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user