mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Merge pull request #10 from MichMich/v2-beta
Update V2 beta from master
This commit is contained in:
commit
eb0446bfe1
@ -14,6 +14,9 @@ This version of the Magic Mirror software focusses on a modular plugin system. B
|
||||
##Todo
|
||||
Things that still have to be implemented or changed.
|
||||
|
||||
####Main
|
||||
- Allow show/hide animations to animate the height. This way the other modules won't jump around.
|
||||
|
||||
####Documentation
|
||||
- Write all the documentation. :)
|
||||
|
||||
|
@ -422,10 +422,8 @@ var MM = (function() {
|
||||
* argument callback function - Called when the animation is done.
|
||||
*/
|
||||
hideModule: function(module, speed, callback) {
|
||||
hideModule(module, speed, function() {
|
||||
module.hidden = true;
|
||||
if (typeof callback === 'function') { callback(); }
|
||||
});
|
||||
hideModule(module, speed, callback);
|
||||
},
|
||||
|
||||
/* showModule(module, speed, callback)
|
||||
|
@ -113,7 +113,7 @@ Module.register('compliments',{
|
||||
|
||||
var compliment = document.createTextNode(complimentText);
|
||||
var wrapper = document.createElement("div");
|
||||
wrapper.className = 'thin xlarge';
|
||||
wrapper.className = 'thin xlarge bright';
|
||||
wrapper.appendChild(compliment);
|
||||
|
||||
return wrapper;
|
||||
|
Loading…
x
Reference in New Issue
Block a user