MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
m (Reverted edits by Timothy (talk) to last revision by Jens)
Tag: Rollback
Line 3: Line 3:


script.onload = function () {
script.onload = function () {
var ul = document.querySelector('#polaroid-gallery ul');
GreenAudioPlayer.init({
for (var i = ul.children.length; i >= 0; i--) {
selector: '.audio-wrapper',
    ul.appendChild(ul.children[Math.random() * i | 0]);
stopOthersOnPlay: true
}};
});
GreenAudioPlayer.init({
selector: '.audio-wrapper-2',
stopOthersOnPlay: true
});
};

Revision as of 11:43, 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
	});
};