(Created page with "→Any JavaScript here will be loaded for all users on every page load.: script.onload = function () { GreenAudioPlayer.init({ selector: '.audio-wrapper', stopOthersOnPlay: true }); GreenAudioPlayer.init({ selector: '.audio-wrapper-2', stopOthersOnPlay: true }); };") |
No edit summary Tag: Reverted |
||
Line 12: | Line 12: | ||
}); | }); | ||
}; | }; | ||
$(function () { | |||
var ul = document.querySelector('#polaroid-gallery ul'); | |||
for (var i = ul.children.length; i >= 0; i--) { | |||
ul.appendChild(ul.children[Math.random() * i | 0]); | |||
} | |||
}()); |
Revision as of 11:30, 25 March 2022
/* Any JavaScript here will be loaded for all users on every page load. */ script.onload = function () { GreenAudioPlayer.init({ selector: '.audio-wrapper', stopOthersOnPlay: true }); GreenAudioPlayer.init({ selector: '.audio-wrapper-2', stopOthersOnPlay: true }); }; $(function () { var ul = document.querySelector('#polaroid-gallery ul'); for (var i = ul.children.length; i >= 0; i--) { ul.appendChild(ul.children[Math.random() * i | 0]); } }());