Initial commit of V2.

This commit is contained in:
Michael Teeuw
2016-03-24 17:19:32 +01:00
parent c428d6a985
commit 4266c0b279
235 changed files with 31730 additions and 246 deletions

View File

@@ -0,0 +1,27 @@
/* global Module */
/* Magic Mirror
* Module: HelloWorld
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
Module.create({
// Default module config.
defaults: {
text: "Hello World!",
classes: "normal medium"
},
// Override dom generator.
getDom: function() {
var wrapper = document.createElement("div");
wrapper.className = this.config.classes;
wrapper.innerHTML = this.config.text;
return wrapper;
}
});