Merge pull request #558 from roramirez/size-for-compliments-text

Size for compliments text
This commit is contained in:
Michael Teeuw
2016-12-09 14:54:29 +01:00
committed by GitHub
3 changed files with 11 additions and 10 deletions

View File

@@ -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 `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 abilty set the classes option to compliments module for style and text size of compliments.
### Updated
- Modified translations for Frysk.

View File

@@ -89,7 +89,7 @@ If use the currentweather is possible use a actual weather for set compliments.
* <code>night_rain</code>
* <code>night_thunderstorm</code>
* <code>night_snow</code>
* <code>night_alt_cloudy_windy<code>
* <code>night_alt_cloudy_windy</code>
#### Example use with currentweather module
````javascript

View File

@@ -144,7 +144,7 @@ Module.register("compliments",{
var compliment = document.createTextNode(complimentText);
var wrapper = document.createElement("div");
wrapper.className = "thin xlarge bright";
wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright";
wrapper.appendChild(compliment);
return wrapper;