Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
v.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Miala-python authored Dec 23, 2023
1 parent d44b75d commit 88b8017
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions YT.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
console.log('YT.js >> V2.00.13');
console.log('YT.js >> V2.00.14');

function shuffleArray(arr) {
arr.sort(() => Math.random() - 0.5);
}

// 1. Créez un objet de lecteur IFrame
var player = 'none';
Expand All @@ -17,8 +21,8 @@ if (my_playlist.length > 1) {
var reponse = confirm("Lecture de la playlist en mode aléatoire ?");

if (reponse) {
my_playlist = shuffleList(my_playlist);
}
shuffleArray(my_playlist);
}
}

function onPlayerReady(event) {
Expand Down

0 comments on commit 88b8017

Please sign in to comment.