mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-12-04 08:02:28 -08:00
merged
This commit is contained in:
parent
edc1e08e65
commit
1ba0e490b7
2 changed files with 10 additions and 11 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
node_modules
|
10
MMM-pages.js
10
MMM-pages.js
|
@ -114,16 +114,14 @@ Module.register('MMM-pages', {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Shows the next page's elements
|
// Shows the next page's elements
|
||||||
setTimeout(() => {
|
setTimeout(() =>
|
||||||
MM.getModules()
|
MM.getModules()
|
||||||
.withClass(self.config.modules[self.curPage])
|
.withClass(self.config.modules[self.curPage])
|
||||||
.enumerate((module) => {
|
.enumerate(module =>
|
||||||
module.show(
|
module.show(
|
||||||
self.config.animationTime / 2,
|
self.config.animationTime / 2,
|
||||||
{ lockString: self.identifier }
|
{ lockString: self.identifier },
|
||||||
);
|
)), this.config.animationTime / 2);
|
||||||
});
|
|
||||||
}, this.config.animationTime / 2);
|
|
||||||
|
|
||||||
if (manuallyCalled && this.config.rotationTime > 0) {
|
if (manuallyCalled && this.config.rotationTime > 0) {
|
||||||
Log.log('Manually updated page! setting delay before resuming timer!');
|
Log.log('Manually updated page! setting delay before resuming timer!');
|
||||||
|
|
Loading…
Reference in a new issue