MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 539: Line 539:
};
};
$(lightboxStuff.init);
$(lightboxStuff.init);
// Audio player thing
var audioPlayer = {
idCount: 0,
init: function() {
$('.audio-player').each(function() {
var theDiv = $(this);
var newID = 'audio-id-' + audioPlayer.idCount.toString();
audioPlayer.idCount++;
theDiv.attr('id', 'newID');
theDiv.children('a').click(function() {
theDiv.html('');
jwplayer(newID).setup({
flashplayer: '/w/extensions/MediawikiPlayer/player.swf',
height: '24',
controlbar: 'bottom',
width: '400',
allowfullscreen: 'true',
backcolor: 'ffffff',
file: theDiv.attr('data-url')
});
return false;
});
});
}
};
$(audioPlayer.init);


// Google Analytics
// Google Analytics

Navigation menu