mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Fixed code formatting issues
This commit is contained in:
parent
0099b6d4a2
commit
6251b77b28
@ -290,11 +290,11 @@ Module.register("newsfeed",{
|
|||||||
|
|
||||||
notificationReceived: function(notification, payload, sender) {
|
notificationReceived: function(notification, payload, sender) {
|
||||||
Log.info(this.name + " - received event");
|
Log.info(this.name + " - received event");
|
||||||
if(notification == 'GESTURE'){
|
if(notification == "GESTURE"){
|
||||||
Log.info(this.name + " - received gesture");
|
Log.info(this.name + " - received gesture");
|
||||||
var gesture = payload.gesture;
|
var gesture = payload.gesture;
|
||||||
// actually RIGHT, because gesture sensor is built in upside down
|
// actually RIGHT, because gesture sensor is built in upside down
|
||||||
if(gesture == 'LEFT'){
|
if(gesture == "LEFT"){
|
||||||
Log.info(this.name + " - received right");
|
Log.info(this.name + " - received right");
|
||||||
var before = this.activeItem;
|
var before = this.activeItem;
|
||||||
this.activeItem++;
|
this.activeItem++;
|
||||||
@ -310,7 +310,7 @@ Module.register("newsfeed",{
|
|||||||
this.updateDom(100);
|
this.updateDom(100);
|
||||||
}
|
}
|
||||||
// actually LEFT, because gesture sensor is built in upside down
|
// actually LEFT, because gesture sensor is built in upside down
|
||||||
else if(gesture == 'RIGHT'){
|
else if(gesture == "RIGHT"){
|
||||||
Log.info(this.name + " - received left");
|
Log.info(this.name + " - received left");
|
||||||
var before = this.activeItem;
|
var before = this.activeItem;
|
||||||
this.activeItem--;
|
this.activeItem--;
|
||||||
@ -326,7 +326,7 @@ Module.register("newsfeed",{
|
|||||||
this.updateDom(100);
|
this.updateDom(100);
|
||||||
}
|
}
|
||||||
// actually UP, because gesture sensor is built in upside down
|
// actually UP, because gesture sensor is built in upside down
|
||||||
else if(gesture == 'DOWN' && !this.config.showDescription){
|
else if(gesture == "DOWN" && !this.config.showDescription){
|
||||||
Log.info(this.name + " - received up");
|
Log.info(this.name + " - received up");
|
||||||
this.config.showDescription = true;
|
this.config.showDescription = true;
|
||||||
this.config.showFullArticle = false;
|
this.config.showFullArticle = false;
|
||||||
@ -335,7 +335,7 @@ Module.register("newsfeed",{
|
|||||||
this.updateDom(100);
|
this.updateDom(100);
|
||||||
}
|
}
|
||||||
// actually DOWN, because gesture sensor is built in upside down
|
// actually DOWN, because gesture sensor is built in upside down
|
||||||
else if(gesture == 'UP'){
|
else if(gesture == "UP"){
|
||||||
Log.info(this.name + " - received down");
|
Log.info(this.name + " - received down");
|
||||||
this.config.showDescription = false;
|
this.config.showDescription = false;
|
||||||
this.config.showFullArticle = false;
|
this.config.showFullArticle = false;
|
||||||
@ -345,7 +345,7 @@ Module.register("newsfeed",{
|
|||||||
this.updateDom(100);
|
this.updateDom(100);
|
||||||
}
|
}
|
||||||
// actually UP, because gesture sensor is built in upside down
|
// actually UP, because gesture sensor is built in upside down
|
||||||
else if(gesture == 'DOWN' && this.config.showDescription){
|
else if(gesture == "DOWN" && this.config.showDescription){
|
||||||
Log.info(this.name + " - received up again");
|
Log.info(this.name + " - received up again");
|
||||||
this.config.showFullArticle = true;
|
this.config.showFullArticle = true;
|
||||||
this.config.showDescription = false;
|
this.config.showDescription = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user