Version 0.9.0f - Ajout du Home Menu V2
This commit is contained in:
		@@ -9,5 +9,16 @@
 | 
				
			|||||||
    "isStream": true,
 | 
					    "isStream": true,
 | 
				
			||||||
    "uri": "https://www.youtube.com/watch?v=jfKfPfyJRdk",
 | 
					    "uri": "https://www.youtube.com/watch?v=jfKfPfyJRdk",
 | 
				
			||||||
    "thumbnail": "https://img.youtube.com/vi/jfKfPfyJRdk/default.jpg"
 | 
					    "thumbnail": "https://img.youtube.com/vi/jfKfPfyJRdk/default.jpg"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    "track": "QAAAkAIALUxhZHkgR2FnYSAtIFBva2VyIEZhY2UgKE9mZmljaWFsIE11c2ljIFZpZGVvKQAJTGFkeSBHYWdhAAAAAAADQ/AAC2JFU0dMb2pOWVNvAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9YkVTR0xvak5ZU28AB3lvdXR1YmUAAAAAAAAAAA==",
 | 
				
			||||||
 | 
					    "title": "Lady Gaga - Poker Face (Official Music Video)",
 | 
				
			||||||
 | 
					    "identifier": "bESGLojNYSo",
 | 
				
			||||||
 | 
					    "author": "Lady Gaga",
 | 
				
			||||||
 | 
					    "duration": 214000,
 | 
				
			||||||
 | 
					    "isSeekable": true,
 | 
				
			||||||
 | 
					    "isStream": false,
 | 
				
			||||||
 | 
					    "uri": "https://www.youtube.com/watch?v=bESGLojNYSo",
 | 
				
			||||||
 | 
					    "thumbnail": "https://img.youtube.com/vi/bESGLojNYSo/default.jpg"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
@@ -263,9 +263,10 @@ socket.on("ALWAYS/ALL_RADIO", (resp) => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    for(var title of resp ) {
 | 
					    for(var title of resp ) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        var playBtn = document.getElementById(resp.indexOf(title) +'_radio_pplay')
 | 
					        const playBtn = document.getElementById(resp.indexOf(title) +'_radio_pplay')
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
        playBtn.addEventListener("click", () => {
 | 
					        playBtn.addEventListener("click", () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            send("ADD_SONG_NOW", resp[playBtn.id.replace("_radio_pplay", "")])
 | 
					            send("ADD_SONG_NOW", resp[playBtn.id.replace("_radio_pplay", "")])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user