mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-04-25 23:17:10 -04:00
27 lines
464 B
JavaScript
27 lines
464 B
JavaScript
/* global Module */
|
|
|
|
/* Magic Mirror
|
|
* Module: HelloWorld
|
|
*
|
|
* By Michael Teeuw http://michaelteeuw.nl
|
|
* MIT Licensed.
|
|
*/
|
|
|
|
Module.register('helloworld',{
|
|
|
|
// 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;
|
|
}
|
|
});
|
|
|