A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Module compliments
-
Hi there,
how to format my compliments? Let’s say, I want to add a line break like
or something like that?
Is there an easy way, or do I have to split long texts into multiple compliments?I know, I could use iFrame or HTMLBox :-)
Thanks!
Mega -
I don’t know if the compliments allows it, but you might try
<br />
? -
Guess what, I have tried that already.
Within the quotes and outside the quotes with +
None of those worked. -
line 153 in
compliments.js
var compliment = document.createTextNode(complimentText);
Modify it.
var compliment = document.createElement("div") compliment.innerHTML = complimentText
I didn’t test it.
-
Yeah textnode doesn’t parse html.
-
Oh man, I forgot that everything is right there in the “source files”, so that I can edit it myself.
Thanks! That works!