User:Electricsheep/vector.js

/* Browser native player - start */ $( document ).ready(function {	initAudioPlayer; });

function initAudioPlayer{ var player = $("div.audio-player"); if (player.length && player.attr('data-src').length) { var source_ogg = player.attr('data-src'); var source_mp3 = source_ogg.substring(0,source_ogg.indexOf('/bluearchivewiki/')+('/bluearchivewiki/').length) + 'transcoded/' + source_ogg.substring(source_ogg.indexOf('/bluearchivewiki/')+('/bluearchivewiki/').length) + source_ogg.substring(source_ogg.lastIndexOf('/')) + '.mp3'; var page_link = player.attr('data-pagelink');

player.innerHTML = ' Your browser doesn\'t support HTML5 audio. ';

player.find('audio')[0].volume=0.6; } } /* Browser native player - end */