Skip to content

Commit

Permalink
add youtube3
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanYoung-dev committed Oct 28, 2019
1 parent 097a824 commit 51b0179
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
21 changes: 10 additions & 11 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,17 @@ var config = {
hidden : "true",
}
},
{
module: "MMM-EmbedYoutube1", //28
position: "top_right",
config: {
video_id: "X13sr1Rv-CM",
searchlist1: "베이징",
loop: true
}
},
{
module: "CategorySelectMain", //28
module: "CategorySelectMain", //29
position: "top_left", // This can be any of the regions.

classes: "default everyone", // Optional
Expand All @@ -380,16 +389,6 @@ var config = {
},


//1
{
module: "MMM-EmbedYoutube1", //29
position: "top_right",
config: {
video_id: "aizhVEOx-q0",
searchlist1: "베이징",
loop: true
}
},

{
module: "updatenotification",
Expand Down
4 changes: 2 additions & 2 deletions modules/CategoryChoiceAsia/CategoryChoiceAsia.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ Module.register("CategoryChoiceAsia",{
}
if (modules[i].name == 'Asia-China') {

for(var num=1; num<30; num++ ){
for(var num=1; num<29; num++ ){
console.log("Hiding opend "+ modules[num].name+" ID: "+idnr[1]);
modules[num].hide(self.config.animationSpeed, {force: self.config.allowForce});
}
console.log("Showing "+modules[4].name+" ID: "+idnr[1]);
setTimeout(function(){
modules[10].show(self.config.animationSpeed, {force: self.config.allowForce});
modules[29].show(self.config.animationSpeed, {force: self.config.allowForce});
modules[28].show(self.config.animationSpeed, {force: self.config.allowForce});
},500);
}

Expand Down
7 changes: 6 additions & 1 deletion modules/MMM-EmbedYoutube1/MMM-EmbedYoutube1.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Module.register("MMM-EmbedYoutube1", {
video_id : "r6A7Fsci7Ds",
playlist: "",

searchlist1: "베이징"
searchlist1: "중국 여행"
},
getDom: function () {
var wrapper = document.createElement("div");
Expand Down Expand Up @@ -55,6 +55,11 @@ Module.register("MMM-EmbedYoutube1", {
+ this.config.height
+ "\" src=\"https://www.youtube.com/embed/"
+ videoId + "&"+ params +"\" frameborder=\"0\" allowfullscreen></iframe>";

setTimeout(function(){
this.updateDom()
},5000);

return wrapper;
},
notificationReceived: function(notification, payload) {
Expand Down

0 comments on commit 51b0179

Please sign in to comment.