Skip to content

Commit

Permalink
More compact
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSmith-LT committed May 2, 2022
1 parent 16dfc54 commit 246a664
Showing 1 changed file with 3 additions and 9 deletions.
Expand Up @@ -3604,15 +3604,9 @@ function x_hexToRgb(hex, opa) {
}

// function randomises the order of items in an array
function x_shuffleArray(array) {
for (var i = array.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = array[i];
array[i] = array[j];
array[j] = temp;
}
return array;
}
function x_shuffleArray(array) {
return array.sort(function() {return Math.random()-0.5})
}

// function returns whether string is a url to a youtube or vimeo video
function x_isYouTubeVimeo(url) {
Expand Down

0 comments on commit 246a664

Please sign in to comment.